Reformat spacing/comments in src/ch341a.h

This commit is contained in:
Stefan Rueger
2024-08-18 01:54:07 +01:00
parent a750b2475c
commit 2b8af69c46

View File

@@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ch341a_h
#define ch341a_h
@@ -32,34 +31,31 @@
#define CH341A_USB_TIMEOUT 15000
#define CH341A_CMD_SPI_STREAM 0xA8 // SPI command
#define CH341A_CMD_UIO_STREAM 0xAB // UIO command
#define CH341A_CMD_SPI_STREAM 0xA8 // SPI command
#define CH341A_CMD_UIO_STREAM 0xAB // UIO command
#define CH341A_CMD_UIO_STM_IN 0x00 // UIO Interface In (D0~D7)
#define CH341A_CMD_UIO_STM_DIR 0x40 // UIO interface Dir (set dir of D0~D5)
#define CH341A_CMD_UIO_STM_OUT 0x80 // UIO Interface Output (D0~D5)
#define CH341A_CMD_UIO_STM_END 0x20 // UIO Interface End Command
#define CH341A_CMD_UIO_STM_IN 0x00 // UIO Interface In (D0~D7)
#define CH341A_CMD_UIO_STM_DIR 0x40 // UIO interface Dir (set dir of D0~D5)
#define CH341A_CMD_UIO_STM_OUT 0x80 // UIO Interface Output (D0~D5)
#define CH341A_CMD_UIO_STM_END 0x20 // UIO Interface End Command
#define CH341A_CMD_I2C_STREAM 0xAA
#define CH341A_CMD_I2C_STM_SET 0x60 // Bit 2: SPI with two data pairs D5,D4=out, D7,D6=in
#define CH341A_CMD_I2C_STM_SET 0x60 // Bit 2: SPI with two data pairs (D5, D4)=out, (D7, D6)=in
#define CH341A_CMD_I2C_STM_END 0x00
// USB error identifiers
#define USB_ERROR_NOTFOUND 1
#define USB_ERROR_ACCESS 2
#define USB_ERROR_IO 3
#ifdef __cplusplus
extern "C" {
#endif
extern const char ch341a_desc[];
void ch341a_initpgm (PROGRAMMER * pgm);
extern const char ch341a_desc[];
void ch341a_initpgm(PROGRAMMER *pgm);
#ifdef __cplusplus
}
#endif
#endif // ch341a_h
#endif // ch341a_h