fix lpcxpresso1347 board_leds

temp change USBD_API to ROM_API
add lpc13xx device support
fix romdriver pointer
able to init rom driver
This commit is contained in:
hathach
2013-05-29 14:39:14 +07:00
parent 1e5bd82af2
commit dda0808ebb
17 changed files with 363 additions and 161 deletions

View File

@@ -56,6 +56,9 @@
#endif
#include "common/common.h"
#include "dcd_nxp_romdriver.h"
#define ROM_API ( * (*((USBD_API_T***) 0x1FFF1FF8)) ) // TODO remove rom API dependency
tusb_error_t dcd_init(void) ATTR_WARN_UNUSED_RESULT;
tusb_error_t dcd_controller_reset(uint8_t coreid) ATTR_WARN_UNUSED_RESULT;