add more test code for keyboard hid application API

refractor, restructure, rename several thing regarding host, keyboard etc ...
This commit is contained in:
hathach
2013-01-26 01:37:15 +07:00
parent fdc9a82e8c
commit 7edda37518
18 changed files with 336 additions and 95 deletions

View File

@@ -60,6 +60,17 @@
//--------------------------------------------------------------------+
// QUEUE API
//--------------------------------------------------------------------+
typedef struct{
uint8_t *buf ; ///< buffer pointer
uint16_t size ; ///< buffer size
volatile uint16_t len ; ///< bytes in fifo
volatile uint16_t wr_ptr ; ///< write pointer
volatile uint16_t rd_ptr ; ///< read pointer
} osal_queue_t;
#define OSAL_DEF_QUEUE(name, size)\
osal_queue_t name;\
uint8_t buffer_##name[size]
#ifdef __cplusplus
}