stm32/boards: Update Arduino boards to reserve timers and fix USB PID.
Reserve timers used for the camera, and fix USB PID because 0x055F is reserved for MicroPython. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
committed by
Damien George
parent
05eb1d8e15
commit
b6649b922e
@@ -30,6 +30,7 @@ typedef unsigned int mp_uint_t; // must be pointer size
|
||||
#define MICROPY_HW_ENABLE_SDCARD (0)
|
||||
#define MICROPY_HW_ENABLE_MMCARD (0)
|
||||
#define MICROPY_HW_ENTER_BOOTLOADER_VIA_RESET (0)
|
||||
#define MICROPY_HW_TIM_IS_RESERVED(id) (id == 1)
|
||||
|
||||
// Flash storage config
|
||||
#define MICROPY_HW_SPIFLASH_ENABLE_CACHE (1)
|
||||
@@ -42,7 +43,6 @@ void GIGA_board_startup(void);
|
||||
#define MICROPY_BOARD_EARLY_INIT GIGA_board_early_init
|
||||
void GIGA_board_early_init(void);
|
||||
|
||||
#define MICROPY_HW_ENTER_BOOTLOADER_VIA_RESET (0)
|
||||
#define MICROPY_BOARD_ENTER_BOOTLOADER(nargs, args) GIGA_board_enter_bootloader()
|
||||
void GIGA_board_enter_bootloader(void);
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ typedef unsigned int mp_uint_t; // must be pointer size
|
||||
#define MICROPY_HW_ENABLE_SDCARD (0)
|
||||
#define MICROPY_HW_ENABLE_MMCARD (0)
|
||||
#define MICROPY_HW_ENTER_BOOTLOADER_VIA_RESET (0)
|
||||
#define MICROPY_HW_TIM_IS_RESERVED(id) (id == 3)
|
||||
|
||||
// Flash storage config
|
||||
#define MICROPY_HW_SPIFLASH_ENABLE_CACHE (1)
|
||||
@@ -225,7 +226,7 @@ extern struct _spi_bdev_t spi_bdev;
|
||||
#define MICROPY_HW_BLE_UART_BAUDRATE_DOWNLOAD_FIRMWARE (3000000)
|
||||
|
||||
#define MICROPY_HW_USB_VID 0x2341
|
||||
#define MICROPY_HW_USB_PID 0x045F
|
||||
#define MICROPY_HW_USB_PID 0x055F
|
||||
#define MICROPY_HW_USB_PID_CDC_MSC (MICROPY_HW_USB_PID)
|
||||
#define MICROPY_HW_USB_PID_CDC_HID (MICROPY_HW_USB_PID)
|
||||
#define MICROPY_HW_USB_PID_CDC (MICROPY_HW_USB_PID)
|
||||
|
||||
@@ -30,6 +30,7 @@ typedef unsigned int mp_uint_t; // must be pointer size
|
||||
#define MICROPY_HW_ENABLE_SDCARD (1)
|
||||
#define MICROPY_HW_ENABLE_MMCARD (0)
|
||||
#define MICROPY_HW_ENTER_BOOTLOADER_VIA_RESET (0)
|
||||
#define MICROPY_HW_TIM_IS_RESERVED(id) (id == 1)
|
||||
|
||||
// Flash storage config
|
||||
#define MICROPY_HW_SPIFLASH_ENABLE_CACHE (1)
|
||||
|
||||
Reference in New Issue
Block a user