Skip to content

Enables PulseIO on STM32F7 #2806

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ports/stm/common-hal/pulseio/PWMOut.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "supervisor/shared/translate.h"

#include "shared-bindings/microcontroller/__init__.h"
#include "stm32f4xx_hal.h"
#include STM32_HAL_H
#include "common-hal/microcontroller/Pin.h"

#define ALL_CLOCKS 0xFFFF
Expand Down
2 changes: 1 addition & 1 deletion ports/stm/common-hal/pulseio/PWMOut.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#include "common-hal/microcontroller/Pin.h"

#include "stm32f4xx_hal.h"
#include STM32_HAL_H
#include "peripherals/periph.h"

#include "py/obj.h"
Expand Down
2 changes: 1 addition & 1 deletion ports/stm/common-hal/pulseio/PulseIn.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "shared-bindings/pulseio/PulseIn.h"
#include "tick.h"

#include "stm32f4xx_hal.h"
#include STM32_HAL_H

#define STM32_GPIO_PORT_SIZE 16

Expand Down
2 changes: 1 addition & 1 deletion ports/stm/common-hal/pulseio/PulseOut.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "shared-bindings/pulseio/PWMOut.h"
#include "supervisor/shared/translate.h"

#include "stm32f4xx_hal.h"
#include STM32_HAL_H
#include "common-hal/microcontroller/Pin.h"
#include "tick.h"

Expand Down
2 changes: 1 addition & 1 deletion ports/stm/mpconfigport.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ifeq ($(MCU_SERIES),F7)
# Not yet implemented common-hal modules:
CIRCUITPY_ANALOGIO = 0
CIRCUITPY_NEOPIXEL_WRITE = 0
CIRCUITPY_PULSEIO = 0
CIRCUITPY_PULSEIO = 1
CIRCUITPY_OS = 0
CIRCUITPY_NVM = 0
CIRCUITPY_AUDIOBUSIO = 0
Expand Down