FabLab Nîmes / Mbed 2 deprecated FabLab_Station_Meteo

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers soft_uart.h Source File

soft_uart.h

00001 #define BAUD_RATE       9600
00002 
00003 void idle();
00004  
00005 //Sets the transmit pin to the high state.
00006 void set_tx_pin_high();
00007  
00008 //Sets the transmit pin to the low state.
00009 void set_tx_pin_low();
00010  
00011 //Returns 0 or 1 dependent on whether the receive pin is high or low
00012 int get_rx_pin_status();
00013 void timer_isr(void);
00014  
00015 void init_uart( void );
00016  
00017 char _getchar( void );
00018 void _putchar( int ch );
00019  
00020 void flush_input_buffer( void );
00021 
00022 char kbhit( void );
00023  
00024 void turn_rx_on( void );
00025 void turn_rx_off( void );
00026 void printStr(char* str);