zero warnings compiling host os none on keil

This commit is contained in:
hathach
2014-03-14 10:19:44 +07:00
parent 97cce2fa58
commit 214af7e988
4 changed files with 18 additions and 17 deletions

View File

@@ -47,11 +47,13 @@
tusb_error_t hal_init(void)
{
enum {
USBCLK_DEVCIE = 0x12, // AHB + Device
USBCLK_HOST = 0x19 // AHB + Host + OTG (!)
USBCLK_DEVCIE = 0x12, // AHB + Device
USBCLK_HOST = 0x19, // AHB + Host + OTG (!)
PCONP_PCUSB = BIT_(31)
};
LPC_SC->PCONP |= CLKPWR_PCONP_PCUSB; // enable USB Peripherals
LPC_SC->PCONP |= PCONP_PCUSB; // enable USB Peripherals
//------------- user manual 11.13 usb device controller initialization -------------//
PINSEL_ConfigPin( &(PINSEL_CFG_Type) { .Portnum = 0, .Pinnum = 29, .Funcnum = 1} ); // P0.29 as D+