altos: Get SAMD21 SPI driver working in non-DMA mode
[fw/altos] / src / telebt-v4.0 / ao_pins.h
index baf3db69852c83802fb5acd10670a2077853b67a..6efa407d15043010e7185198f91a62c26b28a77e 100644 (file)
@@ -40,7 +40,6 @@
 #define AO_PA11_PA12_RMP       0
 
 #define IS_FLASH_LOADER        0
-#define HAS_TASK_QUEUE         1
 
 /*
  * Serial ports
@@ -54,7 +53,7 @@
 #define USE_SERIAL_2_STDIN     1
 #define DELAY_SERIAL_2_STDIN   1
 #define USE_SERIAL_2_FLOW      1
-#define USE_SERIAL_2_SW_FLOW   1
+#define USE_SERIAL_2_SW_FLOW   0
 #define SERIAL_2_PA2_PA3       1
 #define SERIAL_2_PD5_PD6       0
 #define SERIAL_2_PORT_RTS      (&stm_gpioa)
@@ -75,7 +74,6 @@
 #define HAS_APRS               0
 #define HAS_ACCEL              0
 #define HAS_AES                        0
-#define HAS_POLLCHAR           1
 
 #define HAS_SPI_1              1
 #define SPI_1_PA5_PA6_PA7      1       /* CC1200 */
@@ -132,7 +130,7 @@ struct ao_adc {
 };
 
 #define AO_ADC_DUMP(p) \
-       printf("tick: %5u batt %5d\n", \
+       printf("tick: %5lu batt %5d\n", \
               (p)->tick, \
               (p)->adc.v_batt);
 
@@ -180,50 +178,10 @@ struct ao_adc {
 #define AO_RN_SW_BTN_PORT      (&stm_gpioc)
 #define AO_RN_SW_BTN_PIN       14
 
-/* Pin 9. BM70 P2_3 */
-#define AO_RN_WAKEUP_PORT      (&stm_gpiob)
-#define AO_RN_WAKEUP_PIN       9
-
-/* Pin 11. BM70 P2_7/tx_ind. Status indication along with P1_5 */
-#define AO_RN_P0_4_PORT                (&stm_gpioc)
-#define AO_RN_P0_4_PIN         13
-
-/* Pin 12. BM70 P1_1. Status indication along with P0_4 */
+/* Pin 12. BM70 P1_5. Status indication along with P0_4 */
 #define AO_RN_P1_5_PORT                (&stm_gpiob)
 #define AO_RN_P1_5_PIN         6
 
-/* Pin 13. BM70 P1_2. Also I2C SCL */
-#define AO_RN_P1_2_PORT                (&stm_gpiob)
-#define AO_RN_P1_2_PIN         7
-
-/* Pin 14. BM70 P1_3. Also I2C SDA */
-#define AO_RN_P1_3_PORT                (&stm_gpiob)
-#define AO_RN_P1_3_PIN         8
-
-/* Pin 15. BM70 P0_0/cts. */
-#define AO_RN_CTS_PORT         (&stm_gpioa)
-#define AO_RN_CTS_PIN          1
-
-/* Pin 16. BM70 P1_0. */
-#define AO_RN_P0_5_PORT                (&stm_gpiob)
-#define AO_RN_P0_5_PIN         5
-
-/* Pin 17. BM70 P3_6. */
-#define AO_RN_RTS_PORT         (&stm_gpioa)
-#define AO_RN_RTS_PIN          0
-
-/* Pin 18. BM70 P2_0. */
-#define AO_RN_P2_0_PORT                (&stm_gpiob)
-#define AO_RN_P2_0_PIN         3
-
-/* Pin 19. BM70 P2_4. */
-#define AO_RN_P2_4_PORT                (&stm_gpioa)
-#define AO_RN_P2_4_PIN         10
-
-/* Pin 20. BM70 NC. */
-#define AO_RN_EAN_PORT
-#define AO_RN_EAN_PIN
-
 /* Pin 21. BM70 RST_N. */
 #define AO_RN_RST_N_PORT       (&stm_gpioa)
 #define AO_RN_RST_N_PIN                15
@@ -240,22 +198,6 @@ struct ao_adc {
 #define AO_RN_P3_1_PORT                (&stm_gpiob)
 #define AO_RN_P3_1_PIN         2
 
-/* Pin 25. BM70 P3_2/LINK_DROP. */
-#define AO_RN_P3_2_PORT                (&stm_gpioa)
-#define AO_RN_P3_2_PIN         8
-
-/* Pin 26. BM70 P3_3/UART_RX_IND. */
-#define AO_RN_P3_3_PORT                (&stm_gpiob)
-#define AO_RN_P3_3_PIN         15
-
-/* Pin 27. BM70 P3_4/PAIRING_KEY. */
-#define AO_RN_P3_4_PORT                (&stm_gpiob)
-#define AO_RN_P3_4_PIN         14
-
-/* Pin 28. BM70 P3_5. */
-#define AO_RN_P3_6_PORT                (&stm_gpiob)
-#define AO_RN_P3_6_PIN         13
-
 /* Pin 29. BM70 P0_7. */
 #define AO_RN_P3_7_PORT                (&stm_gpiob)
 #define AO_RN_P3_7_PIN         12
@@ -273,7 +215,6 @@ struct ao_adc {
 #define AO_CC1200_SPI_CS_PIN   11
 #define AO_CC1200_SPI_BUS      AO_SPI_1_PA5_PA6_PA7
 #define AO_CC1200_SPI          stm_spi1
-#define AO_CC1200_SPI_SPEED    AO_SPI_SPEED_6MHz
 
 #define AO_CC1200_INT_PORT             (&stm_gpiob)
 #define AO_CC1200_INT_PIN              (10)