diff --git a/.github/workflows/micropython.yml b/.github/workflows/micropython.yml index fca6a18f6..ee937da70 100644 --- a/.github/workflows/micropython.yml +++ b/.github/workflows/micropython.yml @@ -7,7 +7,7 @@ on: types: [created] env: - MICROPYTHON_VERSION: v1.21.0 + MICROPYTHON_VERSION: fa00bf60700730d4395f2205f2e5e4d3364534a5 WORKFLOW_VERSION: v1 jobs: @@ -29,7 +29,7 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' uses: actions/checkout@v3 with: - repository: micropython/micropython + repository: pimoroni/micropython ref: ${{env.MICROPYTHON_VERSION}} submodules: false # MicroPython submodules are hideously broken path: micropython diff --git a/micropython/board/PIMORONI_TUFTY2040/mpconfigboard.h b/micropython/board/PIMORONI_TUFTY2040/mpconfigboard.h index 1140d377a..30e8e4c68 100644 --- a/micropython/board/PIMORONI_TUFTY2040/mpconfigboard.h +++ b/micropython/board/PIMORONI_TUFTY2040/mpconfigboard.h @@ -3,6 +3,13 @@ #define MICROPY_HW_BOARD_NAME "Pimoroni Tufty 2040" #define MICROPY_HW_FLASH_STORAGE_BYTES (7 * 1024 * 1024) +#define MICROPY_HW_USB_MSC (1) +#define MICROPY_HW_USB_VID (0x1FFB) +#define MICROPY_HW_USB_PID (0x2043) +#define MICROPY_HW_USB_DESC_STR_MAX (40) +#define MICROPY_HW_USB_MANUFACTURER_STRING "Pimoroni" +#define MICROPY_HW_USB_PRODUCT_FS_STRING MICROPY_HW_BOARD_NAME " MicroPython" + #define MICROPY_HW_USB_VID (0x2E8A) #define MICROPY_HW_USB_PID (0x1002) diff --git a/micropython/board/RPI_PICO/mpconfigboard.h b/micropython/board/RPI_PICO/mpconfigboard.h index 8534e4e27..fe56c3861 100644 --- a/micropython/board/RPI_PICO/mpconfigboard.h +++ b/micropython/board/RPI_PICO/mpconfigboard.h @@ -1,3 +1,10 @@ // Board and hardware specific configuration #define MICROPY_HW_BOARD_NAME "Raspberry Pi Pico" -#define MICROPY_HW_FLASH_STORAGE_BYTES (1408 * 1024) \ No newline at end of file +#define MICROPY_HW_FLASH_STORAGE_BYTES (1408 * 1024) + +#define MICROPY_HW_USB_MSC (1) +#define MICROPY_HW_USB_VID (0x1FFB) +#define MICROPY_HW_USB_PID (0x2043) +#define MICROPY_HW_USB_DESC_STR_MAX (40) +#define MICROPY_HW_USB_MANUFACTURER_STRING "Pimoroni" +#define MICROPY_HW_USB_PRODUCT_FS_STRING MICROPY_HW_BOARD_NAME " MicroPython" \ No newline at end of file diff --git a/micropython/board/RPI_PICO_W/mpconfigboard.h b/micropython/board/RPI_PICO_W/mpconfigboard.h index a6ff85176..912164d0d 100644 --- a/micropython/board/RPI_PICO_W/mpconfigboard.h +++ b/micropython/board/RPI_PICO_W/mpconfigboard.h @@ -20,4 +20,11 @@ #define MICROPY_HW_PIN_EXT_COUNT CYW43_WL_GPIO_COUNT -#define MICROPY_HW_PIN_RESERVED(i) ((i) == CYW43_PIN_WL_HOST_WAKE || (i) == CYW43_PIN_WL_REG_ON) \ No newline at end of file +#define MICROPY_HW_PIN_RESERVED(i) ((i) == CYW43_PIN_WL_HOST_WAKE || (i) == CYW43_PIN_WL_REG_ON) + +#define MICROPY_HW_USB_MSC (1) +#define MICROPY_HW_USB_VID (0x1FFB) +#define MICROPY_HW_USB_PID (0x2043) +#define MICROPY_HW_USB_DESC_STR_MAX (40) +#define MICROPY_HW_USB_MANUFACTURER_STRING "Pimoroni" +#define MICROPY_HW_USB_PRODUCT_FS_STRING MICROPY_HW_BOARD_NAME " MicroPython" \ No newline at end of file