changed bootloader back to using the minimal usb stack it came with because I have no idea how to get the bootloader code working with the full MLA HID USB stack
This commit is contained in:
@@ -24,33 +24,33 @@
|
||||
*/
|
||||
#pragma warning disable 1510
|
||||
|
||||
//#include "usb.h"
|
||||
//#include "padhal.h"
|
||||
//#include "dancepad.h"
|
||||
#include "usb.h"
|
||||
#include "padhal.h"
|
||||
#include "dancepad.h"
|
||||
#include "memory.h"
|
||||
|
||||
//#ifdef LINK_FOR_BOOTLOADER
|
||||
#ifdef LINK_FOR_BOOTLOADER
|
||||
// only define this if building fw to be used with the bootloader
|
||||
const unsigned int VersionWord __at(APP_FW_VERSION_ADDRESS) = 0x0100;
|
||||
//#endif
|
||||
const uint16_t VersionWord __at(0x2016) = 0x0100;
|
||||
#endif
|
||||
|
||||
void main(void)
|
||||
{
|
||||
// initialize sensor HAL & the dancepad driver
|
||||
/*PADHAL_Initialize();
|
||||
PADHAL_Initialize();
|
||||
DANCEPAD_Initialize();
|
||||
|
||||
// initialize the USB framework
|
||||
USBDeviceInit();
|
||||
USBDeviceAttach();*/
|
||||
USBDeviceAttach();
|
||||
|
||||
while(1)
|
||||
{
|
||||
// do nothing if: not connected to USB host, or the host put us in suspend state
|
||||
//if((USBGetDeviceState() < CONFIGURED_STATE) | USBIsDeviceSuspended())
|
||||
// continue;
|
||||
if((USBGetDeviceState() < CONFIGURED_STATE) | USBIsDeviceSuspended())
|
||||
continue;
|
||||
|
||||
// run application specific tasks
|
||||
//DANCEPAD_Tasks();
|
||||
DANCEPAD_Tasks();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,8 +80,8 @@
|
||||
//(ex: USBDeviceTasks()) must be called periodically by the application firmware
|
||||
//at a minimum rate as described in the inline code comments in usb_device.c.
|
||||
//------------------------------------------------------
|
||||
#define USB_POLLING
|
||||
//#define USB_INTERRUPT
|
||||
//#define USB_POLLING
|
||||
#define USB_INTERRUPT
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/* Parameter definitions are defined in usb_device.h */
|
||||
|
||||
Reference in New Issue
Block a user