cpu/sam0: add support for SAMR34 MCU
This commit is contained in:
parent
c9bd7deea0
commit
e189d085b0
@ -2,7 +2,9 @@
|
|||||||
CFLAGS += -DCPU_FAM_$(shell echo $(CPU_FAM) | tr 'a-z-' 'A-Z_')
|
CFLAGS += -DCPU_FAM_$(shell echo $(CPU_FAM) | tr 'a-z-' 'A-Z_')
|
||||||
|
|
||||||
# Set ROM and RAM lengths according to CPU model
|
# Set ROM and RAM lengths according to CPU model
|
||||||
ifneq (,$(filter samd21g18a samd21j18a saml21j18b saml21j18a samr21e18a samr21g18a samr30g18a,$(CPU_MODEL)))
|
ifneq (,$(filter samd21g18a samd21j18a saml21j18b saml21j18a samr21e18a \
|
||||||
|
samr21g18a samr30g18a samr34j18b,$(CPU_MODEL)))
|
||||||
|
|
||||||
ROM_LEN ?= 0x40000
|
ROM_LEN ?= 0x40000
|
||||||
RAM_LEN ?= 0x8000
|
RAM_LEN ?= 0x8000
|
||||||
endif
|
endif
|
||||||
|
|||||||
@ -53,7 +53,7 @@ static const int8_t exti_config[2][32] = {
|
|||||||
0, 1, 2, 3, 4, 5, 6, 7, 12, 13, -1, 15, -1, -1, 10, 11},
|
0, 1, 2, 3, 4, 5, 6, 7, 12, 13, -1, 15, -1, -1, 10, 11},
|
||||||
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
|
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
|
||||||
0, 1, -1, -1, -1, -1, 6, 7, -1, -1, -1, -1, -1, -1, 14, 15},
|
0, 1, -1, -1, -1, -1, 6, 7, -1, -1, -1, -1, -1, -1, 14, 15},
|
||||||
#elif defined(CPU_MODEL_SAMR30G18A)
|
#elif defined(CPU_MODEL_SAMR30G18A) || defined(CPU_MODEL_SAMR34J18B)
|
||||||
{ 0, 1, -1, -1, 4, 5, 6, 7, -1, 9, 10, 11, 12, 13, 14, 15,
|
{ 0, 1, -1, -1, 4, 5, 6, 7, -1, 9, 10, 11, 12, 13, 14, 15,
|
||||||
0, 1, 2, 3, 4, -1, 6, 7, 12, 13, -1, 15, 8, -1, 10, 11},
|
0, 1, 2, 3, 4, -1, 6, 7, 12, 13, -1, 15, 8, -1, 10, 11},
|
||||||
{ 0, -1, 2, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 15,
|
{ 0, -1, 2, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 15,
|
||||||
|
|||||||
@ -41,7 +41,7 @@ void pm_set(unsigned mode)
|
|||||||
default: /* Falls through */
|
default: /* Falls through */
|
||||||
case 2:
|
case 2:
|
||||||
DEBUG("pm_set(): setting IDLE mode.\n");
|
DEBUG("pm_set(): setting IDLE mode.\n");
|
||||||
#ifdef CPU_MODEL_SAMR30G18A
|
#if defined(CPU_MODEL_SAMR30G18A) || defined(CPU_MODEL_SAMR34J18B)
|
||||||
_mode = PM_SLEEPCFG_SLEEPMODE_IDLE;
|
_mode = PM_SLEEPCFG_SLEEPMODE_IDLE;
|
||||||
#else
|
#else
|
||||||
_mode = PM_SLEEPCFG_SLEEPMODE_IDLE2;
|
_mode = PM_SLEEPCFG_SLEEPMODE_IDLE2;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user