uart1.h
Go to the documentation of this file.
00001 /*
00002 
00003 Copyright (c) 2011, Ascending Technologies GmbH
00004 All rights reserved.
00005 
00006 Redistribution and use in source and binary forms, with or without
00007 modification, are permitted provided that the following conditions are met:
00008 
00009  * Redistributions of source code must retain the above copyright notice,
00010    this list of conditions and the following disclaimer.
00011  * Redistributions in binary form must reproduce the above copyright
00012    notice, this list of conditions and the following disclaimer in the
00013    documentation and/or other materials provided with the distribution.
00014 
00015 THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
00016 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00017 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00018 DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
00019 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00020 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00021 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00022 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00023 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00024 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
00025 DAMAGE.
00026 
00027  */
00028 
00029 
00030 #ifndef __UART1_H
00031 #define __UART1_H
00032 
00033 extern void UART1Initialize(unsigned int baud);
00034 
00035 extern void UART1WriteChar(unsigned char);
00036 extern unsigned char UART1ReadChar(void);
00037 extern void UART1_send(unsigned char *, unsigned char);
00038 extern void UART1_send_ringbuffer(void);
00039 extern int ringbuffer1(unsigned char, unsigned char*, unsigned int);
00040 extern void uart1ISR(void);
00041 extern void GPS_configure(void);
00042 
00043 extern unsigned char send_buffer[16];
00044 extern unsigned char chksum_trigger;
00045 extern unsigned char UART_CalibDoneFlag;
00046 extern unsigned char trigger_transmission;
00047 extern unsigned char transmission1_running;
00048 
00049 #define RBREAD 0
00050 #define RBWRITE 1
00051 #define RBFREE  2 
00052 #define RINGBUFFERSIZE  384
00053 
00054 #define RX_IDLE 0
00055 #define RX_ACTSYNC1 1
00056 #define RX_ACTSYNC2 2
00057 #define RX_ACTDATA 3
00058 #define RX_ACTCHKSUM 4
00059 
00060 #define GPSCONF_TIMEOUT 200
00061 
00062 #endif //__UART_H
00063 


asctec_hl_firmware
Author(s): Markus Achtelik, Michael Achtelik, Stephan Weiss, Laurent Kneip
autogenerated on Tue Dec 17 2013 11:39:27