Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.

Commit

Permalink
Merge pull request #11 from ARMmbed/ARCH_A9_fix
Browse files Browse the repository at this point in the history
mbed-os: make code compile for A9 board(s) also.
  • Loading branch information
Nir Sonnenschein authored Oct 14, 2016
2 parents e2102fd + 03d26ec commit 08f7c93
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Source/Port/Reference-Impl/mbedOS/RTOS/pal_plat_rtos.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,25 @@
#include "string.h"

#include "cmsis_os.h" // Revision: V1.02
// these includes try to find declaration of NVIC_SystemReset
#include "cmsis_nvic.h"
// These includes try to find declaration of NVIC_SystemReset.
// Note: At least on A9 the cmsis_nvic.h can not be included without previous
// board specific includes, so it has to be included only when known to work.
#if defined (__CORTEX_M0)
#include "cmsis_nvic.h"
#include "core_cm0.h"
#elif defined (__CORTEX_M3)
#include "cmsis_nvic.h"
#include "core_cm3.h"
#elif defined (__CORTEX_M4)
#include "cmsis_nvic.h"
#include "core_cm4.h"
#elif defined (__CORTEX_M7)
#include "cmsis_nvic.h"
#include "core_cm7.h"
#else
#error "unsupported CPU arch"
// Declaration of NVIC_SystemReset is not present on core_ca9.h, but in the
// board specific files.
void NVIC_SystemReset(void);
#endif

#include "critical.h"
Expand Down

0 comments on commit 08f7c93

Please sign in to comment.