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)

Detailed Description

Author:
YRT
Date:
05/2011
Note:
Platform Open4 STM32

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] AppName pointer on the application name.
Returns:
long address of the application.

Definition at line 215 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] Offs Address in the NVIC table
Returns:
A pointer to the current handler or 0 in case of an error.

Definition at line 193 of file Util_spe.c.

u8 UTIL_GetUsb ( void   ) 

Return the USB connexion state.

Returns:
The USB connexion state.

Definition at line 151 of file Util_spe.c.

void UTIL_SetIrqHandler ( s32  Offs,
tHandler  pHDL 
)

Redirect an IRQ handler.

Parameters:
[in] Offs Address in the NVIC table
[in] pHDL Pointer to the handler.

Definition at line 171 of file Util_spe.c.