summaryrefslogtreecommitdiff
path: root/tinyusb/tusb.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2012-12-02 11:07:59 +0700
committerhathach <[email protected]>2012-12-02 11:07:59 +0700
commitb36a85ad3625596ce57f1a9fc2ddde2ea98b33d8 (patch)
treed73d19e9d96075369ffdb3f20a6878fdde0d51d6 /tinyusb/tusb.c
parenta636d75fc6c8af025a5f5a6229bd02334f82e976 (diff)
add extern "C" for cpp
start to work on hal layer
Diffstat (limited to 'tinyusb/tusb.c')
-rw-r--r--tinyusb/tusb.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/tinyusb/tusb.c b/tinyusb/tusb.c
index 6a3ddf387..22add472e 100644
--- a/tinyusb/tusb.c
+++ b/tinyusb/tusb.c
@@ -37,22 +37,6 @@
#include "tusb.h"
-TUSB_Error_t hal_init()
-{
- // TODO usb abstract later
- /* Enable AHB clock to the USB block and USB RAM. */
- LPC_SYSCON->SYSAHBCLKCTRL |= ((0x1<<14) | (0x1<<27));
-
- /* Pull-down is needed, or internally, VBUS will be floating. This is to
- address the wrong status in VBUSDebouncing bit in CmdStatus register. */
- LPC_IOCON->PIO0_3 &= ~0x1F;
- LPC_IOCON->PIO0_3 |= (0x01<<0); /* Secondary function VBUS */
- LPC_IOCON->PIO0_6 &= ~0x07;
- LPC_IOCON->PIO0_6 |= (0x01<<0); /* Secondary function SoftConn */
-
- return tERROR_NONE;
-}
-
TUSB_Error_t tusb_init(void)
{
ASSERT_ERROR( hal_init() ) ; /* HARDWARE INIT */