Skip to content
Snippets Groups Projects
Commit c2b23c56 authored by schneider's avatar schneider
Browse files

fix(bootlader): Use push button subsystem

parent 17e112cd
No related branches found
No related tags found
No related merge requests found
......@@ -178,16 +178,9 @@ int main(void)
{
printf("\n\nBootloader\n");
gpio_cfg_t gpio_in;
gpio_in.port = GPIO_PORT_IN;
gpio_in.mask = GPIO_PIN_IN;
gpio_in.pad = GPIO_PAD_PULL_UP;
gpio_in.func = GPIO_FUNC_IN;
GPIO_Config(&gpio_in);
// If the button is pressed, we go into MSC mode.
if (!GPIO_InGet(&gpio_in)) {
//if (!GPIO_InGet(&gpio_in)) {
if (PB_Get(0)) {
run_usbmsc();
// If we return, don't try to boot. Maybe rather trigger a software reset.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment