|
PIC24 Support Libraries
|
Go to the source code of this file.
Functions | |
| ESOS_USER_TASK (heartbeat_LED) | |
| ESOS_USER_TASK (reverse_string) | |
| void | user_init (void) |
ESOS application program to recreate the "reverse" program reverse_string.c in Chapter 10. (See Figure 10.16 in the text.) "Reverse" program waits for a string from the UART, reverses the string using the reverseString() function, and then sends the reversed string out to the UART.
Use this program to test your UART connection under ESOS
Application also has a flashing LED on RB15. Flashing LED is generated by an user task that runs simultaneously with the echo task above.
Definition in file app_reverse.c.
| ESOS_USER_TASK | ( | heartbeat_LED | ) |
An ESOS task to mimic the heartbeat LED found in the PIC24 support library code used in Chapters 8-13.
Toggle LED1, wait 250ms, repeat forever.
Definition at line 119 of file app_reverse.c.
| ESOS_USER_TASK | ( | reverse_string | ) |
Read an entire string from the "in" stream, reverse the string and send new string out the "out" stream
Definition at line 138 of file app_reverse.c.
| void user_init | ( | void | ) |
User-provided function to initialize user's hardware configuration register user tasks.
Definition at line 198 of file app_reverse.c.
1.8.4