Browse Source

[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.
pull/174/head
Piotr Esden-Tempski 12 years ago
parent
commit
b72a3640b3
  1. 5
      lib/cm3/sync.c

5
lib/cm3/sync.c

@ -19,6 +19,10 @@
#include <libopencm3/cm3/sync.h> #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 __ldrex(volatile uint32_t *addr)
{ {
uint32_t res; uint32_t res;
@ -66,3 +70,4 @@ void mutex_unlock(mutex_t *m)
*m = MUTEX_UNLOCKED; *m = MUTEX_UNLOCKED;
} }
#endif

Loading…
Cancel
Save