Skip to content

Commit 0cc438e

Browse files
committed
Fix pycubed pwm use
1 parent 1527a3c commit 0cc438e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

ports/atmel-samd/boards/pycubed/board.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include "shared-bindings/nvm/ByteArray.h"
3333
#include "common-hal/microcontroller/Pin.h"
3434
#include "hal/include/hal_gpio.h"
35-
#include "shared-bindings/pulseio/PWMOut.h"
35+
#include "shared-bindings/pwmio/PWMOut.h"
3636

3737
nvm_bytearray_obj_t bootcnt = {
3838
.base = {
@@ -44,9 +44,9 @@ nvm_bytearray_obj_t bootcnt = {
4444

4545

4646
void board_init(void) {
47-
pulseio_pwmout_obj_t pwm;
48-
common_hal_pulseio_pwmout_construct(&pwm, &pin_PA23, 4096, 2, false);
49-
common_hal_pulseio_pwmout_never_reset(&pwm);
47+
pwmio_pwmout_obj_t pwm;
48+
common_hal_pwmio_pwmout_construct(&pwm, &pin_PA23, 4096, 2, false);
49+
common_hal_pwmio_pwmout_never_reset(&pwm);
5050
}
5151

5252
bool board_requests_safe_mode(void) {

ports/atmel-samd/boards/pycubed_mram/board.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include "shared-bindings/nvm/ByteArray.h"
3333
#include "common-hal/microcontroller/Pin.h"
3434
#include "hal/include/hal_gpio.h"
35-
#include "shared-bindings/pulseio/PWMOut.h"
35+
#include "shared-bindings/pwmio/PWMOut.h"
3636

3737
nvm_bytearray_obj_t bootcnt = {
3838
.base = {
@@ -44,9 +44,9 @@ nvm_bytearray_obj_t bootcnt = {
4444

4545

4646
void board_init(void) {
47-
pulseio_pwmout_obj_t pwm;
48-
common_hal_pulseio_pwmout_construct(&pwm, &pin_PA23, 4096, 2, false);
49-
common_hal_pulseio_pwmout_never_reset(&pwm);
47+
pwmio_pwmout_obj_t pwm;
48+
common_hal_pwmio_pwmout_construct(&pwm, &pin_PA23, 4096, 2, false);
49+
common_hal_pwmio_pwmout_never_reset(&pwm);
5050
}
5151

5252
bool board_requests_safe_mode(void) {

0 commit comments

Comments
 (0)