-
Notifications
You must be signed in to change notification settings - Fork 0
/
Terminal.h
37 lines (28 loc) · 852 Bytes
/
Terminal.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Terminal.h
* This handles the UART interface for terminal usage
* It is configured for 115200 baud
*
*
* Dependencies:
* - Pins.h has all of the pin outs/necessary defines
* - A clock source running at 2Mhz (See pins.h)
* - A sercom with specified pin outs (See pins.h)
* - Interrupts must be enabled for the buffer system to work
* -This is designed for a system with separate interrupts for each flag
*
* Created: 5/13/2019 8:33:06 AM
* Author: Jordan
*/
#ifndef TERMINAL_H_
#define TERMINAL_H_
#include "sam.h"
#include "Pins.h"
#include "Sensors.h"
void terminalConfig(void);
void terminalSend(unsigned int data);
void terminalSendStream(unsigned int *data, unsigned int length);
void terminalFlushInput(void);
unsigned int terminalRead(void);
unsigned int terminalAvailable(void);
#endif /* TERMINAL_H_ */