Go to the documentation of this file.
41 asm volatile (
"cpsid i" : : :
"memory");
48 asm volatile (
"cpsie i" : : :
"memory");
66 u32 startTime = HAL_GetTick();
68 while (HAL_GetTick() < startTime + ms)
Assembly instruction wrapper functions.
Commonly used type definitions and helper templates.
#define ALWAYS_INLINE
Definition: attributes.h:34
uint32_t u32
Definition: types.h:38
ALWAYS_INLINE void enableInterrupts()
Enables all interrupts.
Definition: cortex.hpp:47
ALWAYS_INLINE void setInterruptVectorBase(addr_t address)
Sets the base address of the interrupt vector table.
Definition: cortex.hpp:56
Definition: cortex.hpp:33
Commonly used C++ and GNU attributes.
std::uint32_t addr_t
ARM32 specific types.
Definition: types.hpp:90
ALWAYS_INLINE void delay(u32 ms)
Delays execution by a certain number of milliseconds.
Definition: cortex.hpp:39
ALWAYS_INLINE void disableInterrupts()
Disables all interrupts.
Definition: cortex.hpp:40