GaIA BIOS Library
Loading...
Searching...
No Matches
gwa_reset.h File Reference

Reset utilities. More...

#include <stdint.h>

Macros

#define GWA_LAST_RESET_CAUSE_POR   (0x01)
 Last reset due to POR (Power On Reset)
#define GWA_LAST_RESET_CAUSE_IWDG   (0x02)
 Last reset due to IWDG (Independent WatchDog)
#define GWA_LAST_RESET_CAUSE_SW   (0x04)
 Last reset due to software reset.
#define GWA_BOOT_INVALID_ADDRESS   (-1ul)
 An invalid restart address has been passed to function gwa_start_application.

Functions

void gwa_boot_handler (void)
 This function handles the reset exit, based on the requested conditions.
void gwa_start_stm32_bootloader (void)
 Resets the microcontroller, then jumps to the ROM bootloader at restart.
int32_t gwa_start_application (uint32_t code_base_address)
 Resets the microcontroller, then jumps to the main application, specifying the base address.
void gwa_soft_reset (void)
 Unconditionally resets the microcontroller.
uint8_t gwa_is_soft_reset (void)
 Checks if the reset was due to a soft reset or for hardware reasons.
uint16_t gwa_get_reset_cause (void)
 Gets the cause of last reset.

Detailed Description

Reset utilities.

Author
Tecnologix, 2014