diff options
-rw-r--r-- | nuttx/configs/efm32gg-stk3700/README.txt | 15 | ||||
-rw-r--r-- | nuttx/configs/efm32gg-stk3700/include/board.h | 19 | ||||
-rw-r--r-- | nuttx/configs/efm32gg-stk3700/src/efm32gg-stk3700.h (renamed from nuttx/configs/efm32gg-stk3700/src/emv32gg-stk3700.h) | 0 |
3 files changed, 24 insertions, 10 deletions
diff --git a/nuttx/configs/efm32gg-stk3700/README.txt b/nuttx/configs/efm32gg-stk3700/README.txt index 6ea0ef2c4..524f00579 100644 --- a/nuttx/configs/efm32gg-stk3700/README.txt +++ b/nuttx/configs/efm32gg-stk3700/README.txt @@ -26,9 +26,9 @@ README STATUS ====== - This README now exists only as some analysis for a port to the EFM32 Giant - Gecko Starter Kit. That port has not yet been developed and I do not now - have hardware in hand. So the status is partially analyzed, but not yet implemented. + 2014-11-02: Completed the basic NSH configuration for the EFM32 Giant Gecko + Starter Kit. The hardware is on order and the port will be verified sometime + thereafter. LEDs and Buttons ================ @@ -98,7 +98,12 @@ Serial Console Default Serial Console ---------------------- - UART0 is configured as the default serial console at 115200 8N1 + LEUART0 is configured as the default serial console at 2400 8N1 + on pins PD5 and PD4. It certainly be possible to go to 4800 baud + and the documentation claims that 9600 baud is possible (although + I am not sure how). + + It should also be possible to use UART0 is configured at 115200 8N1 on pins PE0 and PE1. Communication through the Board Controller @@ -130,7 +135,7 @@ Configurations nsh: --- Configures the NuttShell (nsh) located at apps/examples/nsh. The - Configuration enables the serial interfaces on UART0. Support for + Configuration enables the serial interfaces on LEUART0. Support for built-in applications is enabled, but in the base configuration no built-in applications are selected (see NOTES below). diff --git a/nuttx/configs/efm32gg-stk3700/include/board.h b/nuttx/configs/efm32gg-stk3700/include/board.h index 8db511681..1482553ae 100644 --- a/nuttx/configs/efm32gg-stk3700/include/board.h +++ b/nuttx/configs/efm32gg-stk3700/include/board.h @@ -240,7 +240,15 @@ /* Pin routing **************************************************************/ /* UART0: * - * To be provided + * The kit contains a board controller that is responsible for performing + * various board level tasks, such as handling the debugger and the Advanced + * Energy Monitor. An interface is provided between the EFM32 and the board + * controller in the form of a UART connection. The connection is enabled by + * setting the EFM_BC_EN (PF7) line high, and using the lines EFM_BC_TX + * (PE0) and EFM_BC_RX (PE1) for communicating. + * + * U0_TX #1 PE0 MCU_PE0, UART0_TX #0, EFM_BC_RX, BC_UART_RX + * U0_RX #1 PE1 MCU_PE1, UART0_TX #1, EFM_BC_TX, BC_UART_TX */ #define BOARD_UART0_RX_GPIO (GPIO_PORTE|GPIO_PIN1) @@ -249,12 +257,13 @@ /* LEUART0: * - * To be provided + * LEU0_RX #0 PD4 Available on TP121 and EXP pin 12 + * LEU0_TX #0 PD5 Available on TP122 and EXP pin 14 */ -#define BOARD_LEUART0_RX_GPIO -#define BOARD_LEUART0_TX_GPIO -#define BOARD_LEUART0_ROUTE_LOCATION +#define BOARD_LEUART0_RX_GPIO (GPIO_PORTD|GPIO_PIN4) +#define BOARD_LEUART0_TX_GPIO (GPIO_PORTD|GPIO_PIN5) +#define BOARD_LEUART0_ROUTE_LOCATION _LEUART_ROUTE_LOCATION_LOC0 /**************************************************************************** * Public Function Prototypes diff --git a/nuttx/configs/efm32gg-stk3700/src/emv32gg-stk3700.h b/nuttx/configs/efm32gg-stk3700/src/efm32gg-stk3700.h index 724dc7b15..724dc7b15 100644 --- a/nuttx/configs/efm32gg-stk3700/src/emv32gg-stk3700.h +++ b/nuttx/configs/efm32gg-stk3700/src/efm32gg-stk3700.h |