Skip to content

Commit

Permalink
metro-snek: Remove unused boot loader support
Browse files Browse the repository at this point in the history
These boards have an 8-k USB boot loader reached by hitting reset
twice and so they don't need our simpler boot loader which needs OS
support.

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Apr 12, 2019
1 parent 59d637a commit 14e42c1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
13 changes: 0 additions & 13 deletions metro-snek/ao-interrupt.c
Expand Up @@ -14,11 +14,6 @@

#include <ao.h>

#ifndef IS_FLASH_LOADER
#error Should define IS_FLASH_LOADER
#define IS_FLASH_LOADER 0
#endif

extern void main(void);
extern char __stack__;
extern char __text_start__, __text_end__;
Expand All @@ -45,19 +40,11 @@ samd21_flash_size(void)
uint32_t psz = (samd21_nvmctrl.param >> SAMD21_NVMCTRL_PARAM_PSZ) & SAMD21_NVMCTRL_PARAM_PSZ_MASK;

/* page size is 2**(3 + psz) */

return nvmp << (3 + psz);
}

void start(void)
{
#if AO_BOOT_CHAIN
if (ao_boot_check_chain()) {
#if AO_BOOT_PIN
ao_boot_check_pin();
#endif
}
#endif
/* Turn on sysctrl */
samd21_pm.apbamask |= (1 << SAMD21_PM_APBAMASK_SYSCTRL);

Expand Down
6 changes: 0 additions & 6 deletions metro-snek/ao-pins.h
Expand Up @@ -46,12 +46,6 @@
#define AO_USB_OUT_HOOK 1
#define USE_USB_FIFO 1
#define HAS_BEEP 0
#define PACKET_HAS_SLAVE 0
#define IS_FLASH_LOADER 0

#define AO_BOOT_CHAIN 0

#define LOW_LEVEL_DEBUG 0

#define AO_SNEK_TIMER_FUNC_E 0
#define AO_SNEK_TIMER_FUNC_F 0x80
Expand Down

0 comments on commit 14e42c1

Please sign in to comment.