From 54e46d7818ad14f4a00a9df905f26f135a462e6d Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Wed, 20 Mar 2013 20:03:00 +0000 Subject: Add smaller AVR8 targets to the Mass Storage bootloader target list in the Bootloader build test. --- Bootloaders/MassStorage/BootloaderMassStorage.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Bootloaders/MassStorage') diff --git a/Bootloaders/MassStorage/BootloaderMassStorage.c b/Bootloaders/MassStorage/BootloaderMassStorage.c index 61f8760f8..28f42b6d2 100644 --- a/Bootloaders/MassStorage/BootloaderMassStorage.c +++ b/Bootloaders/MassStorage/BootloaderMassStorage.c @@ -69,11 +69,13 @@ void Application_Jump_Check(void) /* Enable pull-up on the IO13 pin so we can use it to select the mode */ PORTC |= (1 << 7); Delay_MS(10); + + /* If IO13 is not jumpered to ground, start the user application instead */ JumpToApplication |= ((PINC & (1 << 7)) != 0); - PORTC &= ~(1 << 7); - #endif - #if ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1)) + /* Disable pull-up after the check has completed */ + PORTC &= ~(1 << 7); + #elif ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1)) /* Disable JTAG debugging */ JTAG_DISABLE(); -- cgit v1.2.3