uwb-core DPL (Decawave Porting Layer) error types
More...
uwb-core DPL (Decawave Porting Layer) error types
- Author
- Francisco Molina franc.nosp@m.ois-.nosp@m.xavie.nosp@m.r.mo.nosp@m.lina@.nosp@m.inri.nosp@m.a.fr
Definition in file dpl_os.h.
#include <assert.h>
#include <stdint.h>
#include <stdatomic.h>
#include "irq.h"
#include "dpl/dpl_types.h"
Go to the source code of this file.
|
typedef uint32_t | dpl_sr_t |
| CPU status register.
|
|
◆ dpl_hw_enter_critical()
static uint32_t dpl_hw_enter_critical |
( |
void |
| ) |
|
|
inlinestatic |
Disable ISRs.
- Returns
- current isr context
Definition at line 58 of file dpl_os.h.
◆ dpl_hw_exit_critical()
static void dpl_hw_exit_critical |
( |
uint32_t |
ctx | ) |
|
|
inlinestatic |
Restores ISR context.
- Parameters
-
[in] | ctx | ISR context to restore. |
Definition at line 71 of file dpl_os.h.
◆ dpl_hw_is_in_critical()
static bool dpl_hw_is_in_critical |
( |
void |
| ) |
|
|
inlinestatic |
Check if is in critical section.
- Returns
- true, if in critical section, false otherwise
Definition at line 83 of file dpl_os.h.