/* ---------------------------------------------------------------------------- * key functions : device specific : code * ---------------------------------------------------------------------------- * Copyright (c) 2012 Ben Blazak * Released under The MIT License (MIT) (see "license.md") * Project located at * ------------------------------------------------------------------------- */ #include #include #include "../public.h" // ---------------------------------------------------------------------------- // descriptions // ---------------------------------------------------------------------------- /* * [name] * Jump to Bootloader * * [description] * For reflashing the controller */ void kbfun_jump_to_bootloader(void); // ---------------------------------------------------------------------------- #if MAKEFILE_BOARD == teensy-2-0 // ---------------------------------------------------------------------------- // from PJRC (slightly modified) // void kbfun_jump_to_bootloader(void) { // --- for all Teensy boards --- cli(); // disable watchdog, if enabled // disable all peripherals UDCON = 1; USBCON = (1<