diff options
| author | Gordon McNab <[email protected]> | 2021-10-06 17:13:44 +0100 |
|---|---|---|
| committer | Gordon McNab <[email protected]> | 2021-10-06 17:13:44 +0100 |
| commit | 8c40a74f295d93a62a0e7c8a873b6d7abcce19b1 (patch) | |
| tree | a8edef78ffe9872375029b3b5d1f1228b3b88493 /hw | |
| parent | 9966b8a5d6d755c6b92140d617122acb39948f20 (diff) | |
Sort out board settings.
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/brtmm90x/boards/mm900evxb/board.h (renamed from hw/bsp/brtmm90x/boards/mm900ev1b/board.h) | 14 | ||||
| -rw-r--r-- | hw/bsp/brtmm90x/family.c | 6 |
2 files changed, 7 insertions, 13 deletions
diff --git a/hw/bsp/brtmm90x/boards/mm900ev1b/board.h b/hw/bsp/brtmm90x/boards/mm900evxb/board.h index 67f61237f..57936fda5 100644 --- a/hw/bsp/brtmm90x/boards/mm900ev1b/board.h +++ b/hw/bsp/brtmm90x/boards/mm900evxb/board.h @@ -27,27 +27,21 @@ #ifndef BOARD_H_ #define BOARD_H_ +// Note: This definition file covers all MM900EV1B, MM900EV2B, and MM900EV3B boards. +// Each of these boards has an FT900 device. + #ifdef __cplusplus extern "C" { #endif -#if defined(__FT900__) #define GPIO_UART0_TX 48 #define GPIO_UART0_RX 49 #define GPIO_ETH_LED0 61 #define GPIO_ETH_LED1 62 #define GPIO_REMOTE_WAKEUP_PIN 18 #define USBD_VBUS_DTC_PIN 3 -#elif defined(__FT930__) -#define GPIO_UART0_TX 23 -#define GPIO_UART0_RX 22 -#define GPIO_ETH_LED0 4 -#define GPIO_ETH_LED1 5 -#define GPIO_REMOTE_WAKEUP_PIN 12 -#define USBD_VBUS_DTC_PIN 39 -#endif -//#define GPIO_REMOTE_WAKEUP +#define GPIO_REMOTE_WAKEUP #ifdef __cplusplus } diff --git a/hw/bsp/brtmm90x/family.c b/hw/bsp/brtmm90x/family.c index 3bd16b817..ed169655e 100644 --- a/hw/bsp/brtmm90x/family.c +++ b/hw/bsp/brtmm90x/family.c @@ -24,10 +24,10 @@ * This file is part of the TinyUSB stack. */ +#include "board.h" +#include "bsp/board.h" #include <registers/ft900_registers.h> #include <ft900.h> -#include "bsp/board.h" -#include "board.h" #if TUSB_OPT_DEVICE_ENABLED int8_t board_ft90x_vbus(void); // Board specific implementation of VBUS detection for USB device. @@ -42,7 +42,7 @@ volatile unsigned int timer_ms = 0; void board_pm_ISR(void); #define WELCOME_MSG "\x1B[2J\x1B[H" \ - "MM900EV1B board\r\n" + "MM900EVxB board\r\n" // Initialize on-board peripherals : led, button, uart and USB void board_init(void) |
