projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Add ao_viterbi.c to megametrum build
[fw/altos]
/
src
/
megametrum-v0.1
/
ao_pins.h
diff --git
a/src/megametrum-v0.1/ao_pins.h
b/src/megametrum-v0.1/ao_pins.h
index 75b2204530beafa04fabbda886cbf26376330e14..5c5c5972b828589568d1158d70e08432ab9f1cbf 100644
(file)
--- a/
src/megametrum-v0.1/ao_pins.h
+++ b/
src/megametrum-v0.1/ao_pins.h
@@
-65,6
+65,8
@@
#define USE_INTERNAL_FLASH 0
#define HAS_USB 1
#define HAS_BEEP 1
#define USE_INTERNAL_FLASH 0
#define HAS_USB 1
#define HAS_BEEP 1
+#define HAS_RADIO 1
+#define HAS_TELEMETRY 1
#define HAS_SPI_1 1
#define SPI_1_PA5_PA6_PA7 1
#define HAS_SPI_1 1
#define SPI_1_PA5_PA6_PA7 1
@@
-74,6
+76,10
@@
#define HAS_SPI_2 1
#define SPI_2_PB13_PB14_PB15 1
#define SPI_2_PD1_PD3_PD4 0
#define HAS_SPI_2 1
#define SPI_2_PB13_PB14_PB15 1
#define SPI_2_PD1_PD3_PD4 0
+#define SPI_2_GPIO stm_gpiob
+#define SPI_2_SCK 13
+#define SPI_2_MISO 14
+#define SPI_2_MOSI 15
#define HAS_I2C_1 1
#define I2C_1_PB8_PB9 1
#define HAS_I2C_1 1
#define I2C_1_PB8_PB9 1
@@
-81,7
+87,7
@@
#define HAS_I2C_2 1
#define I2C_2_PB10_PB11 1
#define HAS_I2C_2 1
#define I2C_2_PB10_PB11 1
-#define PACKET_HAS_SLAVE
1
+#define PACKET_HAS_SLAVE
0
#define LOW_LEVEL_DEBUG 1
#define LOW_LEVEL_DEBUG 1
@@
-235,6
+241,7
@@
struct ao_adc {
* Mag sensor (hmc5883)
*/
* Mag sensor (hmc5883)
*/
+#define HAS_HMC5883 1
#define AO_HMC5883_INT_PORT stm_gpioc
#define AO_HMC5883_INT_PIN 12
#define AO_HMC5883_I2C_INDEX STM_I2C_INDEX(1)
#define AO_HMC5883_INT_PORT stm_gpioc
#define AO_HMC5883_INT_PIN 12
#define AO_HMC5883_I2C_INDEX STM_I2C_INDEX(1)
@@
-250,4
+257,6
@@
struct ao_adc {
#define HAS_HIGHG_ACCEL 1
#define HAS_HIGHG_ACCEL 1
+#define NUM_CMDS 16
+
#endif /* _AO_PINS_H_ */
#endif /* _AO_PINS_H_ */