hathach
a25da9d3ee
house keeping
...
add some more logic for enum task
2013-02-01 14:21:22 +07:00
hathach
7fc3e4f8fe
house keeping
2013-02-01 12:46:17 +07:00
hathach
c24d461d19
add timeout to queue_receive and update test code for it
2013-02-01 12:39:39 +07:00
hathach
aab92b40d2
change osal_timeout_t to uint32_t
...
implement osal_tick_get & osal_tick_tock for osal_none
implement timeout for osal_semaphore_wait
2013-02-01 12:25:02 +07:00
hathach
9e3785e7e1
add std=gnu99 for test build
...
add hcd_init to usbh_init and update test code
add TUSB_CFG_OS_TICK_PER_SECOND define for TUSB_OS_NONE
change osal_semaphore_wait and osal_queue_receive API to have timeout effectively
2013-02-01 10:33:43 +07:00
hathach
1b963f6a71
change cmock ignore to args only
...
implementing usbh_host.c
2013-01-31 13:11:50 +07:00
hathach
bef17fb67f
add version macros
2013-01-31 11:47:07 +07:00
hathach
eca87e5ee5
add ASSERT_BIN8 and its test code
...
add some common api for task in osal.h for mocking
2013-01-31 11:05:33 +07:00
hathach
658b2b970c
change semaphore to volatile uint8_t
...
add osal_queue_receive code and its test
*NOTE*
- consideration for semaphore & queue with hal_interrupt_disable/hal_interrupt_enable as safe guard
2013-01-30 23:29:27 +07:00
hathach
c1bf187dad
add osal queue service & its test code
...
- create, send
2013-01-30 17:53:37 +07:00
hathach
9c9fa182d4
fix mocking osal api using ifdef
...
start to add task_create macro API for osal_none
2013-01-30 12:55:44 +07:00
hathach
07048b943e
add primitive_types.h for portable with uint8,16,32_t, and bool
...
add osal_common.h to ease the complaint of MISRA 19.1
implement OSAL_NONE Task loop, semaphore wait/post and its test code
2013-01-30 11:35:37 +07:00
hathach
6db8af2023
update usbh_init and test
2013-01-29 11:06:30 +07:00
hathach
06f923c7bb
add usbh_device_info_t to return device status
...
add usbh_init and test code
replace usbh_device_is_plugged in hid_host and test_hid_host with usbh_device_info_t
2013-01-27 17:57:35 +07:00
hathach
36dbd52870
house keeping
2013-01-27 16:28:49 +07:00
hathach
b57e6e1121
configure unity a bit
2013-01-27 16:26:25 +07:00
hathach
9a1bda1633
house keeping
2013-01-27 16:19:18 +07:00
hathach
535f330026
update license year from 2012 to 2013
2013-01-27 13:50:40 +07:00
hathach
f613c32422
add STATIC for local variables
2013-01-27 13:16:30 +07:00
hathach
a22cfb2dee
remove violation MISRA 6.3 on errors
2013-01-27 12:38:06 +07:00
hathach
5feb1c90b4
add class_hid_keyboard_init and test code
...
add define _TINY_USB_SOURCE_FILE_ to hide internal API from application
2013-01-27 12:18:01 +07:00
hathach
d286c95765
add check device API for stack usage
...
bool usbh_device_is_plugged(tusb_handle_device_t const device_hdl);
2013-01-26 02:25:56 +07:00
hathach
7edda37518
add more test code for keyboard hid application API
...
refractor, restructure, rename several thing regarding host, keyboard etc ...
2013-01-26 01:37:15 +07:00
hathach
fdc9a82e8c
change configure handle to device handle
...
change test case accordingly
2013-01-23 15:01:17 +07:00
hathach
3015776078
Merge branch 'master' of github.com:hathach/tinyusb
2013-01-22 18:26:51 +07:00
hathach
b5207ff146
use unsigned char instead of char for error string
...
use #if 0 instead of // for remove code
2013-01-22 18:25:26 +07:00
hathach
b81561b436
use unsigned char instead of char for error string
...
use #if 0 instead of // for remove code
2013-01-22 18:19:05 +07:00
hathach
3ffda2033a
clear 19.1
2013-01-22 18:09:58 +07:00
hathach
38ce3f7534
start to support
...
- usbd host
- osal
some global define
#define TUSB_CFG_HOST_CONTROLLER_NUM
#define TUSB_CFG_HOST_DEVICE_MAX
#define TUSB_CFG_CONFIGURATION_MAX
rename & refractor HID type structure & enum
use CException to test asssertion library
add test for hid_host_keyboard with usbd configure get & osal queue get stubs
update test for assertion library
refractor ASSERT_STATUS in assertion library
update tusb_error_t values
rename usb basic type & enum in tusb_types.h and std_descriptors.h
2013-01-22 17:41:06 +07:00
hathach
cfe7a3d23b
change error type to lower case for more consistency
...
change Error Enum to TUSB prefix for more consistency
start to add check for OS configure
2013-01-19 00:57:58 +07:00
hathach
d8c8b9e38a
add ASSERT POINTER support
...
add hid host and separate hid host & device
update host project setting with EA4357 board
add para checking test for hid host
2013-01-18 14:39:42 +07:00
hathach
7976e2fd55
prepare test project for 43xx host test
2013-01-18 12:41:30 +07:00
hathach
e438a7ca09
house keeping
2013-01-18 12:29:54 +07:00
hathach
25f6cee73b
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)
2013-01-18 11:49:51 +07:00
hathach
c16632da0b
add UART support for ea4357 (tested)
2013-01-17 14:40:46 +07:00
hathach
480ddb4fec
start to add bsp and build configuration for embedded artist 4357
2013-01-17 11:03:43 +07:00
hathach
10009cba99
add initial support for output using ITM via SWO (not tested though)
2013-01-17 02:04:47 +07:00
hathach
aae51e985f
refractor board and start to add support for SWO retarget
2013-01-17 01:09:58 +07:00
hathach
53739ccd28
rename some fifo functions to be more consistent
2013-01-16 22:37:10 +07:00
hathach
095129887e
delete mcu folders as it duplicate hal folders
2013-01-16 22:23:17 +07:00
hathach
8155fd38a5
added some tests for fifo.c
2013-01-16 13:25:02 +07:00
hathach
c004cd4387
add uart for lpc11uxx and retarget successfully
2013-01-16 12:43:17 +07:00
hathach
54a7668177
add test_fifo.c file template, add its test code soon
2013-01-15 15:22:48 +07:00
hathach
0cec7910a0
update project setting to have most warning option enable with simple switch on/off (off for faster compiling time)
2013-01-15 14:41:19 +07:00
hathach
0c1d4f705b
add binary const & its test code
2013-01-14 14:36:13 +07:00
hathach
3d8babcb14
refractor to remove duplicate code between ASSERT_HEX and ASSERT_INT
...
use static inline min_of and max_of instead of macro
2013-01-14 00:41:23 +07:00
hathach
f991475183
add assert_hex & assert_hex_within
2013-01-13 20:39:01 +07:00
hathach
b7b9531b9b
done with ASSERT_INT_WITHIN
2013-01-13 20:26:51 +07:00
hathach
beb20b975b
add ASSERT_INT_WITHIN and its test code
2013-01-13 20:09:51 +07:00
hathach
1deac98969
add ASSERT_INT, ASSERT_INT_EQUAL and test code for it
2013-01-13 20:00:01 +07:00