Skip to content
Snippets Groups Projects
Commit 085c7498 authored by Peter Kietzmann's avatar Peter Kietzmann
Browse files

Merge pull request #4368 from PeterKietzmann/limifrog_fix_uart

boards/limifrog-v1: fix uart configuration in periph_conf
parents 0906c729 c85e417b
No related branches found
No related tags found
No related merge requests found
...@@ -73,25 +73,23 @@ static const timer_conf_t timer_config[] = { ...@@ -73,25 +73,23 @@ static const timer_conf_t timer_config[] = {
#define UART_0_CLK (CLOCK_CORECLOCK) #define UART_0_CLK (CLOCK_CORECLOCK)
#define UART_0_IRQ USART3_IRQn #define UART_0_IRQ USART3_IRQn
#define UART_0_ISR isr_usart3 #define UART_0_ISR isr_usart3
#define UART_0_BUS_FREQ 32000000
/* UART 0 pin configuration */ /* UART 0 pin configuration */
#define UART_0_PORT GPIOC #define UART_0_RX_PIN GPIO_PIN(PORT_C, 11)
#define UART_0_PORT_CLKEN() (RCC->AHBENR |= RCC_AHBENR_GPIOCEN) #define UART_0_TX_PIN GPIO_PIN(PORT_C, 10)
#define UART_0_RX_PIN 11 #define UART_0_AF GPIO_AF7
#define UART_0_TX_PIN 10
#define UART_0_AF 7
/* UART 1 device configuration */ /* UART 1 device configuration */
#define UART_1_DEV USART3 /* Panasonic PAN1740 BLE module */ #define UART_1_DEV USART1 /* Panasonic PAN1740 BLE module */
#define UART_1_CLKEN() (RCC->APB2ENR |= RCC_APB2ENR_USART1EN) #define UART_1_CLKEN() (RCC->APB2ENR |= RCC_APB2ENR_USART1EN)
#define UART_1_CLK (CLOCK_CORECLOCK) #define UART_1_CLK (CLOCK_CORECLOCK)
#define UART_1_IRQ USART1_IRQn #define UART_1_IRQ USART1_IRQn
#define UART_1_ISR isr_usart1 #define UART_1_ISR isr_usart1
#define UART_0_BUS_FREQ 32000000
/* UART 1 pin configuration */ /* UART 1 pin configuration */
#define UART_1_PORT GPIOA #define UART_1_RX_PIN GPIO_PIN(PORT_A, 10)
#define UART_1_PORT_CLKEN() (RCC->AHBENR |= RCC_AHBENR_GPIOAEN) #define UART_1_TX_PIN GPIO_PIN(PORT_A, 9)
#define UART_1_RX_PIN 10 #define UART_1_AF GPIO_AF7
#define UART_1_TX_PIN 9
#define UART_1_AF 7
/** @} */ /** @} */
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment