mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			[HAL] Ensure us_ticker and lp_ticker queue are correctly initialized.
							parent
							
								
									1057720114
								
							
						
					
					
						commit
						e119357822
					
				| 
						 | 
				
			
			@ -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,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue