SerialCommon.h 510 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

//SERIAL COMMUNICATION PARAMETERS
#define MAX_SERIAL_BUFFER_SIZE 180

#define SERIAL_BAUD_RATE B921600

#define SERIAL_BYTE_SIZE 8
#define SERIAL_STOP_BITS 0
#define SERIAL_PARITY 0
#define SERIAL_COMMAND_END '\n'
#define SERIAL_READY_FLAG "-7\n"
#define SERIAL_FLAG_TIMEOUT 1000

#define K_WARNING  "\x1B[33m"
#define K_ERROR  "\x1B[31m"
#define K_SUCCESS  "\x1B[32m"
#define K_NORMAL  "\x1B[0m"
#define KBLU  "\x1B[34m"
#define KMAG  "\x1B[35m"
#define KCYN  "\x1B[36m"
#define KWHT  "\x1B[37m"