00001 /* ************************************************************************************************ 00002 * 00003 * Copyright (C) 2008-2009 00004 * Manuel Moser (alias: el08b004), Email: el08b004@technikum-wien.at, 00005 * Martin Kornfeld (alias: el07b502), Email: el07b502@technikum-wien.at 00006 * 00007 * ************************************************************************************************ 00008 * 00009 * SVN Status Information: 00010 * 00011 * $Rev:: 111 $: Rivision of last commit 00012 * $Author:: el07b502 $: Author of last commit 00013 * $Date:: 2009-01-12 16:34:10 #$: Date of last commit 00014 * 00015 * ************************************************************************************************ 00016 * 00017 * The following part is important for the Doxygen Documentation: 00018 */ 00026 /* ************************************************************************************************ */ 00027 00028 #ifndef DEVICE_DRIVER_H 00029 #define DEVICE_DRIVER_H 00030 00031 typedef enum parity_val { NO_PARITY, ODD_PARITY, EVEN_PARITY } Parity_val; 00032 typedef enum rs323_info_delete_options { READ, TMP_READ, WRITE, BOTH } rs232_struct_delete; 00033 00034 /* Initialisation routines (Board, Timer). */ 00035 void init (void); 00036 void init_timer (int prescale, unsigned int start_value); 00037 void init_usart (float baud, int databits, int stopbit, Parity_val parity); 00038 void init_timer0_us (void); 00039 void init_timer0_ms (void); 00040 void init_timer1_sec (void); 00041 void idle (void); 00042 00043 /* Visualizing routines */ 00044 void knight_rider (void); // to visualite finished startup 00045 void switch_led (int which, char state); 00046 00047 /* USART */ 00048 void usart_uc_write (void); // function to send a character 00049 void usart_uc_read (void); // function to save a character 00050 void reset_uc_bt_device (int state); // function to reset the bt-device 00051 void bt_device_uc_config(void); // function for sending configuration 00052 void usart_uc_control_int(void); // function to enable or disable transmitting interrupt 00053 00054 #endif
1.5.8