1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-30 08:51:19 +01:00

Merge pull request #11248 from emmanuelsearch/pr-riotboot-saml1x

saml1x: add riotboot support
This commit is contained in:
Dylan Laduranty 2019-03-26 13:08:59 +01:00 committed by GitHub
commit b0a2559db8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,9 @@ FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
# Put other features on these boards (in alphabetical order)
FEATURES_PROVIDED += riotboot
# The board MPU family (used for grouping by the CI system)
FEATURES_MCU_GROUP = cortex_m23

View File

@ -217,10 +217,11 @@ static inline void cpu_jump_to_image(uint32_t image_address)
__asm("BX %0" :: "r" (destination_address));
}
/* The following register is only present for Cortex-M0+, -M3, -M4 and -M7 CPUs */
/* The following register is only present for
Cortex-M0+, -M3, -M4, -M7 and -M23 CPUs */
#if defined(CPU_ARCH_CORTEX_M0PLUS) || defined(CPU_ARCH_CORTEX_M3) || \
defined(CPU_ARCH_CORTEX_M4) || defined(CPU_ARCH_CORTEX_M4F) || \
defined(CPU_ARCH_CORTEX_M7)
defined(CPU_ARCH_CORTEX_M7) || defined(CPU_ARCH_CORTEX_M23)
static inline uint32_t cpu_get_image_baseaddr(void)
{
return SCB->VTOR;