43 #ifndef _TUSB_BOARD_H_
44 #define _TUSB_BOARD_H_
53 #include "ansi_escape.h"
61 #define BOARD_LPCXPRESSO11U14 1114
62 #define BOARD_RF1GHZNODE 1100
63 #define BOARD_LPCXPRESSO1347 1300
64 #define BOARD_LPCXPRESSO1769 1700
66 #define BOARD_NGX4330 4300
67 #define BOARD_EA4357 4301
68 #define BOARD_MCB4300 4302
69 #define BOARD_HITEX4350 4303
70 #define BOARD_LPC4357USB 4304
72 #define BOARD_LPCLINK2 4370
75 //--------------------------------------------------------------------+
81 #define PRINTF_TARGET_SEMIHOST 1
82 #define PRINTF_TARGET_UART 2
83 #define PRINTF_TARGET_SWO 3
84 #define PRINTF_TARGET_NONE 4
87 #define PRINTF(...) printf(__VA_ARGS__)
92 #if BOARD == BOARD_LPCXPRESSO11U14
94 #elif BOARD == BOARD_RF1GHZNODE
96 #elif BOARD == BOARD_LPCXPRESSO1347
98 #elif BOARD == BOARD_LPCXPRESSO1769
100 #elif BOARD == BOARD_NGX4330
102 #elif BOARD == BOARD_EA4357
104 #elif BOARD == BOARD_MCB4300
106 #elif BOARD == BOARD_HITEX4350
108 #elif BOARD == BOARD_LPC4357USB
110 #elif BOARD == BOARD_LPCLINK2
113 #error BOARD is not defined or supported yet
119 #define CFG_UART_BAUDRATE 115200
137 void board_leds(uint32_t on_mask, uint32_t off_mask);
157 OSAL_TASK_FUNCTION( led_blinking_task , p_task_para);
void led_blinking_init(void)
Initialize the LED blinking task application. The initial blinking rate is 1 Hert (1 per second) ...
Definition: board.c:64
void board_init(void)
Initialize all required peripherals on board including uart, led, buttons etc ... ...
void board_leds(uint32_t on_mask, uint32_t off_mask)
Turns on and off leds on the board.
uint32_t board_buttons(void)
Get the current state of the buttons on the board.
void led_blinking_set_interval(uint32_t ms)
Change the blinking rate.
Definition: board.c:69
void board_uart_putchar(uint8_t c)
Send a character to UART.
uint8_t board_uart_getchar(void)
Get a character input from UART.