Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
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);
Generated on Thu Dec 1 2022 07:53:58 by
1.7.2