[CM0] Disabled sync for LPC43xx/M0.

We are currently using the same code for CM0 CM3 and CM4 cores. This
patch is a bodge that disables sync on the LPC43xx/M0 core, it would be
nicer to probably implement a dispatch system similar to the one used in
stm32 peripheral support so that we can accomodate the different
features of the cortex cores. I (esden) assume we will run into more
incompatibilities in the future between the cortex cores.
This commit is contained in:
Piotr Esden-Tempski 2013-07-07 13:58:00 -07:00
parent cd1f6fac80
commit b72a3640b3
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,10 @@
#include <libopencm3/cm3/sync.h>
#if defined(LPC43XX_M0)
#warning "Currently sync is not supported on Cortex-M0"
#else
uint32_t __ldrex(volatile uint32_t *addr)
{
uint32_t res;
@ -66,3 +70,4 @@ void mutex_unlock(mutex_t *m)
*m = MUTEX_UNLOCKED;
}
#endif