summaryrefslogtreecommitdiff
path: root/src/megametrum-v0.1/ao_pins.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-04-17 11:01:18 -0700
committerKeith Packard <keithp@keithp.com>2012-04-17 11:01:18 -0700
commit1489263b895a2a825e29d0560c9b1dbba8a3f431 (patch)
treeac77be0da392ca7a130fa24a6ce050c48022f116 /src/megametrum-v0.1/ao_pins.h
parentcc305ea231ae22278abf91c0d9925f5992945369 (diff)
altos: Starting to write cc1120 driver
This does "something" in radio test mode, appearing to generate a 730MHz signal. 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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/megametrum-v0.1/ao_pins.h b/src/megametrum-v0.1/ao_pins.h
index f761e5c3..2e83de8a 100644
--- a/src/megametrum-v0.1/ao_pins.h
+++ b/src/megametrum-v0.1/ao_pins.h
@@ -193,4 +193,17 @@ struct ao_adc {
#define AO_M25_SPI_CS_MASK (1 << 3)
#define AO_M25_SPI_BUS STM_SPI_INDEX(2)
+/*
+ * Radio (cc1120)
+ */
+
+#define AO_CC1120_SPI_CS_PORT stm_gpioc
+#define AO_CC1120_SPI_CS_PIN 5
+#define AO_CC1120_SPI_BUS STM_SPI_INDEX(2)
+
+#define AO_CC1120_INT_PORT stm_gpioc
+#define AO_CC1120_INT_PIN 14
+
+#define AO_CC1120_INT_GPIO 2
+
#endif /* _AO_PINS_H_ */