HALFRED  0.4.0
hal_core.h
Go to the documentation of this file.
1 
10 #ifndef HAL_CORE_H_
11 #define HAL_CORE_H_
12 
13 
14 #include "hal_config.h"
15 #include "hal_defs.h"
16 #include "hal_port_core.h"
17 #include <stddef.h>
18 
19 
62 
66 #define CORE_Init() CORE_PORT_Init()
67 
71 #define CORE_Deinit() CORE_PORT_Deinit()
72 
76 #define CORE_EnterCritical() CORE_PORT_EnterCritical()
77 
81 #define CORE_ExitCritical() CORE_PORT_ExitCritical()
82 
86 #define CORE_EnableInterrupts() CORE_PORT_EnableInterrupts()
87 
91 #define CORE_DisableInterrupts() CORE_PORT_DisableInterrupts()
92 
93 #if (defined HAL_ENABLE_OS) && (HAL_ENABLE_OS)
94 #define CORE_GetSystemTime() OS_GetSystemTime()
95 #else
96 
101 #define CORE_GetSystemTime() CORE_PORT_GetSystemTime()
102 #endif
103 
109 HALRESULT CORE_GetUID(void* uid);
110 
115 size_t CORE_GetUIDSize(void);
116 
120 #define CORE_Reset() CORE_PORT_Reset()
121 
129 #endif /* HAL_CORE_H */
size_t CORE_GetUIDSize(void)
Definition: hal_core.c:15
HALRESULT
Definition: hal_defs.h:16
HALRESULT CORE_GetUID(void *uid)
Definition: hal_core.c:23
Various HAL definitions.