Hello,
i need a timer to count in us not ms for the cc2540.
How can i realize that ?
I know the source code but i see no way to change that.
Thank you.
Ok, in buzzer.c i found what i need to create a pwm Signal.
But, isn't there a problem with osal, because it uses the timers too ? Because if i use a timer, osal doesn't know it ?
Have you tried using the Alt functions of timer 3? see table 7-1 Peripheral I/O Pin Mapping, which is as you indicated it is currently being used by Buzzer. I think OSAL is using other timers.
You can also route the internal/external 32khz clock to p0.0 or p0.1. (I have not done that but did read about it in manual).
both references are from swru191c - CC254x User's Guide.pdf
good luck
Will there be no crash because i use 2 timers in osal ? (if i use timer 3)
OSAL only uses the MAC Timer (Timer2) and SleepTimer, you should be able to use Timer1,3 & 4 with no problems unless another hardware library is also using them