eLooM for STM32 application  v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
Loading...
Searching...
No Matches
sysinit.h
Go to the documentation of this file.
1
30#ifndef SYSINIT_H_
31#define SYSINIT_H_
32
38#include "services/IBoot.h"
39#include "services/IBootVtbl.h"
40
41#ifdef __cplusplus
42 extern "C" {
43#endif
44
45#ifndef INIT_TASK_CFG_ENABLE_BOOT_IF
46#define INIT_TASK_CFG_ENABLE_BOOT_IF 0
47#endif
48
49#if (INIT_TASK_CFG_ENABLE_BOOT_IF == 0)
50#define INIT_TASK_CGF_BOOT_PARAM false
51#else
52#define INIT_TASK_CGF_BOOT_PARAM true
53#endif
54
55#define ELOOM_MAGIC_NUMBER (12974U)
56#define ELOOM_API_VERSION_MAJOR (0x03U)
57#define ELOOM_API_VERSION_MINOR (0x02U)
58#define ELOOM_API_VERSION_PATCH (0x00U)
59#define ELOOM_API_VERSION (0x00FFFFFF & ((ELOOM_API_VERSION_MAJOR<<16) | (ELOOM_API_VERSION_MINOR<<8) | (ELOOM_API_VERSION_PATCH)))
60
61#define SYS_MS_TO_TICKS( xTimeInMs ) ( (uint32_t) (((uint32_t )(xTimeInMs) * (uint32_t)TX_TIMER_TICKS_PER_SECOND) / (uint32_t)1000))
62
66typedef struct _APIVersion APIVersion;
67
72 uint8_t m_nPatch: 8;
73 uint8_t m_nMinor: 8;
74 uint8_t m_nMajor: 8;
75 uint8_t m_nPadding :8;
76};
77
86sys_error_code_t SysInit(boolean_t bEnableBootIF);
87
96void SysPreSleepProcessing(uint32_t * ulExpectedIdleTime);
97
104void SysPostSleepProcessing(uint32_t * ulExpectedIdleTime);
105
114
125
133
139boolean_t SysEventsPending(void);
140
150
158IBoot *SysGetBootIF(void);
159
169
175
176
177#ifdef __cplusplus
178}
179#endif
180
181
182#endif /* SYSINIT_H_ */
Define the Application Context public API.
Application error manager delegate.
The Boot interface integrates support for the bootloader into the framework.
<DESCRIPTIOM>
Definition AManagedTask_vtbl.h:94
Definition sysinit.h:71
uint8_t m_nPatch
Definition sysinit.h:72
uint8_t m_nMinor
Definition sysinit.h:73
uint8_t m_nPadding
Definition sysinit.h:75
uint8_t m_nMajor
Definition sysinit.h:74
Definition ApplicationContext.h:39
Definition IAppPowerModeHelper_vtbl.h:56
Definition IApplicationErrorDelegateVtbl.h:57
Definition IBootVtbl.h:51
uint16_t sys_error_code_t
Definition syserror.h:41
void SysPostSleepProcessing(uint32_t *ulExpectedIdleTime)
boolean_t SysEventsPending(void)
Definition sysinit.c:323
IAppPowerModeHelper * SysGetPowerModeHelper(void)
Definition sysinit.c:356
void SysPreSleepProcessing(uint32_t *ulExpectedIdleTime)
IBoot * SysGetBootIF(void)
Definition sysinit.c:352
IApplicationErrorDelegate * SysGetErrorDelegate(void)
Definition sysinit.c:347
sys_error_code_t SysOnStartApplication(ApplicationContext *pAppContext)
Definition sysinit.c:187
sys_error_code_t SysTaskErrorHandler(AManagedTask *pxTask)
Definition sysinit.c:304
sys_error_code_t SysInit(boolean_t bEnableBootIF)
Definition sysinit.c:193
sys_error_code_t SysLoadApplicationContext(ApplicationContext *pAppContext)
Definition sysinit.c:181
APIVersion SysGetAPIVersion()
Definition sysinit.c:371