mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-29 20:38:44 +03:00
Reformat spacing/comments in src/ch341a.h
This commit is contained in:
24
src/ch341a.h
24
src/ch341a.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user