mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 23:11:19 +01:00
boards/pic32-clicker: cleanup uart initialization
This commit is contained in:
parent
3eae474e74
commit
e8b0399bc9
@ -26,11 +26,6 @@ void board_init(void)
|
||||
U3RXR = 0x2; /*connect pin RPF5 to UART3 RX*/
|
||||
RPF4R = 0x1; /*connect pin RPF4 to UART3 TX*/
|
||||
|
||||
/* intialise UART used for debug (printf) */
|
||||
#ifdef DEBUG_VIA_UART
|
||||
uart_init(DEBUG_VIA_UART, DEBUG_UART_BAUD, NULL, 0);
|
||||
#endif
|
||||
|
||||
/* Turn off all LED's */
|
||||
gpio_init(LED1_PIN, GPIO_OUT);
|
||||
gpio_init(LED2_PIN, GPIO_OUT);
|
||||
|
||||
@ -40,6 +40,13 @@ extern "C" {
|
||||
*/
|
||||
#define TICKS_PER_US (48)
|
||||
|
||||
/**
|
||||
* @brief Use the 3rd UART for STDIO on this board
|
||||
*
|
||||
* This is the UART connected to the MikroBus.
|
||||
*/
|
||||
#define STDIO_UART_DEV UART_DEV(3)
|
||||
|
||||
/**
|
||||
* @brief We are using an External Interrupt Controller (all pic32 devices use this mode)
|
||||
*/
|
||||
|
||||
@ -53,8 +53,6 @@ extern "C" {
|
||||
* @{
|
||||
*/
|
||||
#define UART_NUMOF (4)
|
||||
#define DEBUG_VIA_UART (3)
|
||||
#define DEBUG_UART_BAUD (9600)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user