[HAL] Ensure us_ticker and lp_ticker queue are correctly initialized.

pull/4094/head
Vincent Coubard 2017-03-31 14:25:17 +01:00
parent 1057720114
commit e119357822
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@
#if DEVICE_LOWPOWERTIMER #if DEVICE_LOWPOWERTIMER
static ticker_event_queue_t events; static ticker_event_queue_t events = { 0 };
static const ticker_interface_t lp_interface = { static const ticker_interface_t lp_interface = {
.init = lp_ticker_init, .init = lp_ticker_init,

View File

@ -15,7 +15,7 @@
*/ */
#include "hal/us_ticker_api.h" #include "hal/us_ticker_api.h"
static ticker_event_queue_t events; static ticker_event_queue_t events = { 0 };
static const ticker_interface_t us_interface = { static const ticker_interface_t us_interface = {
.init = us_ticker_init, .init = us_ticker_init,
@ -27,7 +27,7 @@ static const ticker_interface_t us_interface = {
static const ticker_data_t us_data = { static const ticker_data_t us_data = {
.interface = &us_interface, .interface = &us_interface,
.queue = &events, .queue = &events
}; };
const ticker_data_t* get_us_ticker_data(void) const ticker_data_t* get_us_ticker_data(void)