All the board must support these APIs.
More...
All the board must support these APIs.
uint32_t board_buttons |
( |
void |
| ) |
|
Get the current state of the buttons on the board.
- Returns
- Bitmask where a '1' means active (pressed), a '0' means inactive.
void board_leds |
( |
uint32_t |
on_mask, |
|
|
uint32_t |
off_mask |
|
) |
| |
Turns on and off leds on the board.
- Parameters
-
[in] | on_mask | Bitmask for LED's numbers is turning ON |
[out] | off_mask | Bitmask for LED's numbers is turning OFF |
- Note
- the on_mask is more priority then off_mask, if an led's number is present on both. It will be turned ON.
uint8_t board_uart_getchar |
( |
void |
| ) |
|
Get a character input from UART.
- Returns
- ASCII code of the input character or zero if none.
void board_uart_putchar |
( |
uint8_t |
c | ) |
|
Send a character to UART.
- Parameters
-
[in] | c | the character to be sent |