Skip to content

Commit 94efa02

Browse files
committed
nrf5: Adding new configuration called MICROPY_PY_MACHINE_SOFT_PWM to mpconfigport.h. This config will enable software defined PWM using timer instead of using dedicated PWM hardware. Aimed to be used in nrf51 targets.
1 parent ad6a1d9 commit 94efa02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nrf5/mpconfigport.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@
131131
#define MICROPY_PY_MACHINE_HW_PWM (0)
132132
#endif
133133

134+
#ifndef MICROPY_PY_MACHINE_SOFT_PWM
135+
#define MICROPY_PY_MACHINE_SOFT_PWM (0)
136+
#endif
137+
134138
#ifndef MICROPY_PY_MACHINE_TIMER
135139
#define MICROPY_PY_MACHINE_TIMER (0)
136140
#endif

0 commit comments

Comments
 (0)