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
Fork of nucleo_test_soft_serial by
Diff: soft_uart.h
- Revision:
- 1:2bd6dc642bb9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/soft_uart.h Fri Mar 05 09:35:03 2021 +0000 @@ -0,0 +1,31 @@ + + +#define BAUD_RATE 9600 + +void idle(); + +//Sets the transmit pin to the high state. +void set_tx_pin_high(); + +//Sets the transmit pin to the low state. +void set_tx_pin_low(); + +//Returns 0 or 1 dependent on whether the receive pin is high or low +int get_rx_pin_status(); +void timer_isr(void); + +void init_uart( void ); + +char _getchar( void ); + +void _putchar( int ch ); + +void flush_input_buffer( void ); + +char kbhit( void ); + +void turn_rx_on( void ); + +void turn_rx_off( void ); +void printStr(char* str); + \ No newline at end of file
