2021-06-06 03:10:36 +00:00
|
|
|
|
|
|
|
#ifndef PROTOCFG_H_
|
|
|
|
#define PROTOCFG_H_
|
|
|
|
|
|
|
|
#define DBOARD_HAS_UART
|
|
|
|
#define DBOARD_HAS_CMSISDAP
|
|
|
|
#define DBOARD_HAS_SERPROG
|
2021-06-13 16:47:46 +00:00
|
|
|
#define DBOARD_HAS_I2C
|
2021-06-21 14:22:01 +00:00
|
|
|
#define DBOARD_HAS_TEMPSENSOR
|
2021-06-06 03:10:36 +00:00
|
|
|
|
2021-06-20 21:58:26 +00:00
|
|
|
enum {
|
|
|
|
HID_N_CMSISDAP = 0,
|
|
|
|
|
|
|
|
HID_N__NITF
|
|
|
|
};
|
|
|
|
enum {
|
|
|
|
CDC_N_UART = 0,
|
|
|
|
CDC_N_SERPROG,
|
|
|
|
#ifdef USE_USBCDC_FOR_STDIO
|
|
|
|
CDC_N_STDIO,
|
|
|
|
#endif
|
|
|
|
|
|
|
|
CDC_N__NITF
|
|
|
|
};
|
|
|
|
enum {
|
|
|
|
VND_N__NITF = 0
|
|
|
|
};
|
2021-06-06 03:10:36 +00:00
|
|
|
|
2021-06-20 21:58:26 +00:00
|
|
|
#define CFG_TUD_HID 1
|
2021-06-12 19:35:46 +00:00
|
|
|
#ifdef USE_USBCDC_FOR_STDIO
|
2021-06-20 21:58:26 +00:00
|
|
|
#define CFG_TUD_CDC 3
|
|
|
|
#else
|
|
|
|
#define CFG_TUD_CDC 2
|
2021-06-12 19:35:46 +00:00
|
|
|
#endif
|
2021-06-20 21:58:26 +00:00
|
|
|
#define CFG_TUD_VENDOR 0
|
2021-06-12 19:35:46 +00:00
|
|
|
|
2021-06-13 23:32:21 +00:00
|
|
|
/*#define USB_VID 0x2e8a*/ /* Raspberry Pi */
|
|
|
|
#define USB_VID 0xcafe /* TinyUSB */
|
|
|
|
/*#define USB_VID 0x1209*/ /* Generic */
|
|
|
|
/*#define USB_VID 0x1d50*/ /* OpenMoko */
|
2021-06-17 21:45:40 +00:00
|
|
|
#define USB_PID 0x1312
|
2021-06-13 23:32:21 +00:00
|
|
|
|
|
|
|
// TODO: other RP2040 boards
|
|
|
|
#define INFO_BOARDNAME "RP2040 Pico"
|
|
|
|
|
2021-06-06 03:10:36 +00:00
|
|
|
#endif
|
|
|
|
|