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

Joakim Gebart notifications at github.com
Fri Jun 26 18:51:41 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))

I suggest `sizeof(uart_config) / sizeof(uart_config[0])` instead

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


More information about the notifications mailing list