#include "esos.h"
#include "esos_pic24.h"
#include "esos_pic24_rs232.h"
Go to the source code of this file.
Functions | |
void | user_init (void) |
In this version, the user selected a number 0-9 which is the increment to add each character in the "echo". The application will echo until an exclamation point "!" is sent. Then, the user is prompted for a new increment and the process repeats.
Application also has a flashing LED on RB15. Flashing LED is generated by an software timer calling a user-provided callback function.
Definition in file app_childtask.c.
void user_init | ( | void | ) |
User-provided function to initialize user's hardware configuration register user tasks.
This function MUST register at least one ESOS task.
user_init() is a centralized initialization routine where the user can setup their application. It is called automagically by ES_OS during the operating system initialization.
User should set up any state machines and init all application variables. They can also turn on any needed peripherals here.
User shall not mess with the interrupt hardware directly!!! The ESOS must be aware of the interrupts and provides esos_XXXXXXX functions for the user to use. Using these ESOS-provided functions, the user may (and probably should) initialize, register, and enable interrupts in this routine.
Furthermore, the user should register AT LEAST one user application task here via esos_RegisterTask or the ES_OS scheduler will have nothing to schedule to run when this function returns.
Definition at line 191 of file app_childtask.c.