(btstack_hid.c) Move variables to top
This commit is contained in:
parent
5bdc91c814
commit
595646fea4
|
@ -146,6 +146,15 @@ extern void btpad_packet_handler(uint8_t packet_type,
|
||||||
static bool btstack_tested;
|
static bool btstack_tested;
|
||||||
static bool btstack_loaded;
|
static bool btstack_loaded;
|
||||||
|
|
||||||
|
static bool inquiry_off;
|
||||||
|
static bool inquiry_running;
|
||||||
|
static struct btstack_hid_adapter g_connections[MAX_USERS];
|
||||||
|
|
||||||
|
struct btpad_queue_command commands[64];
|
||||||
|
static uint32_t insert_position;
|
||||||
|
static uint32_t read_position;
|
||||||
|
static uint32_t can_run;
|
||||||
|
|
||||||
static sthread_t *btstack_thread;
|
static sthread_t *btstack_thread;
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
@ -249,15 +258,6 @@ void btstack_set_poweron(bool on)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool inquiry_off;
|
|
||||||
static bool inquiry_running;
|
|
||||||
static struct btstack_hid_adapter g_connections[MAX_USERS];
|
|
||||||
|
|
||||||
struct btpad_queue_command commands[64];
|
|
||||||
static uint32_t insert_position;
|
|
||||||
static uint32_t read_position;
|
|
||||||
static uint32_t can_run;
|
|
||||||
|
|
||||||
static void btpad_increment_position(uint32_t *ptr)
|
static void btpad_increment_position(uint32_t *ptr)
|
||||||
{
|
{
|
||||||
*ptr = (*ptr + 1) % 64;
|
*ptr = (*ptr + 1) % 64;
|
||||||
|
|
Loading…
Reference in New Issue