summaryrefslogtreecommitdiff
path: root/src/megametrum-v0.1/ao_pins.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-06-15 22:40:30 -0700
committerKeith Packard <keithp@keithp.com>2012-06-15 22:40:30 -0700
commite09e35471e788b88909ff01037fb8e0e4eabcd7d (patch)
treebc0403bfcc0563fc7c884bbab79ca348cb7797fe /src/megametrum-v0.1/ao_pins.h
parentc2949ea15c59215834fedac7646f50c8a09f716f (diff)
altos: Start making cc1120 radio work
RDF tones and radio calibration work now. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/megametrum-v0.1/ao_pins.h')
-rw-r--r--src/megametrum-v0.1/ao_pins.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/megametrum-v0.1/ao_pins.h b/src/megametrum-v0.1/ao_pins.h
index d6394d9b..5121ad58 100644
--- a/src/megametrum-v0.1/ao_pins.h
+++ b/src/megametrum-v0.1/ao_pins.h
@@ -65,6 +65,7 @@
#define USE_INTERNAL_FLASH 0
#define HAS_USB 1
#define HAS_BEEP 1
+#define HAS_RADIO 1
#define HAS_SPI_1 1
#define SPI_1_PA5_PA6_PA7 1
@@ -74,6 +75,10 @@
#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
@@ -81,7 +86,7 @@
#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
@@ -251,4 +256,6 @@ struct ao_adc {
#define HAS_HIGHG_ACCEL 1
+#define NUM_CMDS 16
+
#endif /* _AO_PINS_H_ */