When I add a PWM or simple timer to a uart example I get the error in Keil.
Simple timer: I added app_simple_timer.c to the library, I added the #include "app_simple_timer.h" and I added the path to the Project Options.
My code is very simple:
Fullscreen
1
2
3
4
5
6
// Initialize timer
uint32_t err_code1 = app_simple_timer_init();
APP_ERROR_CHECK(err_code1);
// start timer for PWM
err_code = app_simple_timer_start(APP_SIMPLE_TIMER_MODE_REPEATED, PWM_timer_handler, 50000, NULL);
APP_ERROR_CHECK(err_code);
I have the same problem with the PWM_Library.
Thanks