(btstack_hid.c) Move variables to top

This commit is contained in:
twinaphex 2015-11-16 04:00:59 +01:00
parent 5bdc91c814
commit 595646fea4

View File

@ -146,6 +146,15 @@ extern void btpad_packet_handler(uint8_t packet_type,
static bool btstack_tested;
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;
#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)
{
*ptr = (*ptr + 1) % 64;