mirror of
https://github.com/gosticks/RIOT.git
synced 2025-10-16 12:05:37 +00:00
boards/openmote-cc2538: Changed UART config format
Changed the configuration of the OpenMote board to fit the new cc2538 format defined in the previous commit. That is, from a defines based format to a struct based format.
This commit is contained in:
parent
c0a85babda
commit
06b98c8d0d
@ -86,17 +86,22 @@ static const adc_conf_t adc_config[] = {
|
||||
* @name UART configuration
|
||||
* @{
|
||||
*/
|
||||
#define UART_NUMOF (1U)
|
||||
#define UART_0_EN 1
|
||||
#define UART_IRQ_PRIO 1
|
||||
static const uart_conf_t uart_config[] = {
|
||||
{
|
||||
.dev = UART0_BASEADDR,
|
||||
.rx_pin = GPIO_PIN(0, 0),
|
||||
.tx_pin = GPIO_PIN(0, 1),
|
||||
.cts_pin = GPIO_UNDEF,
|
||||
.rts_pin = GPIO_UNDEF
|
||||
}
|
||||
};
|
||||
|
||||
/* UART 0 device configuration */
|
||||
#define UART_0_DEV UART0
|
||||
#define UART_0_IRQ UART0_IRQn
|
||||
/* interrupt function name mapping */
|
||||
#define UART_0_ISR isr_uart0
|
||||
/* UART 0 pin configuration */
|
||||
#define UART_0_TX_PIN GPIO_PIN(0, 1) /**< GPIO_PA1 */
|
||||
#define UART_0_RX_PIN GPIO_PIN(0, 0) /**< GPIO_PA0 */
|
||||
|
||||
/* macros common across all UARTs */
|
||||
#define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0]))
|
||||
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user