KW40Z_Connectivity_Software_1.0.1 (KSDK_1.3.0); IAR 7.50
Connectivity Framework, Reference Manual, Rev. 1, 09/2015
Document Number: CONNFWKRM
3.4. Timers Manager
Contains references to only TimersManager.h
But framework contains also:
TimersManager.c, TimersManagerInternal.h, TMR_Adapter.c, TMR_Adapter.h
inside:
\KW40Z_Connectivity_Software_1.0.1\ConnSw\framework\TimersManager\Interface
\KW40Z_Connectivity_Software_1.0.1\ConnSw\framework\TimersManager\Source
What about TMR_Adapter.h defines
#ifndef gStackTimerInstance_c
#define gStackTimerInstance_c 0
#endif#ifndef gStackTimerChannel_c
#define gStackTimerChannel_c 0
#endif#ifndef gLptmrInstance_c
#define gLptmrInstance_c 0
#endif#ifndef gTmrRtcInstance_c
#define gTmrRtcInstance_c 0
#endif#ifndef gTmrPitInstance_c
#define gTmrPitInstance_c 0
#endif#define gStackTimer_IsrPrio_c (0x80)
There is a documentation how to set them ?
How to set gStackTimerInstance_c ?
How to set timers and TPM functionality not to cancel each other ?
Best Regards,
Lucian
Hi Lucian
I don't fully understand your question, they don't cancel each other, the connectivity software uses Timers Manager to enable APIs that facility Timers usage with TPM . So, if you require a timer you can Initialize/Allocate/Free/Enable etc timers. If you check the code, tpm is initialized in StackTimer_Init, and this fucntion is called in TMR_Init, which implement the timer module of the connectivity software.
So, if you want to uses another TPM module you use have to verify that is not the same that the framework is using (TPM0).
Hope this information helps you
Have a great day,
Jorge Alcala
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Jorge,
gStackTimerInstance_c and gStackTimerChannel_c should be called
gStackTimerTPMInstance_c and gStackTimerTPMChannel_c correct ?
First the code for the defines in TMR_Adapter.h does not contain any comments or explanations.
Second there is no mechanism on allocating TPM hardware resources,
in case of misusage - like PWM and TMR on same instance, channel.