diff options
| author | hathach <[email protected]> | 2013-12-09 11:15:13 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-12-09 11:15:13 +0700 |
| commit | e320659f8a4869a81e656285ed1263d8515aa7ee (patch) | |
| tree | bf355e111ebfc710bf3c30a31919e6f98542bf2b /tinyusb/common | |
| parent | 1ad78f104ed87957bd4cf7e15029ab3e4e3cb377 (diff) | |
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
Diffstat (limited to 'tinyusb/common')
| -rw-r--r-- | tinyusb/common/common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tinyusb/common/common.h b/tinyusb/common/common.h index bf0955924..2cd29417f 100644 --- a/tinyusb/common/common.h +++ b/tinyusb/common/common.h @@ -83,6 +83,8 @@ #include "std_descriptors.h" #include "std_request.h" +#include "osal/osal.h" + //--------------------------------------------------------------------+ // MACROS @@ -93,6 +95,7 @@ #define XSTRING_CONCAT_(a, b) STRING_CONCAT_(a, b) // expand then concat #define MAX_OF(a, b) ( (a) > (b) ? (a) : (b) ) +#define MIN_OF(a, b) ( (a) < (b) ? (a) : (b) ) #define U16_HIGH_U8(u16) ((uint8_t) (((u16) >> 8) & 0x00ff)) #define U16_LOW_U8(u16) ((uint8_t) ((u16) & 0x00ff)) |
