Tool/software: Code Composer Studio
Hi,
I am setting up a timer on CC1350 using Drivers and Timer.h file.
When I use the same code as in the Timer.h example I get an error with Timer_Params_init function:
My code:
Timer_Handle handle; Timer_Params params; Timer_Params_init(¶ms); params.periodUnits = Timer_PERIOD_HZ; params.period = 1000; params.timerMode = Timer_CONTINUOUS_CALLBACK; params.timerCallback = someTimerCallbackFunction;
Error:
Header reference:
/*! * @brief Function to initialize the Timer_Params struct to its defaults. * * @param params A pointer to Timer_Params structure for * initialization. * * Defaults values are: * timerMode = Timer_ONESHOT_BLOCKING * periodUnit = Timer_PERIOD_COUNTS * timerCallback = NULL * period = (uint16_t) ~0 */ extern void Timer_Params_init(Timer_Params *params);
-------------------------------------------------------------------------------------------------
Why is this error happening when I´m passing the right argument (function takes pointer as an argument) ??
Thank you!
 
				 
		 
					 
                          
 
				 
				