浏览代码

Fix build error and debug print PJRC stack #69 #68

led_matrix
tmk 10 年前
父节点
当前提交
48662ace8b
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 3
    0
      protocol/pjrc/main.c
  2. 1
    0
      protocol/pjrc/usb.c

+ 3
- 0
protocol/pjrc/main.c 查看文件

#include "matrix.h" #include "matrix.h"
#include "print.h" #include "print.h"
#include "debug.h" #include "debug.h"
#include "sendchar.h"
#include "util.h" #include "util.h"
#include "suspend.h" #include "suspend.h"
#include "host.h" #include "host.h"
usb_init(); usb_init();
while (!usb_configured()) /* wait */ ; while (!usb_configured()) /* wait */ ;


print_set_sendchar(sendchar);

keyboard_init(); keyboard_init();
host_set_driver(pjrc_driver()); host_set_driver(pjrc_driver());
#ifdef SLEEP_LED_ENABLE #ifdef SLEEP_LED_ENABLE

+ 1
- 0
protocol/pjrc/usb.c 查看文件

#include "sleep_led.h" #include "sleep_led.h"
#endif #endif
#include "suspend.h" #include "suspend.h"
#include "action_util.h"




/************************************************************************** /**************************************************************************