X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm-flash%2Fao_pins.h;h=d6c7265348e317856ff0f474bcaccec66a39e81d;hb=488a527267decece48e6682e0e0c7fc29cbed329;hp=b232f373db699ba37bba2b62b0aa358319fbdd1a;hpb=a6887032b4d217bca5236ea15389218f10d69545;p=fw%2Faltos diff --git a/src/stm-flash/ao_pins.h b/src/stm-flash/ao_pins.h index b232f373..d6c72653 100644 --- a/src/stm-flash/ao_pins.h +++ b/src/stm-flash/ao_pins.h @@ -20,7 +20,9 @@ #define HAS_TASK_QUEUE 0 -#define AO_HSE 8000000 +/* Bridge SB17 on the board and use the MCO from the other chip */ +#define AO_HSE 8000000 +#define AO_HSE_BYPASS 1 /* PLLVCO = 96MHz (so that USB will work) */ #define AO_PLLMUL 12 @@ -43,15 +45,18 @@ #define AO_RCC_CFGR_PPRE2_DIV STM_RCC_CFGR_PPRE2_DIV_1 #define HAS_USB 1 -#define USE_USB_STDIN 1 +#define USE_USB_STDIO 0 #define HAS_BEEP 0 +#define HAS_TASK 0 +#define HAS_ECHO 0 +#define HAS_TICK 0 #define PACKET_HAS_SLAVE 0 #define LED_PORT_ENABLE STM_RCC_AHBENR_GPIOCEN -#define LED_PORT (&stm_gpioc) -#define LED_PIN_RED 8 -#define LED_PIN_GREEN 9 +#define LED_PORT (&stm_gpiob) +#define LED_PIN_RED 6 +#define LED_PIN_GREEN 7 #define AO_LED_RED (1 << LED_PIN_RED) #define AO_LED_GREEN (1 << LED_PIN_GREEN) @@ -61,11 +66,14 @@ #define AO_TICK_SIGNED int32_t #define HAS_TASK_INFO 0 +#define HAS_VERSION 0 -#define AO_BOOT_APPLICATION_GPIO stm_gpiob -#define AO_BOOT_APPLICATION_PIN 5 -#define AO_BOOT_APPLICATION_VALUE 0 +#define AO_BOOT_CHAIN 1 +#define AO_BOOT_PIN 1 + +#define AO_BOOT_APPLICATION_GPIO stm_gpiod +#define AO_BOOT_APPLICATION_PIN 2 +#define AO_BOOT_APPLICATION_VALUE 1 #define AO_BOOT_APPLICATION_MODE AO_EXTI_MODE_PULL_UP -#define AO_BOOT_APPLICATION_BASE 0x2000 #endif /* _AO_PINS_H_ */