From e119357822aad2cf3198afab7f71c39edd49fefa Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Fri, 31 Mar 2017 14:25:17 +0100 Subject: [PATCH] [HAL] Ensure us_ticker and lp_ticker queue are correctly initialized. --- hal/mbed_lp_ticker_api.c | 2 +- hal/mbed_us_ticker_api.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hal/mbed_lp_ticker_api.c b/hal/mbed_lp_ticker_api.c index 838223b547..6a90b153f6 100644 --- a/hal/mbed_lp_ticker_api.c +++ b/hal/mbed_lp_ticker_api.c @@ -17,7 +17,7 @@ #if DEVICE_LOWPOWERTIMER -static ticker_event_queue_t events; +static ticker_event_queue_t events = { 0 }; static const ticker_interface_t lp_interface = { .init = lp_ticker_init, diff --git a/hal/mbed_us_ticker_api.c b/hal/mbed_us_ticker_api.c index 67ae6dba31..2f2cf2cb25 100644 --- a/hal/mbed_us_ticker_api.c +++ b/hal/mbed_us_ticker_api.c @@ -15,7 +15,7 @@ */ #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 = { .init = us_ticker_init, @@ -27,7 +27,7 @@ static const ticker_interface_t us_interface = { static const ticker_data_t us_data = { .interface = &us_interface, - .queue = &events, + .queue = &events }; const ticker_data_t* get_us_ticker_data(void)