blob: c74ae868b743c216cb3884bc370748bad1eb8e75 (
plain) (
blame)
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
|
#ifndef SERIAL_HEADER__
#define SERIAL_HEADER__
/* *************************************
* Includes
* *************************************/
#include "Global_Inc.h"
#include "System.h"
#include "Gfx.h"
#include "Font.h"
/* *************************************
* Defines
* *************************************/
#define SERIAL_DATA_PACKET_SIZE 8
#define ACK_BYTE_STRING "b"
/* *************************************
* Global prototypes
* *************************************/
void SerialInit(void);
bool SerialRead(uint8_t* ptrArray, size_t nBytes);
bool SerialWrite(void* ptrArray, size_t nBytes);
volatile bool SerialIsBusy(void);
#ifdef SERIAL_INTERFACE
void Serial_printf(const char* str, ...);
#endif // SERIAL_INTERFACE
#endif // SERIAL_HEADER__
|