ARM Cortex HAL.
More...
#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
|
enum | FuriHalCortexComp { FuriHalCortexComp0
, FuriHalCortexComp1
, FuriHalCortexComp2
, FuriHalCortexComp3
} |
|
enum | FuriHalCortexCompSize { FuriHalCortexCompSizeWord = 0b10
, FuriHalCortexCompSizeHalfWord = 0b01
, FuriHalCortexCompSizeByte = 0b00
} |
|
enum | FuriHalCortexCompFunction { FuriHalCortexCompFunctionPC = 0b100
, FuriHalCortexCompFunctionRead = 0b101
, FuriHalCortexCompFunctionWrite = 0b110
, FuriHalCortexCompFunctionReadWrite = 0b110
} |
|
◆ furi_hal_cortex_comp_enable()
void furi_hal_cortex_comp_enable |
( |
FuriHalCortexComp | comp, |
|
|
FuriHalCortexCompFunction | function, |
|
|
uint32_t | value, |
|
|
uint32_t | mask, |
|
|
FuriHalCortexCompSize | size ) |
◆ furi_hal_cortex_comp_reset()
void furi_hal_cortex_comp_reset |
( |
FuriHalCortexComp | comp | ) |
|
Reset DWT comparator.
- Parameters
-
◆ furi_hal_cortex_delay_us()
void furi_hal_cortex_delay_us |
( |
uint32_t | microseconds | ) |
|
Microseconds delay.
- Parameters
-
[in] | microseconds | The microseconds to wait |
◆ furi_hal_cortex_instructions_per_microsecond()
uint32_t furi_hal_cortex_instructions_per_microsecond |
( |
void | | ) |
|
Get instructions per microsecond count.
- Returns
- instructions per microsecond count
◆ furi_hal_cortex_timer_get()
Get Timer.
- Parameters
-
[in] | timeout_us | The expire timeout in us |
- Returns
- The FuriHalCortexTimer
◆ furi_hal_cortex_timer_is_expired()
Check if timer expired.
- Parameters
-
[in] | cortex_timer | The FuriHalCortexTimer |
- Returns
- true if expired
◆ furi_hal_cortex_timer_wait()
Wait for timer expire.
- Parameters
-
[in] | cortex_timer | The FuriHalCortexTimer |