Skip to content
Snippets Groups Projects
Commit 9e63671e authored by Semjon Kerner's avatar Semjon Kerner
Browse files

cpu/nrf51: fix formatting uint to PRIu32

parent ba6d386c
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
#include <inttypes.h>
#include "periph/gpio.h" #include "periph/gpio.h"
#include "periph/pwm.h" #include "periph/pwm.h"
...@@ -113,7 +114,7 @@ uint32_t pwm_init(pwm_t dev, pwm_mode_t mode, uint32_t freq, uint16_t res) ...@@ -113,7 +114,7 @@ uint32_t pwm_init(pwm_t dev, pwm_mode_t mode, uint32_t freq, uint16_t res)
/* start pwm with value '0' */ /* start pwm with value '0' */
pwm_set(dev, 0, 0); pwm_set(dev, 0, 0);
DEBUG("Timer frequency is set to %ld\n", timer_freq); DEBUG("Timer frequency is set to %" PRIu32 "\n", timer_freq);
return (uint32_t)(timer_freq / res); return (uint32_t)(timer_freq / res);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment