mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/samd21-arduino-bootloader: add support for UF2 bootloader
This commit is contained in:
parent
7032984a81
commit
59f3c1b48b
@ -25,9 +25,19 @@
|
||||
|
||||
#include "usb_board_reset.h"
|
||||
|
||||
#ifdef HMCRAMC0_ADDR
|
||||
#define DBL_TAP_PTR ((volatile uint32_t *)(HMCRAMC0_ADDR + HMCRAMC0_SIZE - 4))
|
||||
#else
|
||||
#define DBL_TAP_PTR ((volatile uint32_t *)(HSRAM_ADDR + HSRAM_SIZE - 4))
|
||||
#endif
|
||||
|
||||
#ifdef BOOTLOADER_UF2
|
||||
#define SAMD21_DOUBLE_TAP_ADDR DBL_TAP_PTR
|
||||
#define SAMD21_DOUBLE_TAP_MAGIC_NUMBER (0xF01669EFUL)
|
||||
#else
|
||||
#define SAMD21_DOUBLE_TAP_ADDR (0x20007FFCUL)
|
||||
#define SAMD21_DOUBLE_TAP_MAGIC_NUMBER (0x07738135UL)
|
||||
#endif
|
||||
|
||||
void usb_board_reset_in_bootloader(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user