summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authortmk2011-09-22 16:56:36 +0900
committertmk2011-09-22 16:56:36 +0900
commite65575d4a5f03a90adfa9850cb71a5d0448098cd (patch)
treeea5cea3c3985fb3056233f6b08fa76bf409c1f57 /command.c
parente67c988824f5ec0c965beb412f8ee5953dfd3c8c (diff)
Refactored bootloader jumping. Added USBaspLoader support.
Diffstat (limited to 'command.c')
-rw-r--r--command.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/command.c b/command.c
index 22f25e99c..e325a5d84 100644
--- a/command.c
+++ b/command.c
@@ -25,10 +25,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "timer.h"
#include "layer.h"
#include "matrix.h"
+#include "bootloader.h"
#include "command.h"
#ifdef HOST_PJRC
-# include "jump_bootloader.h"
# include "usb_keyboard.h"
# ifdef EXTRAKEY_ENABLE
# include "usb_extra.h"
@@ -78,13 +78,12 @@ static uint8_t command_common(void)
help();
break;
case KB_B:
-#ifdef HOST_PJRC
host_clear_keyboard_report();
host_send_keyboard_report();
- print("jump to bootloader...\n");
+ print("jump to bootloader... ");
_delay_ms(1000);
- jump_bootloader(); // not return
-#endif
+ bootloader_jump(); // not return
+ print("not supported.\n");
break;
case KB_D:
debug_enable = !debug_enable;