altos: Use MP switch in cortexelf boot loader for force loader mode
authorKeith Packard <keithp@keithp.com>
Sun, 9 Apr 2017 19:56:59 +0000 (12:56 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 9 Apr 2017 19:56:59 +0000 (12:56 -0700)
Provide a way to get to the boot loader on the cortexelf board by
turning the MP switch on.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/cortexelf-v1/flash-loader/ao_pins.h

index a34bcb6c348a5121f78fafef1e9fd587ed5f785f..5d63dc2c2b2b2193264b7f4827fb86cefbe90551 100644 (file)
 
 #include <ao_flash_stm_pins.h>
 
-/* Companion port cs_companion0 PB6 */
+/* MP switch, gpioc 9 */
 
 #define AO_BOOT_PIN                    1
-#define AO_BOOT_APPLICATION_GPIO       stm_gpiob
-#define AO_BOOT_APPLICATION_PIN                0
+#define AO_BOOT_APPLICATION_GPIO       stm_gpioc
+#define AO_BOOT_APPLICATION_PIN                9
 #define AO_BOOT_APPLICATION_VALUE      1
-#define AO_BOOT_APPLICATION_MODE       AO_EXTI_MODE_PULL_UP
+#define AO_BOOT_APPLICATION_MODE       0
 
 #endif /* _AO_PINS_H_ */