24 #include "em_device.h"
35 #define BUFFERSIZE 256
46 static USART_InitAsync_TypeDef init = USART_INITASYNC_DEFAULT;
61 CMU_ClockEnable(cmuClock_HFPER,
true);
62 CMU_ClockEnable(cmuClock_GPIO,
true);
63 CMU_ClockEnable(cmuClock_USART1,
true);
73 USART_IntClear(
BLE_USART, _USART_IFC_MASK);
74 USART_IntEnable(
BLE_USART, USART_IEN_RXDATAV);
75 NVIC_ClearPendingIRQ(USART1_RX_IRQn);
76 NVIC_ClearPendingIRQ(USART1_TX_IRQn);
77 NVIC_EnableIRQ(USART1_RX_IRQn);
78 NVIC_EnableIRQ(USART1_TX_IRQn);
80 BLE_USART->ROUTE |= USART_ROUTE_TXPEN | USART_ROUTE_RXPEN | USART_ROUTE_LOCATION_LOC0;
138 USART_IntEnable(
BLE_USART, USART_IEN_TXBL);
178 USART_IntEnable(
BLE_USART, USART_IEN_TXBL);
222 #if DEBUG_DBPRINT == 0
249 #if DEBUG_DBPRINT == 0
266 USART_IntDisable(
BLE_USART, USART_IEN_TXBL);