-
Notifications
You must be signed in to change notification settings - Fork 1
/
comunication.h
37 lines (29 loc) · 933 Bytes
/
comunication.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
/* ========================================
*
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
*
* ========================================
*/
#ifndef COMUNICATION_H
#define COMUNICATION_H
#include "project.h"
/*** MACROS ***/
#define binary configure.encoding == 0
#define hexadecimal configure.encoding == 1
/*** GLOBAL VARIABLE PROTOTYPES ***/
extern char data;
extern uint32 address; // Will be stored in 0x1FFF8184 - This will be usefull for the validation
/*** FUNCTION PROTOTYPES ***/
void decode_address(void);
void send_data(void);
void send_binary_content(void);
/*** INTERRUPTION PROTOTYPES ***/
CY_ISR_PROTO(UART_RX);
CY_ISR_PROTO(UART_TX);
#endif
/* [] END OF FILE */