sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
|
ARM common macros for Atmel SAM families. More...
#include "atmel_start_pins.h"
#include "err_codes.h"
#include "hpl_reset.h"
#include <ARM_CMSIS_INC>
Macros | |
#define | SAM_HEADER(f) XCAT(<hri_, f).h> |
concatenate <hri_(f) .h> name following sam family f | |
#define | SAM_CONF_HEADER(f) <sam.h> |
<sam.h> name following sam family f | |
#define | ARM_CMSIS_INC SAM_HEADER(SAM_FAMILY) |
Alias for SAM CMSIS include. | |
#define | ARM_HAL_CFG SAM_CONF_HEADER(SAM_FAMILY) |
Alias for SAM HAL config include. | |
#define | HAL_MAX_TICKS ((uint32_t) -1) |
HAL max Ticks value. | |
#define | HAL_MS_TICKS_FACTOR 1 |
HAL milliseconds multiplier (depending tick counter frequency) | |
Typedefs | |
typedef enum eResetSource | eResetSource |
Enumerations | |
enum | eResetSource { RST_POR = RESET_REASON_POR , RST_BODCORE = RESET_REASON_BODCORE , RST_BODVDD = RESET_REASON_BODVDD , RST_EXT = RESET_REASON_EXT , RST_WDT = RESET_REASON_WDT , RST_SYST = RESET_REASON_SYST , RST_UNKNOWN = 0xFF } |
Source of last reset. More... | |
ARM common macros for Atmel SAM families.
Please note TIMER_0_start() shall be called at init.
#define ARM_CMSIS_INC SAM_HEADER(SAM_FAMILY) |
Alias for SAM CMSIS include.
#define ARM_HAL_CFG SAM_CONF_HEADER(SAM_FAMILY) |
Alias for SAM HAL config include.
#define HAL_MAX_TICKS ((uint32_t) -1) |
HAL max Ticks value.
#define HAL_MS_TICKS_FACTOR 1 |
HAL milliseconds multiplier (depending tick counter frequency)
#define SAM_CONF_HEADER | ( | f | ) | <sam.h> |
<sam.h>
name following sam family f
#define SAM_HEADER | ( | f | ) | XCAT(<hri_, f).h> |
concatenate <hri_(f)
.h> name following sam family f
typedef enum eResetSource eResetSource |
enum eResetSource |