altos: Allow for other mutex implementations
authorKeith Packard <keithp@keithp.com>
Fri, 12 Oct 2012 20:55:33 +0000 (13:55 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 12 Oct 2012 20:55:33 +0000 (13:55 -0700)
Allow projects to replace ao_mutex_get and ao_mutex_put with macros

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao.h

index 9d80148937d5d7e8e2ae6f5a372feae759d1bad6..200d4bc49797296810e9a66c67cc07e502f043ec 100644 (file)
@@ -119,11 +119,13 @@ ao_clock_init(void);
  * ao_mutex.c
  */
 
+#ifndef ao_mutex_get
 void
 ao_mutex_get(__xdata uint8_t *ao_mutex) __reentrant;
 
 void
 ao_mutex_put(__xdata uint8_t *ao_mutex) __reentrant;
+#endif
 
 /*
  * ao_cmd.c