From acc974c64b1e17e6807133fdc50de5bb34aedda5 Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 9 Feb 2011 00:03:58 +0900 Subject: added protocol stack: pjrc, vusb --- pjrc/jump_bootloader.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pjrc/jump_bootloader.c (limited to 'pjrc/jump_bootloader.c') diff --git a/pjrc/jump_bootloader.c b/pjrc/jump_bootloader.c new file mode 100644 index 0000000000..5710e052f5 --- /dev/null +++ b/pjrc/jump_bootloader.c @@ -0,0 +1,40 @@ +// this code from: +// http://www.pjrc.com/teensy/jump_to_bootloader.html +#include +#include +#include + +void jump_bootloader(void) { + cli(); + // disable watchdog, if enabled + // disable all peripherals + UDCON = 1; + USBCON = (1<