uart1.h
Go to the documentation of this file.
00001 
00002 #ifndef __UART1_H
00003 #define __UART1_H
00004 
00005 extern void UART1Initialize(unsigned int baud);
00006 
00007 extern void UART1WriteChar(unsigned char);
00008 extern unsigned char UART1ReadChar(void);
00009 extern void UART1_send(unsigned char *, unsigned char);
00010 extern void UART1_send_ringbuffer(void);
00011 extern int ringbuffer1(unsigned char, unsigned char*, unsigned int);
00012 extern void uart1ISR(void);
00013 extern void GPS_configure(void);
00014 
00015 extern unsigned char send_buffer[16];
00016 extern unsigned char chksum_trigger;
00017 extern unsigned char UART_CalibDoneFlag;
00018 extern unsigned char trigger_transmission;
00019 extern unsigned char transmission1_running;
00020 
00021 #define RBREAD 0
00022 #define RBWRITE 1
00023 #define RBFREE  2 
00024 #define RINGBUFFERSIZE  384
00025 
00026 #define RX_IDLE 0
00027 #define RX_ACTSYNC1 1
00028 #define RX_ACTSYNC2 2
00029 #define RX_ACTDATA 3
00030 #define RX_ACTCHKSUM 4
00031 
00032 #define GPSCONF_TIMEOUT 200
00033 
00034 #endif //__UART_H
00035 


ccny_asctec_firmware
Author(s): Ivan Dryanovski, Roberto G. Valenti
autogenerated on Tue Jan 7 2014 11:04:32