projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
[fw/altos]
/
src
/
telebt-v3.0
/
ao_pins.h
diff --git
a/src/telebt-v3.0/ao_pins.h
b/src/telebt-v3.0/ao_pins.h
index f178c34902b943b1bdded54bcd0b25940c785a8d..bb9d43a753e4912d44fcbe4915ab1fb178743d7f 100644
(file)
--- a/
src/telebt-v3.0/ao_pins.h
+++ b/
src/telebt-v3.0/ao_pins.h
@@
-3,7
+3,8
@@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-18,7
+19,6
@@
#ifndef _AO_PINS_H_
#define _AO_PINS_H_
#ifndef _AO_PINS_H_
#define _AO_PINS_H_
-#define HAS_TASK_QUEUE 1
/* 8MHz High speed external crystal */
#define AO_HSE 8000000
/* 8MHz High speed external crystal */
#define AO_HSE 8000000
@@
-52,8
+52,13
@@
#define USE_SERIAL_2_STDIN 1
#define DELAY_SERIAL_2_STDIN 1
#define USE_SERIAL_2_FLOW 1
#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 SERIAL_2_PA2_PA3 1
#define SERIAL_2_PD5_PD6 0
#define SERIAL_2_PA2_PA3 1
#define SERIAL_2_PD5_PD6 0
+#define SERIAL_2_PORT_RTS (&stm_gpioa)
+#define SERIAL_2_PIN_RTS 0
+#define SERIAL_2_PORT_CTS (&stm_gpioa)
+#define SERIAL_2_PIN_CTS 1
#define HAS_SERIAL_3 0
#define USE_SERIAL_3_STDIN 0
#define HAS_SERIAL_3 0
#define USE_SERIAL_3_STDIN 0
@@
-74,6
+79,7
@@
#define HAS_TELEMETRY 0
#define HAS_APRS 0
#define HAS_ACCEL 0
#define HAS_TELEMETRY 0
#define HAS_APRS 0
#define HAS_ACCEL 0
+#define HAS_AES 1
#define HAS_SPI_1 1
#define SPI_1_PA5_PA6_PA7 1 /* CC1200 */
#define HAS_SPI_1 1
#define SPI_1_PA5_PA6_PA7 1 /* CC1200 */
@@
-130,7
+136,7
@@
struct ao_adc {
};
#define AO_ADC_DUMP(p) \
};
#define AO_ADC_DUMP(p) \
- printf("tick: %5
u %5d batt:
%5d\n", \
+ printf("tick: %5
lu batt
%5d\n", \
(p)->tick, \
(p)->adc.v_batt);
(p)->tick, \
(p)->adc.v_batt);
@@
-168,7
+174,7
@@
struct ao_adc {
#define ao_serial_btm_getchar ao_serial2_getchar
#define ao_serial_btm_putchar ao_serial2_putchar
#define _ao_serial_btm_pollchar _ao_serial2_pollchar
#define ao_serial_btm_getchar ao_serial2_getchar
#define ao_serial_btm_putchar ao_serial2_putchar
#define _ao_serial_btm_pollchar _ao_serial2_pollchar
-#define _ao_serial_btm_sleep
_ao_serial2_sleep
+#define _ao_serial_btm_sleep
_for _ao_serial2_sleep_for
#define ao_serial_btm_set_speed ao_serial2_set_speed
#define ao_serial_btm_drain ao_serial2_drain
#define ao_serial_btm_rx_fifo (ao_stm_usart2.rx_fifo)
#define ao_serial_btm_set_speed ao_serial2_set_speed
#define ao_serial_btm_drain ao_serial2_drain
#define ao_serial_btm_rx_fifo (ao_stm_usart2.rx_fifo)
@@
-184,7
+190,7
@@
struct ao_adc {
/* gets pretty close to 434.550 */
/* gets pretty close to 434.550 */
-#define AO_RADIO_CAL_DEFAULT
0x6ca333
+#define AO_RADIO_CAL_DEFAULT
5695485
#define AO_FEC_DEBUG 0
#define AO_CC1200_SPI_CS_PORT (&stm_gpiob)
#define AO_FEC_DEBUG 0
#define AO_CC1200_SPI_CS_PORT (&stm_gpiob)
@@
-200,4
+206,9
@@
struct ao_adc {
#define HAS_BOOT_RADIO 0
#define HAS_BOOT_RADIO 0
+/* Monitor bits */
+#define HAS_MONITOR 1
+#define LEGACY_MONITOR 0
+#define AO_MONITOR_LED AO_LED_RED
+
#endif /* _AO_PINS_H_ */
#endif /* _AO_PINS_H_ */