summaryrefslogtreecommitdiff
path: root/src/megametrum-v0.1
diff options
context:
space:
mode:
Diffstat (limited to 'src/megametrum-v0.1')
-rw-r--r--src/megametrum-v0.1/ao_megametrum.c2
-rw-r--r--src/megametrum-v0.1/ao_pins.h16
2 files changed, 14 insertions, 4 deletions
diff --git a/src/megametrum-v0.1/ao_megametrum.c b/src/megametrum-v0.1/ao_megametrum.c
index cb1eb417..fbdab64a 100644
--- a/src/megametrum-v0.1/ao_megametrum.c
+++ b/src/megametrum-v0.1/ao_megametrum.c
@@ -53,7 +53,9 @@ main(void)
ao_exti_init();
ao_adc_init();
+#if HAS_BEEP
ao_beep_init();
+#endif
ao_cmd_init();
#if HAS_MS5607
diff --git a/src/megametrum-v0.1/ao_pins.h b/src/megametrum-v0.1/ao_pins.h
index 083c1b6f..ab4cf7df 100644
--- a/src/megametrum-v0.1/ao_pins.h
+++ b/src/megametrum-v0.1/ao_pins.h
@@ -67,7 +67,7 @@
#define HAS_EEPROM 1
#define USE_INTERNAL_FLASH 0
#define HAS_USB 1
-#define HAS_BEEP 1
+#define HAS_BEEP 0
#define HAS_RADIO 1
#define HAS_TELEMETRY 1
#define HAS_APRS 1
@@ -282,11 +282,19 @@ struct ao_adc {
#define AO_CC1120_SPI_CS_PIN 5
#define AO_CC1120_SPI_BUS AO_SPI_2_PB13_PB14_PB15
-#define AO_CC1120_INT_PORT (&stm_gpioc)
-#define AO_CC1120_INT_PIN 14
+#define AO_CC1120_INT_PORT (&stm_gpioc)
+#define AO_CC1120_INT_PIN 14
+#define AO_CC1120_MCU_WAKEUP_PORT (&stm_gpioc)
+#define AO_CC1120_MCU_WAKEUP_PIN (0)
#define AO_CC1120_INT_GPIO 2
-#define HAS_BOOT_RADIO 1
+#define AO_CC1120_INT_GPIO_IOCFG CC1120_IOCFG2
+
+#define AO_CC1120_MARC_GPIO 3
+#define AO_CC1120_MARC_GPIO_IOCFG CC1120_IOCFG3
+
+
+#define HAS_BOOT_RADIO 0
/*
* Mag sensor (hmc5883)