Class OSImpl - DEPRECATED

Page date Mon Feb 21 11:58:23 2011 .   Improve this page

OSImpl

Constructors

Methods

inline static void CPUstackInit(void) attribute((always_inline))

Description

Initialize the SP register in order to point to the stack section.

Parameters

:* none

Return value

:* none

inline static void CPUinit(void) attribute((always_inline))

Description

Perform some CPU initializations.

Parameters

:* none

Return value

:* none

inline static void CPUidle(void) attribute((always_inline))

Description

Put MCU to the idle sleep mode.

Parameters

:* none

Return value

:* none

inline static void CPUsleep(void) attribute((always_inline))

Description

Put MCU to sleep.

Parameters

:* none

Return value

:* none

inline static void CPUdeepSleep(void) attribute((always_inline))

Description

Put MCU to deep sleep.

Parameters

:* none

Return value

:* none

inline static OSResetBits_t CPUfetchResetBits(void) attribute((always_inline))

Description

Return the reset bits used to know the reset reason.

Parameters

:* none

Return value

:* The reset bits used to know the reset reason.

inline static void WDTreset(void) attribute((always_inline))

Description

Reset the WDT.

Parameters

:* none

Return value

:* none

inline static void NOP(void) attribute((always_inline))

Description

No operation performed. It embeds the asm “nop” assembly command.

Parameters

:* none

Return value

:* none

inline static void SOFTreset(void) attribute((always_inline))

Description

Generate a soft reset.

Parameters

:* none

Return value

:* none

inline static void returnFromInterrupt(void) attribute((always_inline,noreturn))

Description

Wrapper for the asm “rete” instruction.

Parameters

:* none

Return value

:* none

inline static void returnFromSubroutine(void) attribute((always_inline,noreturn))

Description

Copy link register’s (LR) value into the PC. This will continue execution of the previously executed routine.

Parameters

:* none

Return value

:* none

inline static void interruptsEnable(void) attribute((always_inline))

Description

Enable interrupts (global interrupt mask bit - GM from SR). If function must be always inline, it is required the definition of OS_INLINE_INTERRUPTS_ENABLE_DISABLE.

Parameters

:* none

Return value

:* none

inline static void interruptsDisable(void) attribute((always_inline))

Description

Disable all interrupts (global interrupt mask bit - GM from SR). If function must be always inline, it is required the definition of OS_INLINE_INTERRUPTS_ENABLE_DISABLE.

Parameters

:* none

Return value

:* none