From e20025b54d16deccbd6e86433f31d80f5a976fd4 Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 6 Feb 2013 12:03:01 +0700 Subject: refractor move test enum to its own file add assert with handler add task assert with error catcher --- tinyusb/class/hid_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tinyusb/class/hid_host.c') diff --git a/tinyusb/class/hid_host.c b/tinyusb/class/hid_host.c index eeed7cb0b..07abb7e6a 100644 --- a/tinyusb/class/hid_host.c +++ b/tinyusb/class/hid_host.c @@ -91,7 +91,7 @@ uint8_t tusbh_hid_keyboard_no_instances(tusb_handle_device_t const device_hdl) //--------------------------------------------------------------------+ void class_hid_keyboard_init(void) { - memset(&keyboard_info_pool, 0, sizeof(class_hid_keyboard_info_t)*TUSB_CFG_HOST_DEVICE_MAX); + memclr_(&keyboard_info_pool, sizeof(class_hid_keyboard_info_t)*TUSB_CFG_HOST_DEVICE_MAX); } tusb_error_t class_hid_keyboard_install(uint8_t const dev_addr, uint8_t const *descriptor) -- cgit v1.3.1