diff options
author | AJM <poslathian@poslathian.(none)> | 2010-04-22 23:27:09 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-05-20 22:09:15 -0400 |
commit | a86ec7c81d7ad2037e900899a0b32c5592cae7c0 (patch) | |
tree | 391e3abb0ce95ec6901399bdce628aadf8a0c339 /core/usb/usb_hardware.c | |
parent | a082defb795cc4495139c8b05de4fd48bd66dacd (diff) | |
download | librambutan-a86ec7c81d7ad2037e900899a0b32c5592cae7c0.tar.gz librambutan-a86ec7c81d7ad2037e900899a0b32c5592cae7c0.zip |
c++ ified all of the usb_core files, added the auto-reset feature to the virtual com port, got the descriptors in functional although not pretty order that can be fixed using the attribute packing
Diffstat (limited to 'core/usb/usb_hardware.c')
-rw-r--r-- | core/usb/usb_hardware.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/usb/usb_hardware.c b/core/usb/usb_hardware.c index 10918ca..2f37df6 100644 --- a/core/usb/usb_hardware.c +++ b/core/usb/usb_hardware.c @@ -29,7 +29,7 @@ * */ -#include "hardware.h" +#include "usb_hardware.h" void setPin(u32 bank, u8 pin) { u32 pinMask = 0x1 << (pin); @@ -56,9 +56,6 @@ void setupCLK (void) { SET_REG(RCC_CR,GET_REG(RCC_CR) | 0x00010001); while ((GET_REG(RCC_CR) & 0x00020000) == 0); /* for it to come on */ - /* enable flash prefetch buffer */ - SET_REG(FLASH_ACR, 0x00000012); - /* Configure PLL */ SET_REG(RCC_CFGR,GET_REG(RCC_CFGR) | 0x001D0400); /* pll=72Mhz,APB1=36Mhz,AHB=72Mhz */ SET_REG(RCC_CR,GET_REG(RCC_CR) | 0x01000000); /* enable the pll */ |