forked from srnilssen/Arduino-Robot-2018
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusart.h
20 lines (16 loc) · 763 Bytes
/
usart.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/************************************************************************/
// File: usart.h
// Author: Erlend Ese, NTNU Spring 2016
// Purpose: Driver USART. Protected printf with mutex.
/************************************************************************/
#ifndef USART_H_
#define USART_H_
/************************************************************************/
//Initialize USART driver, note that RXD0/TXD0 (PD0/PD1) is used
// Note that the nRF51 dongle is limited to send 20 characters
// in each package
/************************************************************************/
void vUSART_init();
void vUSART_send(uint8_t *data, uint16_t len);
void vUSART_set_receive_callback(void(*cb)(uint8_t*, uint16_t));
#endif /* USART_H_ */