nrf5/drivers/softpwm: Renaming pwm_init to softpwm_init to not collide on symbol name with pwm_init in nrf52 machine PWM object.
This commit is contained in:
parent
2584684e06
commit
234c9f3688
@ -79,7 +79,7 @@ static const pwm_events OFF_EVENTS = {
|
||||
#define active_events MP_STATE_PORT(pwm_active_events)
|
||||
#define pending_events MP_STATE_PORT(pwm_pending_events)
|
||||
|
||||
void pwm_init(void) {
|
||||
void softpwm_init(void) {
|
||||
active_events = &OFF_EVENTS;
|
||||
pending_events = NULL;
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
#ifndef __MICROPY_INCLUDED_LIB_PWM_H__
|
||||
#define __MICROPY_INCLUDED_LIB_PWM_H__
|
||||
|
||||
void pwm_init(void);
|
||||
void softpwm_init(void);
|
||||
void pwm_start(void);
|
||||
void pwm_stop(void);
|
||||
|
||||
|
@ -77,7 +77,7 @@ extern uint32_t ticks;
|
||||
STATIC uint32_t start_note(const char *note_str, size_t note_len, const pin_obj_t *pin);
|
||||
|
||||
void microbit_music_init0(void) {
|
||||
pwm_init();
|
||||
softpwm_init();
|
||||
ticker_init(microbit_music_tick);
|
||||
ticker_start();
|
||||
pwm_start();
|
||||
|
Loading…
x
Reference in New Issue
Block a user