summaryrefslogtreecommitdiff
path: root/tinyusb/hal
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-01-18 11:49:51 +0700
committerhathach <[email protected]>2013-01-18 11:49:51 +0700
commit25f6cee73ba1a8a1f75456a352bcb864fcad92b7 (patch)
treed09b67b57b55c9c35ff6ef9822f35d215b347c16 /tinyusb/hal
parentc16632da0bf8d042388018c667cfbc176ed56436 (diff)
add DEVICE_ROM_DRIVER_ADDR macro in hal to point to rom driver add
add TUSB_ATTR_RAM_SECTION in tinyusb_config.h to abtract usb ram placement to application remove power_api.h (mcu dependency)
Diffstat (limited to 'tinyusb/hal')
-rw-r--r--tinyusb/hal/hal_lpc11uxx.h3
-rw-r--r--tinyusb/hal/hal_lpc13uxx.h1
-rw-r--r--tinyusb/hal/hal_lpc43xx.h7
3 files changed, 7 insertions, 4 deletions
diff --git a/tinyusb/hal/hal_lpc11uxx.h b/tinyusb/hal/hal_lpc11uxx.h
index 3d44d8742..35d600e25 100644
--- a/tinyusb/hal/hal_lpc11uxx.h
+++ b/tinyusb/hal/hal_lpc11uxx.h
@@ -55,6 +55,9 @@
#define DEVICE_ROMDRIVER
#define DEVICE_ROM_REG_BASE LPC_USB_BASE
+#define DEVICE_ROM_DRIVER_ADDR 0x1FFF1FF8
+
+
#ifdef __cplusplus
extern "C" {
diff --git a/tinyusb/hal/hal_lpc13uxx.h b/tinyusb/hal/hal_lpc13uxx.h
index b24d774b6..78e71c9a1 100644
--- a/tinyusb/hal/hal_lpc13uxx.h
+++ b/tinyusb/hal/hal_lpc13uxx.h
@@ -55,6 +55,7 @@
#define DEVICE_ROMDRIVER
#define DEVICE_ROM_REG_BASE LPC_USB_BASE
+#define DEVICE_ROM_DRIVER_ADDR 0x1FFF1FF8
#ifdef __cplusplus
extern "C" {
diff --git a/tinyusb/hal/hal_lpc43xx.h b/tinyusb/hal/hal_lpc43xx.h
index 6fba59dfb..d2be81906 100644
--- a/tinyusb/hal/hal_lpc43xx.h
+++ b/tinyusb/hal/hal_lpc43xx.h
@@ -60,17 +60,16 @@
#define DEVICE_ROMDRIVER
#define DEVICE_ROM_REG_BASE LPC_USB0_BASE // TODO USB1
+#define DEVICE_ROM_DRIVER_ADDR 0x1040011C
static inline void hal_interrupt_enable()
{
- // TODO support multiple controller later
- NVIC_EnableIRQ(USB0_IRQn);
+ NVIC_EnableIRQ(USB0_IRQn); // TODO USB1
}
static inline void hal_interrupt_disable()
{
- // TODO support multiple controller later
- NVIC_DisableIRQ(USB0_IRQn);
+ NVIC_DisableIRQ(USB0_IRQn); // TODO USB1
}
#ifdef __cplusplus