diff options
| author | hathach <[email protected]> | 2020-01-09 22:04:11 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-01-09 22:04:11 +0700 |
| commit | 84bbe54e171c92efb669ccb9a4960e406c8afa17 (patch) | |
| tree | d33ab9e5fcc2bd9047dd0b44fb432e272ce784e4 /hw | |
| parent | 03d14f4d832efc8a015c2b13e09cab7f4fa48079 (diff) | |
follow up to #261
- fix button pullup
- flash using teensy_loader_cli
- update boards.md
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/teensy_40/board.mk | 7 | ||||
| -rw-r--r-- | hw/bsp/teensy_40/teensy40.c | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/hw/bsp/teensy_40/board.mk b/hw/bsp/teensy_40/board.mk index 4bfc48bbf..955603e3b 100644 --- a/hw/bsp/teensy_40/board.mk +++ b/hw/bsp/teensy_40/board.mk @@ -48,6 +48,7 @@ FREERTOS_PORT = ARM_CM7 JLINK_DEVICE = MIMXRT1062xxx6A JLINK_IF = swd -# flash by copying bin file to DAP Mass Storage -flash: $(BUILD)/$(BOARD)-firmware.bin - cp $< /media/$(USER)/RT1060-EVK/ +# flash by using teensy_loader_cli https://github.com/PaulStoffregen/teensy_loader_cli +# Make sure it is in your PATH +flash: $(BUILD)/$(BOARD)-firmware.hex + teensy_loader_cli --mcu=imxrt1062 -v -w $< diff --git a/hw/bsp/teensy_40/teensy40.c b/hw/bsp/teensy_40/teensy40.c index 9c905dbbb..7c2bee539 100644 --- a/hw/bsp/teensy_40/teensy40.c +++ b/hw/bsp/teensy_40/teensy40.c @@ -78,7 +78,8 @@ void board_init(void) // Button IOMUXC_SetPinMux( BUTTON_PINMUX, 0U); - gpio_pin_config_t button_config = { kGPIO_DigitalInput, 0, kGPIO_IntRisingEdge, }; + IOMUXC_SetPinConfig(BUTTON_PINMUX, 0x01B0A0U); + gpio_pin_config_t button_config = { kGPIO_DigitalInput, 0, kGPIO_NoIntmode }; GPIO_PinInit(BUTTON_PORT, BUTTON_PIN, &button_config); // UART |
