This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: BSD-1-Clause | |
/* | |
* Copyright (C) 2022 Chuanhong Guo <[email protected]> | |
* | |
* CH347 SPI library using libusb. Protocol reverse-engineered from WCH linux library. | |
* FIXME: Every numbers used in the USB protocol should be little-endian. | |
*/ | |
#include <ch347.h> | |
#include <stdio.h> |