altos: Add support for multiple SPI busses and sharing device drivers
[fw/altos] / src / core / ao.h
index 080cadb2646dee8b1b5a1c317842097d5ff82e71..f7db3bf41c82eca69ba8bbe1125cc402908614ef 100644 (file)
@@ -114,6 +114,7 @@ ao_start_scheduler(void);
 #define AO_PANIC_USB           10      /* Trying to send USB packet while busy */
 #define AO_PANIC_BT            11      /* Communications with bluetooth device failed */
 #define AO_PANIC_STACK         12      /* Stack overflow */
+#define AO_PANIC_SPI           13      /* SPI communication failure */
 
 /* Stop the operating system, beeping and blinking the reason */
 void
@@ -1509,6 +1510,9 @@ ao_config_get(void);
 void
 ao_config_put(void);
 
+void
+ao_config_set_radio(void);
+
 void
 ao_config_init(void);
 
@@ -1891,8 +1895,14 @@ ao_sqrt(uint32_t op);
  * ao_freq.c
  */
 
-int32_t ao_freq_to_set(int32_t freq, int32_t cal);
+int32_t ao_freq_to_set(int32_t freq, int32_t cal) __reentrant;
 
 #include <ao_arch_funcs.h>
 
+/*
+ * ao_ms5607.c
+ */
+
+void ao_ms5607_init(void);
+
 #endif /* _AO_H_ */