mirror of https://github.com/ARMmbed/mbed-os.git
[EFM32] Use targets.json to improve directory structure
Now that we have targets.json, we get target inheritance and can use it to clean up the EFM32 folder structure. * In the top-level EFM32 folder, there are now folders per MCU family (Giant, Leopard, ...) * Those family folders contain the CMSIS headers in the 'device' subfolder, as well as global family headers (i.e. mapping of pins to peripherals) * Inside of the family folder, there is a per-target folder containing target settings. In the future, we'll want to get rid of those by using the config system provided by targets.jsonpull/3122/head
parent
6574f4d0a4
commit
4df6986100
|
@ -60,10 +60,6 @@ typedef enum {
|
|||
LEUART_1 = LEUART1_BASE
|
||||
} UARTName;
|
||||
|
||||
#define STDIO_UART_TX USBTX
|
||||
#define STDIO_UART_RX USBRX
|
||||
#define STDIO_UART UART0
|
||||
|
||||
typedef enum {
|
||||
SPI_0 = USART0_BASE,
|
||||
SPI_1 = USART1_BASE,
|
|
@ -50,7 +50,11 @@ typedef enum {
|
|||
SERIAL_RX = PD1,
|
||||
USBTX = PE0,
|
||||
USBRX = PE1,
|
||||
EFM_BC_EN = PF7
|
||||
|
||||
/* Board Controller */
|
||||
STDIO_UART_TX = USBTX,
|
||||
STDIO_UART_RX = USBRX,
|
||||
EFM_BC_EN = PF7
|
||||
} PinName;
|
||||
|
||||
#ifdef __cplusplus
|
|
@ -36,6 +36,9 @@
|
|||
/* USB */
|
||||
#define USB_TIMER USB_TIMER1
|
||||
|
||||
/* STDIO */
|
||||
#define STDIO_UART UART0
|
||||
|
||||
/* Clocks */
|
||||
|
||||
/* Clock definitions */
|
|
@ -50,7 +50,11 @@ typedef enum {
|
|||
SERIAL_RX = PE11,
|
||||
USBTX = PF2,
|
||||
USBRX = PA0,
|
||||
EFM_BC_EN = PA9
|
||||
|
||||
/* Board Controller */
|
||||
STDIO_UART_TX = USBTX,
|
||||
STDIO_UART_RX = USBRX,
|
||||
EFM_BC_EN = PA9
|
||||
} PinName;
|
||||
|
||||
#ifdef __cplusplus
|
|
@ -36,6 +36,9 @@
|
|||
/* USB */
|
||||
#define USB_TIMER USB_TIMER2
|
||||
|
||||
/* STDIO */
|
||||
#define STDIO_UART USART1
|
||||
|
||||
/* Clocks */
|
||||
|
||||
/* Clock definitions */
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue