[riot-notifications] [RIOT] drivers: peripheral UART driver interface overhaul (#3265)

Joakim Gebart notifications at github.com
Mon Jun 29 11:24:32 CEST 2015


>  #define UART_0_ISR          isr_usart6
> -/* UART 0 pin configuration */
> -#define UART_0_PORT_CLKEN() (RCC->AHB1ENR |= RCC_AHB1ENR_GPIOCEN)
> -#define UART_0_PORT         GPIOC
> -#define UART_0_TX_PIN       6
> -#define UART_0_RX_PIN       7
> -#define UART_0_AF           8
> +#define UART_NUMOF          (sizeof(uart_config) / sizeof(uart_conf_t))

Not a strong reason, but it doesn't depend on the type of `uart_config` any more.

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3265/files#r33446905
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150629/aca9895d/attachment.html>


More information about the notifications mailing list