CircleOS  1
Functions
Util_spe.c File Reference

Various harware specific utilities for CircleOS. More...

Go to the source code of this file.

Functions

u8 UTIL_GetUsb (void)
 
void UTIL_SetIrqHandler (s32 Offs, tHandler pHDL)
 
tHandler UTIL_GetIrqHandler (s32 Offs)
 
uint_t UTIL_GetAppAddress (const u8 *AppName)
 
void UTIL_SetTimer (u32 millisec, void(*fTimerHandler)(void))
 

Detailed Description

Author
YRT
Date
05/2011
Note
Platform Open4 STM32
Version
4.4 Add UTIL_SetTimer
Date
11/2012

Definition in file Util_spe.c.

Function Documentation

uint_t UTIL_GetAppAddress ( const u8 *  AppName)

Get the address of an application in the FAT.

Parameters
[in]AppNamepointer on the application name.
Returns
long address of the application.

Definition at line 222 of file Util_spe.c.

tHandler UTIL_GetIrqHandler ( s32  Offs)

Get the current IRQ handler. Since (V1.6) the vector table is relocated in RAM, the vectors can be easily modified by the applications.

Parameters
[in]OffsAddress in the NVIC table
Returns
A pointer to the current handler or 0 in case of an error.

Definition at line 200 of file Util_spe.c.

u8 UTIL_GetUsb ( void  )

Return the USB connexion state.

Returns
The USB connexion state.

Definition at line 158 of file Util_spe.c.

void UTIL_SetIrqHandler ( s32  Offs,
tHandler  pHDL 
)

Redirect an IRQ handler.

Parameters
[in]OffsAddress in the NVIC table
[in]pHDLPointer to the handler.

Definition at line 178 of file Util_spe.c.

void UTIL_SetTimer ( u32  millisec,
void(*)(void)  fTimerHandler 
)

Program a timer event.

Parameters
[in]millisecduration to wait before calling the event handler
[in]fTimerHandlerfunction to be call when the delay will elapse
Returns
void

Definition at line 266 of file Util_spe.c.