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.
This commit is contained in:
parent
ad6a1d9136
commit
94efa02084
@ -131,6 +131,10 @@
|
|||||||
#define MICROPY_PY_MACHINE_HW_PWM (0)
|
#define MICROPY_PY_MACHINE_HW_PWM (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MICROPY_PY_MACHINE_SOFT_PWM
|
||||||
|
#define MICROPY_PY_MACHINE_SOFT_PWM (0)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef MICROPY_PY_MACHINE_TIMER
|
#ifndef MICROPY_PY_MACHINE_TIMER
|
||||||
#define MICROPY_PY_MACHINE_TIMER (0)
|
#define MICROPY_PY_MACHINE_TIMER (0)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user