19 #ifndef MICRO_COMMON_H_
20 #define MICRO_COMMON_H_
22 #ifndef DOXYGEN_SHOULD_SKIP_THIS
23 #ifndef __STSTATUS_TYPE__
24 #define __STSTATUS_TYPE__
28 typedef uint8_t StStatus;
29 #endif //__STSTATUS_TYPE__
30 #endif // DOXYGEN_SHOULD_SKIP_THIS
52 #define MICRO_DISABLE_WATCH_DOG_KEY 0xA5
73 #ifdef DOXYGEN_SHOULD_SKIP_THIS
97 typedef uint8_t SleepModes;
101 SLEEPMODE_RUNNING = 0,
103 SLEEPMODE_WAKETIMER = 2,
104 SLEEPMODE_MAINTAINTIMER = 3,
105 SLEEPMODE_NOTIMER = 4,
141 #ifdef CORTEXM3_STM32F103
142 #include "micro/cortexm3/stm32f103ret/micro-specific.h"
144 #ifdef CORTEXM3_STM32W108
148 #endif //MICRO_COMMON_H_
void halCommonDelayMicroseconds(uint16_t us)
Blocks the current thread of execution for the specified amount of time, in microseconds.
boolean halInternalWatchDogEnabled(void)
Determines whether the watchdog has been enabled or disabled.
void halPowerUp(void)
Powers up microcontroller peripherals and board peripherals.
void halInternalEnableWatchDog(void)
Enables the watchdog timer.
Utility and convenience functions for STM32W108 microcontroller, common to both the full and minimal ...
void halPowerDown(void)
Powers down microcontroller peripherals and board peripherals.
void halInternalDisableWatchDog(uint8_t magicKey)
Disables the watchdog timer.
void halReboot(void)
Restarts the microcontroller and therefore everything else.
void halInit(void)
Initializes microcontroller-specific peripherals.
StStatus halBootloaderStart(uint8_t mode, uint8_t channel, uint16_t panId)
Request the appplication to enter in bootloader mode.