esos/src/pc/app_timer.c File Reference

#include "esos.h"
#include "esos_pc.h"
#include "esos_pc_stdio.h"
#include <stdio.h>
#include <sys/select.h>
#include <termios.h>
#include <unistd.h>

Go to the source code of this file.

Functions

void user_init (void)


Detailed Description

Inputs a string, outputs the reverse. This file is used in three MPLAB projects: reverse_string.mcp - polled RX, TX I/O uartrx_fifo.mcp - interrupt RX, polled TX I/O uartrxtx_fifo.mcp - interrupt RX, interrupt TX I/O Interrupt RX inChar1() is selected by defining UART1_RX_INTERRUPT macro Interrupt TX outChar1() is selected by defining UART1_TX_INTERRUPT macro These macros are defined in their respective MPLAB projects.

Definition in file app_timer.c.


Function Documentation

void user_init ( void   ) 

User-provided function to initialize user's hardware configuration register user tasks.

Note:
All ESOS applications MUST provide this function.

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 478 of file app_timer.c.


Generated on Sun Mar 15 11:14:22 2009 for PIC24 Support Libraries by  doxygen 1.5.8