50 Commits

Author SHA1 Message Date
hathach
958512a5bd clean up more warnings 2014-03-13 18:43:52 +07:00
hathach
c92bdbac74 update lpc11u cmsis to 3.20 2014-03-12 22:30:02 +07:00
hathach
97f95c61f6 update CMSIS core for lpc176x 2014-03-12 18:39:17 +07:00
hathach
4571bf17d4 all host os none configure can be build now 2014-03-12 18:15:47 +07:00
hathach
a2dcade88f ngx works ok 2014-03-12 18:05:36 +07:00
hathach
204e057dce host os none for LPCxpresso1769 & EA4357 works 2014-03-12 17:57:20 +07:00
hathach
14e48bd989 fixing build error 2014-03-12 17:45:17 +07:00
hathach
ad72db5aea change IAR TUSB_CFG_ATTR_USBRAM to _Pragma("location=\".ahb_sram1\"") instead of @ .ahb_sram1 so that we can place it before the variable for a cleaner code
change pipe xfer API buffer from void* to uint8_t*
change FIFO_DEF to have a separated buffer to be compatible with IAR\
refractor IAR data alignment pragma
2014-03-10 13:13:13 +07:00
hathach
9fce2e9c18 keil host 17xx work, but os_none has problem with copy command in msc example 2014-03-06 14:56:06 +07:00
hathach
dcc58a7afc refractor app_os_prio.h 2014-03-06 11:37:37 +07:00
hathach
c16ea6253a remove lwipopts.h in freertos project 2014-03-05 16:10:48 +07:00
hathach
e6d7c5fcee remove lwip code in main.c & boardGetMACaddr (board.c)
NOTE: previous commit also removed some lwip's configure in board_ea4357

fix NGX4330 led blinking
2014-03-04 22:46:42 +07:00
hathach
93a60641ea fix issue with SVC_Handler SVCall_Handler name between keil & xpresso start up file. Host freertos works with lpc17xx 2014-03-04 14:15:10 +07:00
hathach
22a84f744d able to build freeRTOS with lpc175x_6x 2014-03-03 16:25:34 +07:00
hathach
5f8f046eaa refractor remove tusbh_msc_is_failed
increase usbh enum task from 150 to 200 due to stack overflow when mounting msc device
added task for msc host freeRTOS with stack = 300 (still cannot execute copy command)
2014-02-28 18:42:33 +07:00
hathach
da6b2fbef8 EHCI: immediately reset port when device connected. This proves to help prevent duplication connection event (also with OHCI)
increase delay after reset to 100 ms (NXP's EHCI does not work with 50ms)

--> fix all duplication connection with OHCI & EHCI
2014-02-28 17:08:47 +07:00
hathach
a1978e20fe merge common define in osal/osal_cmsis_rtx.h & osal/osal_freeRTOS.h 2014-02-28 15:50:04 +07:00
hathach
4b6c6929cb fix the duplicated plug connection status change with lpc17xx by using immediate reset on isr. However Khanh's G5 mouse is not enumerated !!
remove TUSB_CFG_CONFIGURATION_MAX from config file
fix some warning
2014-02-20 16:06:31 +07:00
hathach
533c8d2eed use hcd_pipe_is_busy instead of hcd_pipe_is_idle
remove hcd_pipe_is_idle
2014-02-20 10:41:31 +07:00
hathach
bbe26facb3 some code clean up
NOTE: host on ea4357 does not work anymore
2014-02-19 15:29:29 +07:00
hathach
275e834bbe add device_os_none keil project for all boards 2013-12-27 13:40:59 +07:00
hathach
b35d2c8f43 add lpc17xx build config for host demo 2013-12-11 12:13:22 +07:00
hathach
a5ba283557 change MCU to TUSB_CFG_MCU 2013-11-25 12:48:27 +07:00
hathach
83d9ececfb msc add support
- SCSI_CMD_MODE_SELECT_6
- SCSI_CMD_MODE_SENSE_6
- SCSI_CMD_PREVENT_ALLOW_MEDIUM_REMOVAL

fix msc device bug with no data unsupported command
complete msc device demo with ram disk of 8KB
2013-11-05 13:02:15 +07:00
hathach
357813f171 implementing sw device stack 2013-10-29 11:27:25 +07:00
hathach
d925026089 make device keyboard buildable & runnable with ea4357 2013-10-27 21:33:06 +07:00
hathach
318a058d3c static assert to check OSAL_QUEUE_DEF's queue_depth parameter < 256
enable HOST_HCD_XFER_INTERRUPT by default (previously only enabled with HID), as it is widely used
implement tusbh_cdc_is_busy
add compilation switch in usbh enumeration for hub
rewrite CDC serial application to address usb-serial race condition
2013-10-27 19:34:36 +07:00
hathach
cf65f859be working on fatfs integration
fix retarget input for lpcxpresso
2013-09-25 11:23:53 +07:00
hathach
61c591b9ac clean up warnings 2013-09-18 23:34:03 +07:00
hathach
9d87a1c62b temporarily comment out all the lwip related code 2013-09-18 21:08:48 +07:00
hathach
1cd2d5cf36 able to build with newly added lwip folder 2013-09-16 16:38:46 +07:00
hathach
dc6f6e3b3e rename lpc43 cmsis folder, preparing to upgrade cmsis from v2.10 to 3.01 2013-09-12 13:58:33 +07:00
hathach
09dd83c05b add set msg & get set cmplt for OID_GEN_CURRENT_PACKET_FILTER (default = 0 reject all) to
○ NDIS_PACKET_TYPE_DIRECTED
○ NDIS_PACKET_TYPE_MULTICAST
○ NDIS_PACKET_TYPE_BROADCAST
2013-09-11 15:03:37 +07:00
hathach
25a22e169b try to add lpc4357usb board 2013-09-08 00:01:20 +07:00
hathach
9d50b0fa6a update docs 2013-07-04 16:08:33 +07:00
hathach
ea2e63a332 remove app_os_prio.h in os_none configure
remove instance_num in hidh API
temporarily pause device stack developement
should fix travis-ci build error
2013-06-26 18:00:05 +07:00
hathach
9b7f24bef2 add files for hitex4350 but fail to get it power on USB0 host connector 2013-05-23 17:19:28 +07:00
hathach
132c3996ea move scu_pinmux(0x2, 5, MD_PLN | MD_EZI | MD_ZI, FUNC2) to hal/hal_lpc43xx.c
dual host run without problem with mcb4300
2013-05-23 14:56:11 +07:00
hathach
40503b913b abstract os priority for application tasks 2013-05-14 21:32:13 +07:00
hathach
834869ffcd filter out unused driver files in CMSIS lpc43xxx 2013-05-13 01:21:57 +07:00
hathach
446038fd36 move cmsis to bsp/lpc43xx to keep all in repos for travis-ci run
update setting for all project file respectively
2013-05-09 15:23:04 +07:00
hathach
4fa7f77ee2 adding keil mcb4300 support
- implement board_leds & board_uart routines
2013-05-06 15:06:08 +07:00
hathach
120db28a17 change format of file header & license spacing 2013-05-06 12:50:19 +07:00
hathach
c202bfe556 move ngx4330 to ngx folder in boards 2013-04-29 20:43:16 +07:00
hathach
c2b453c8a0 make NGX4330 build runs ok with host_freertos demo 2013-04-29 17:47:48 +07:00
hathach
d4a2600ecc - change OSAL_TASK_FUNCTION to have void* parameter (to be consistent with most popular RTOS)
- add new error enum TUSB_ERROR_OSAL_TASK_CREATE_FAILED
- move usbh_enumeration_task prototype to usbh.h
- change OSAL_SUBTASK_INVOKED_AND_WAIT behavior, will not "return" in calling task when subtask got error status.
calling task need to do that after the call
- osal_queue_receive signature from uint32_t* to void*

- implement osal_freertos.h for FreeRTOS 7.3 --> able to compile & build host_freertos
+ OSAL_TASK_FUNCTION
+ turn on FPU for M4 in both host_os_none & host_freertos (freertos requires FPU to be on to compile)
+ osal_task_create
+ OSAL_SUBTASK_INVOKED_AND_WAIT
+ SUBTASK_ASSERT
+ osal_semaphore_reset
+ osal_queue_flush
+ adding heap_1.c for memory management
2013-04-24 17:53:43 +07:00
hathach
799c709524 adding oem base board lib for ea4357 2013-04-22 11:22:56 +07:00
hathach
c20071c55c fix compiler error for USB1 to none in ehci.c
rename and moving bsp ea4357
2013-04-22 11:00:43 +07:00
hathach
cb4981dd2d adding host_freertos configure & build etc 2013-04-16 16:30:36 +08:00
hathach
528cadf3ff rename and "host" to "host_os_none" demo in prepare for creating host_freertos demo 2013-04-16 14:49:20 +08:00