HWA
Bare metal programming with style
|
Macros | |
#define | HW_ATOMIC(...) |
#define | HW_MEM_EEPROM __attribute__((section(".eeprom"))) |
#define | hw_wait_irq , _hw_wait_irq |
#define | hw_waste_cycles(n) __builtin_avr_delay_cycles(n) |
#define HW_ATOMIC | ( | ... | ) |
Execute a block with interrupts disabled
#define HW_MEM_EEPROM __attribute__((section(".eeprom"))) |
#define hw_wait_irq , _hw_wait_irq |
#define hw_waste_cycles | ( | n | ) | __builtin_avr_delay_cycles(n) |
Software loop of n
CPU clock cycles (only works with compile-time constants).