summaryrefslogtreecommitdiff
path: root/tinyusb/hal
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-02-26 17:28:05 +0700
committerhathach <[email protected]>2013-02-26 17:28:05 +0700
commit49da21086004bd666564c5bd1bd2a0bb7938205d (patch)
treecb57d60704f8cb41b7450108ea12b3ec7cabcd7a /tinyusb/hal
parentac744b0401b93bade7d71e38db9f911c9d213fde (diff)
add osal subtask support
add usbh_control_xfer_subtask as xfer and wait fix potential error when update device info & open control pipe for new address fix build error with hal_****.c add STATIC_ASSSERT to perform compile time checking with sizeof later update osal_queue_receive and osal_semaphore_wait for osal_none to support subtask
Diffstat (limited to 'tinyusb/hal')
-rw-r--r--tinyusb/hal/hal_lpc11uxx.c1
-rw-r--r--tinyusb/hal/hal_lpc13uxx.c1
-rw-r--r--tinyusb/hal/hal_lpc43xx.c3
-rw-r--r--tinyusb/hal/hal_lpc43xx.h1
4 files changed, 5 insertions, 1 deletions
diff --git a/tinyusb/hal/hal_lpc11uxx.c b/tinyusb/hal/hal_lpc11uxx.c
index 748db46d4..29608e408 100644
--- a/tinyusb/hal/hal_lpc11uxx.c
+++ b/tinyusb/hal/hal_lpc11uxx.c
@@ -36,6 +36,7 @@
*/
#include "common/common.h"
+#include "hal.h"
#if MCU == MCU_LPC11UXX
diff --git a/tinyusb/hal/hal_lpc13uxx.c b/tinyusb/hal/hal_lpc13uxx.c
index 0c76d1ddd..4379bb86d 100644
--- a/tinyusb/hal/hal_lpc13uxx.c
+++ b/tinyusb/hal/hal_lpc13uxx.c
@@ -36,6 +36,7 @@
*/
#include "common/common.h"
+#include "hal.h"
#if MCU == MCU_LPC13UXX
diff --git a/tinyusb/hal/hal_lpc43xx.c b/tinyusb/hal/hal_lpc43xx.c
index 9734c234c..f7280041e 100644
--- a/tinyusb/hal/hal_lpc43xx.c
+++ b/tinyusb/hal/hal_lpc43xx.c
@@ -36,9 +36,12 @@
*/
#include "common/common.h"
+#include "hal.h"
#if MCU == MCU_LPC43XX
+#include "lpc43xx_cgu.h"
+
tusb_error_t hal_init()
{
/* Set up USB0 clock */
diff --git a/tinyusb/hal/hal_lpc43xx.h b/tinyusb/hal/hal_lpc43xx.h
index f1aa82ef7..63da8a37c 100644
--- a/tinyusb/hal/hal_lpc43xx.h
+++ b/tinyusb/hal/hal_lpc43xx.h
@@ -52,7 +52,6 @@
#define _TUSB_HAL_LPC43XX_H_
#include "LPC43xx.h"
-//#include "lpc43xx_cgu.h"
#ifdef __cplusplus
extern "C" {