Files

copied

Scanning the repository...

Last update 5 years 6 months by Kate Temkin
Filesfirmwareapollosrcboardsluna
..
apollo_board.h
board.mk
debug_spi.c
dfu.c
fpga.c
jtag.c
led.c
platform_jtag.h
selftest.c
selftest.h
spi.c
spi.h
tusb_config.h
uart.c
usb_descriptors.c
dfu.c
/** * DFU Runtime Support * This file is part of LUNA. * * This file provides support for automatically rebooting into the DFU bootloader. */ #include <sam.h> #include "tusb.h" /** * Handler for DFU_DETACH events, which should cause us to reboot into the bootloader. */ void tud_dfu_rt_reboot_to_dfu(void) { // The easiest way to reboot into the bootloader is to trigger the watchdog timer. // We'll just enable the WDT and then deliberately hang; which should cause an immediate reset. REG_WDT_CTRL |= WDT_CTRL_ENABLE; while(1); }
Report a bug