Common macros for Arduino.
More...
#include "WProgram.h"
#include "pins_arduino.h"
Common macros for Arduino.
- Author
- SMFSW
- Copyright
- MIT (c) 2017-2024, SMFSW
- Warning
- Do not use macros for function qualifiers in this file
- MISRA C:2012 Deviations
- Header scope deviation has been granted for following rules:
Rule-20.5 - Advisory: #undef
(misra-c2012-20.5)
◆ diInterrupts
#define diInterrupts |
( |
| ) |
noInterrupts() |
Disable interruptions macro.
◆ enInterrupts
#define enInterrupts |
( |
| ) |
interrupts() |
Enable interruptions macro.
◆ HAL_MAX_TICKS
#define HAL_MAX_TICKS ((DWORD) -1) |
Max Ticks value.
- Note
- Define HAL_MAX_TICKS with custom max value in project if tick max value is not using 32b variable full scale
◆ HAL_MS_TICKS_FACTOR
#define HAL_MS_TICKS_FACTOR 1 |
Milliseconds multiplier (depending tick counter frequency)
- Note
- Define HAL_MS_TICKS_FACTOR with custom multiplier in project if tick period is not 1ms
◆ HALTicks
Alias for Arduino get ms ticks function.
◆ eResetSource
◆ eResetSource
Source of last reset.
Enumerator |
---|
RST_POR | Power On Reset.
|
RST_UNKNOWN | Unknown Reset Source.
|