Browse Source

nrf/drivers/softpwm: Rename init function to softpwm_init0.

pull/3137/merge
Glenn Ruben Bakke 7 years ago
committed by Damien George
parent
commit
7c74b7da48
  1. 2
      ports/nrf/drivers/softpwm.c
  2. 2
      ports/nrf/drivers/softpwm.h

2
ports/nrf/drivers/softpwm.c

@ -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 softpwm_init(void) {
void softpwm_init0(void) {
active_events = &OFF_EVENTS;
pending_events = NULL;
}

2
ports/nrf/drivers/softpwm.h

@ -1,7 +1,7 @@
#ifndef __MICROPY_INCLUDED_LIB_PWM_H__
#define __MICROPY_INCLUDED_LIB_PWM_H__
void softpwm_init(void);
void softpwm_init0(void);
void pwm_start(void);
void pwm_stop(void);

Loading…
Cancel
Save