nrf5/drivers/pwm: Updating soft PWM driver to only be included if SOFT_PWM config is set.
This commit is contained in:
parent
a4513f0159
commit
8d06dd3281
@ -24,6 +24,8 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if MICROPY_PY_MACHINE_SOFT_PWM
|
||||||
|
|
||||||
#include "stddef.h"
|
#include "stddef.h"
|
||||||
#include "py/runtime.h"
|
#include "py/runtime.h"
|
||||||
#include "py/gc.h"
|
#include "py/gc.h"
|
||||||
@ -247,3 +249,5 @@ void pwm_release(int32_t pin) {
|
|||||||
((pwm_events *)ev)->events[i].pin = 31;
|
((pwm_events *)ev)->events[i].pin = 31;
|
||||||
hal_gpio_pin_clear(0, pin);
|
hal_gpio_pin_clear(0, pin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // MICROPY_PY_MACHINE_SOFT_PWM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user