Commit Graph

176 Commits

Author SHA1 Message Date
hathach bc9274591f clean up compiler 2018-03-02 19:00:03 +07:00
hathach 7ee801a209 rename hal.h to tusb_hal.h 2018-03-02 18:50:30 +07:00
hathach 8bb35e2604 add verify.h 2018-03-01 12:35:06 +07:00
hathach 30124b9b02 refactor osal queue API 2018-02-28 16:45:54 +07:00
hathach c961bb47fe update fifo 2018-02-28 15:23:41 +07:00
hathach 9b7cd608aa osal clean up
- task create, task def macros
2018-02-28 14:21:43 +07:00
hathach 62ae417add formatting 2015-05-01 18:45:22 +07:00
hathach c73907f831 formatting 2015-05-01 18:37:58 +07:00
hathach 9218d1e8bb replace ATTR_PACKED_STRUCT by simply ATTR_PACKED (drop IAR support)
remove "primitive_types.h" by simply include stdbool.h, stdint.h
2015-05-01 18:34:08 +07:00
hathach d00655f598 cdc device app rename CDCD_APP_BUFFER_SIZE to SERIAL_BUFFER_SIZE
cdc host app add SERIAL_BUFFER_SIZE for buffer constant, add cdc data receive if cb with TUSB_EVENT_XFER_ERROR
minor change to keyboard & mouse host app
add ASSERT_FAILED & ASSERT_FAILED_MSG
add cast to fix IAR build error with dcd_lpc43xx.c

FreeRTOS
- merge FreeRTOSConfig for m0, m3, m4
- re-implement application hook
- support portmacro.h for m0
2014-04-25 15:16:52 +07:00
hathach 06bb9ad7a7 move STRING & XSTRING & STATIC_ASSERT to compiler.h
disable test for a class of cdc host
temporarily disable test for test_osal_none.c
change include in some core files
remove osal.h from common.h
2014-04-17 22:57:11 +07:00
hathach ccc65e620a change default TUSB_CFG_DEBUG to 0
change meaning of TUSB_CFG_DEBUG
2014-04-17 10:33:59 +07:00
hathach 680784e9c1 update keil & iar device project to add lpcxpresso11u14 support 2014-03-25 21:43:48 +07:00
hathach 45aef4c04c more doxygen stuffs 2014-03-25 13:11:22 +07:00
hathach 15d0139bc5 doxygen documenting 2014-03-25 13:00:37 +07:00
hathach 68d96edc13 more doxygen works 2014-03-24 13:06:40 +07:00
hathach a8406060d1 doxygen documenting 2014-03-24 12:35:44 +07:00
hathach cf60e374aa doxygen clean up 2014-03-23 19:00:54 +07:00
hathach 1cdca167cd rename dcd_11u_13u_qhd_t::total_bytes to nbytes to prevent confusion
introduce scsi_data to mscd_interface_t to make tusbd_msc_scsi_cb buffer's address no longer to be required in USB ram section --> save usb ram for lpc11/13u
2014-03-22 22:50:08 +07:00
hathach b349121c09 some doxygen 2014-03-21 16:59:34 +07:00
hathach a8ea9e99d5 rename errors.c/h to tusb_errors.c/h 2014-03-18 18:54:44 +07:00
hathach d1d4ddd856 doxygen document 2014-03-16 22:20:33 +07:00
hathach 0757d2eb6c more warnings clean up 2014-03-14 15:11:57 +07:00
hathach 5f309413dc clean more warnings 2014-03-14 14:33:50 +07:00
hathach 5e2ed2534e clean up warning in lpcxpresso
remove -Wpacked  -Wpadded in gcc
2014-03-14 11:59:39 +07:00
hathach 368d09695f fix build error with lpcxpresso device os none 2014-03-12 22:22:00 +07:00
hathach 0f0d9d127b able to build lpc11u with IAR
clean ending warming with IAR
2014-03-12 14:43:58 +07:00
hathach 9ba209cda0 IAR line ending warning 2014-03-12 14:10:38 +07:00
hathach 8f03dea95a fix iar warning 2014-03-12 14:03:17 +07:00
hathach 3555abc378 cannot get IAR work with lpc1769 device demo 2014-03-10 15:02:11 +07:00
hathach b586fe632a change desc_str_table to array of pointer of uint8_t* to be compatible with IAR (lack of support for VLA initialization)
IAR device os none works with ea4357
2014-03-10 14:20:38 +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 2a866365e9 added support for IAR retarget but not yet succeeded. lpc17xx have problem connect with jlink 2014-03-04 16:31:44 +07:00
hathach 6f24dd50a0 change lpc17xx cmsis file & ohci to be able to build with IAR 2014-03-04 15:19:50 +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 a982a52ab3 refractor __n2be_16 2014-01-24 21:51:24 +07:00
hathach 275e834bbe add device_os_none keil project for all boards 2013-12-27 13:40:59 +07:00
hathach 51b6c6ff41 implement inline bit manipulation function 2013-12-12 12:21:38 +07:00
hathach e320659f8a add keyboard led mask
make usbd control request to subtask
add get/set report via control pipe to hidd
enforce soft DMA to control pipe for lpc11u (lpc17xx not yet)
temp add led_blinking_set_interval to change led blinking interval
refractor dcd_pipe_control_xfer to have interrupt on complete option
add get/set report support of moused_app and keyboardd_app, keyboard LED will make LED blink faster
2013-12-09 11:15:13 +07:00
hathach 1ad78f104e refractor hid device driver 2013-12-02 14:17:51 +07:00
hathach 8f70a6a886 change endian conversion to native to be & be to native
completely deferred xfer isr event to usbd task
complete read10, write10 sequence for large data transfer
2013-11-26 13:15:40 +07:00
hathach 83f1d660ce clean up
add some doxygen work
finalize device disconnection & suspend
- suspend & resume & remote wake up is not supported yet
2013-11-22 15:16:24 +07:00
hathach c461c72ac2 clean up 2013-11-21 13:20:46 +07:00
hathach 672057de5a IAD support 2013-11-15 17:20:40 +07:00
hathach 6e8440afe5 complete double buffering for queueing xfer for lpc11u/13u requried by msc device 2013-11-14 14:12:07 +07:00
hathach 7d84139bd4 fix potential issue with stall endpoints
NOTE: cannot able to STALL control OUT endpoints --> unsupported with data out request may got to an issue.
clean up configure, add max string descriptor configure as windows sometimes ask for string @ index 238 !!!
2013-11-13 14:00:39 +07:00
hathach f00a4b448d adding support for lpc13uxx 2013-11-11 12:48:21 +07:00
hathach 7ff0dbb64c add tusbd_cdc_is_busy
enhance cdc serial device demo
refractor fifo.c
2013-11-08 14:46:48 +07:00
hathach 15d3a418bd add windows driver for cdc
add simple echo cdc serial demo
add cdc device send/receive API
refractor descriptor
refractor cdc.h
add usbd driver function
- init
- bus_reset
2013-11-08 12:03:32 +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