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 /* 00002 * Soft UART Library 00003 */ 00004 00005 #define BAUD_RATE 9600 00006 00007 void idle(); 00008 00009 //Sets the transmit pin to the high state. 00010 void set_tx_pin_high(void); 00011 00012 //Sets the transmit pin to the low state. 00013 void set_tx_pin_low(void); 00014 00015 //Returns 0 or 1 dependent on whether the receive pin is high or low 00016 int get_rx_pin_status(void); 00017 00018 void timer_isr(void); 00019 00020 void Init_Soft_UART(void); 00021 00022 char _getchar(void); 00023 00024 void _putchar(char ch); 00025 00026 void flush_input_buffer(void); 00027 00028 char kbhit(void); 00029 00030 void turn_rx_on(void); 00031 00032 void turn_rx_off(void); 00033 00034 void printStr(char* str); 00035
Generated on Mon Aug 15 2022 23:44:49 by
1.7.2