sarmfsw: SMFSW Toolbox (desinged for ARM / compatible with other 8b/16b/32b platforms) 4.0rc
SMFSW collection of miscellaneous functions \& macros (desinged for ARM / compatible with other 8b/16b/32b platforms)
Loading...
Searching...
No Matches
arm_chip_ino.h File Reference

Common macros for Arduino. More...

#include "WProgram.h"
#include "pins_arduino.h"
Include dependency graph for arm_chip_ino.h:

Macros

#define diInterrupts()
 Disable interruptions macro.
 
#define enInterrupts()
 Enable interruptions macro.
 
#define HAL_MAX_TICKS   ((DWORD) -1)
 Max Ticks value.
 
#define HAL_MS_TICKS_FACTOR   1U
 Milliseconds multiplier (depending tick counter frequency)
 
#define HALTicks   millis
 Alias for Arduino get ms ticks function.
 

Enumerations

enum  eResetSource { RST_POR = 1U , RST_UNKNOWN = 0xFFU }
 Source of last reset. More...
 

Detailed Description

Common macros for Arduino.

Author
SMFSW
MISRA C:2012 Deviations
Header scope legitimate use derogation authorized for:
Rule-5.6 - Required: unique typedef name (misra-c2012-5.6)
Rule-5.9 - Advisory: internal linkage unique function name (misra-c2012-5.9)
Justification: typedefs name are only defined once (other arm_chip_xxx files are not included at the same time).

Macro Definition Documentation

◆ diInterrupts

#define diInterrupts ( )
Value:
noInterrupts()

Disable interruptions macro.

◆ enInterrupts

#define enInterrupts ( )
Value:
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   1U

Milliseconds multiplier (depending tick counter frequency)

Note
Define HAL_MS_TICKS_FACTOR with custom multiplier in project if tick period is not 1ms

◆ HALTicks

#define HALTicks   millis

Alias for Arduino get ms ticks function.

Enumeration Type Documentation

◆ eResetSource

Source of last reset.

MISRA C:2012 Deviations
Local deviation has been granted for following rules:
Rule-20.5 - Advisory: #undef (misra-c2012-20.5)
Enumerator
RST_POR 

Power On Reset.

RST_UNKNOWN 

Unknown Reset Source.