-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomm.h
More file actions
30 lines (20 loc) · 709 Bytes
/
comm.h
File metadata and controls
30 lines (20 loc) · 709 Bytes
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
#ifndef COMM_H
#define COMM_H
#endif
#include <avr/io.h>
#include <avr/interrupt.h>
#define printMenu() sendString("A,a,E,e,G,g,M,m\r\n");
//Length of output bufer used for serial communication
#define OUTPUT_BUFFER_LENGTH 300
//Length of input buffer used to store user configuration option
#define RECEIVE_BUFFER_LENGTH 4
//static volatile char output_buffer[OUTPUT_BUFFER_LENGTH];
static volatile char recv_buffer[RECEIVE_BUFFER_LENGTH];
//volatile unsigned int *user_token;
//Global constant string specifying menu options:
static char *menu ;
char sensor[1];
char orient[1];
extern void handleInput();
extern void setupUART(void);
extern void sendString(char *s);