forked from FxDev/PetitModbus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPetitModbusPort.h
30 lines (24 loc) · 895 Bytes
/
PetitModbusPort.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
/* PetitModbus Version 1.0
* Author : Firat DEVECI
* Date : 27.07.16
*
* Tips : If you want to use RS485 you have to use RX-Pull-Up Resistor!
*/
#ifndef __PETITMODBUSPORT__H
#define __PETITMODBUSPORT__H
#include "PetitModbus.h"
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
extern volatile unsigned char PetitReceiveBuffer[PETITMODBUS_RECEIVE_BUFFER_SIZE];
extern volatile unsigned char PetitReceiveCounter;
extern void PetitModBus_UART_Initialise(void);
extern void PetitModBus_TIMER_Initialise(void);
extern void PetitModBus_UART_Putch(unsigned char c);
extern unsigned char PetitModBus_UART_String(unsigned char *s, unsigned int Length);
extern void ReceiveInterrupt(unsigned char Data);
extern void PetitModBus_TimerValues(void);
#endif