Skip to content

Commit b6649b9

Browse files
iabdalkaderdpgeorge
authored andcommitted
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 <[email protected]>
1 parent 05eb1d8 commit b6649b9

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

ports/stm32/boards/ARDUINO_GIGA/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ typedef unsigned int mp_uint_t; // must be pointer size
3030
#define MICROPY_HW_ENABLE_SDCARD (0)
3131
#define MICROPY_HW_ENABLE_MMCARD (0)
3232
#define MICROPY_HW_ENTER_BOOTLOADER_VIA_RESET (0)
33+
#define MICROPY_HW_TIM_IS_RESERVED(id) (id == 1)
3334

3435
// Flash storage config
3536
#define MICROPY_HW_SPIFLASH_ENABLE_CACHE (1)
@@ -42,7 +43,6 @@ void GIGA_board_startup(void);
4243
#define MICROPY_BOARD_EARLY_INIT GIGA_board_early_init
4344
void GIGA_board_early_init(void);
4445

45-
#define MICROPY_HW_ENTER_BOOTLOADER_VIA_RESET (0)
4646
#define MICROPY_BOARD_ENTER_BOOTLOADER(nargs, args) GIGA_board_enter_bootloader()
4747
void GIGA_board_enter_bootloader(void);
4848

ports/stm32/boards/ARDUINO_NICLA_VISION/mpconfigboard.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ typedef unsigned int mp_uint_t; // must be pointer size
3030
#define MICROPY_HW_ENABLE_SDCARD (0)
3131
#define MICROPY_HW_ENABLE_MMCARD (0)
3232
#define MICROPY_HW_ENTER_BOOTLOADER_VIA_RESET (0)
33+
#define MICROPY_HW_TIM_IS_RESERVED(id) (id == 3)
3334

3435
// Flash storage config
3536
#define MICROPY_HW_SPIFLASH_ENABLE_CACHE (1)
@@ -225,7 +226,7 @@ extern struct _spi_bdev_t spi_bdev;
225226
#define MICROPY_HW_BLE_UART_BAUDRATE_DOWNLOAD_FIRMWARE (3000000)
226227

227228
#define MICROPY_HW_USB_VID 0x2341
228-
#define MICROPY_HW_USB_PID 0x045F
229+
#define MICROPY_HW_USB_PID 0x055F
229230
#define MICROPY_HW_USB_PID_CDC_MSC (MICROPY_HW_USB_PID)
230231
#define MICROPY_HW_USB_PID_CDC_HID (MICROPY_HW_USB_PID)
231232
#define MICROPY_HW_USB_PID_CDC (MICROPY_HW_USB_PID)

ports/stm32/boards/ARDUINO_PORTENTA_H7/mpconfigboard.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ typedef unsigned int mp_uint_t; // must be pointer size
3030
#define MICROPY_HW_ENABLE_SDCARD (1)
3131
#define MICROPY_HW_ENABLE_MMCARD (0)
3232
#define MICROPY_HW_ENTER_BOOTLOADER_VIA_RESET (0)
33+
#define MICROPY_HW_TIM_IS_RESERVED(id) (id == 1)
3334

3435
// Flash storage config
3536
#define MICROPY_HW_SPIFLASH_ENABLE_CACHE (1)

0 commit comments

Comments
 (0)