We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c1d95f commit a19a3d9Copy full SHA for a19a3d9
targets/TARGET_RASPBERRYPI/TARGET_RP2040/pwmout_api.c
@@ -43,6 +43,7 @@
43
#include "pinmap.h"
44
#include "hardware/pwm.h"
45
#include "hardware/clocks.h"
46
+#include "mbed_assert.h"
47
48
const uint count_top = 1000;
49
@@ -53,7 +54,7 @@ const uint count_top = 1000;
53
54
*/
55
void pwmout_init(pwmout_t *obj, PinName pin)
56
{
- MBED_ASSERT(obj);
57
+ MBED_ASSERT(obj != NULL);
58
59
/* Populate PWM object with default values. */
60
obj->slice = pwm_gpio_to_slice_num(pin);
@@ -75,7 +76,7 @@ void pwmout_init(pwmout_t *obj, PinName pin)
75
76
77
void pwmout_free(pwmout_t *obj)
78
79
80
pwm_set_enabled(obj->slice, false);
81
}
82
0 commit comments