Skip to content

Commit

Permalink
Add RP2040 PWM driver
Browse files Browse the repository at this point in the history
All individual RP2040 PWM channels are mapped onto distinct ChibiOS PWM
drivers, as this fits driver model which wants an independent timer per
driver.
  • Loading branch information
KarlK90 committed Jul 18, 2022
1 parent 2bfb681 commit bb67e5b
Show file tree
Hide file tree
Showing 8 changed files with 850 additions and 0 deletions.
9 changes: 9 additions & 0 deletions os/hal/ports/RP/LLD/PWMv1/driver.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ifeq ($(USE_SMART_BUILD),yes)
ifneq ($(findstring HAL_USE_PWM TRUE,$(HALCONF)),)
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/RP/LLD/PWMv1/hal_pwm_lld.c
endif
else
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/RP/LLD/PWMv1/hal_pwm_lld.c
endif

PLATFORMINC += $(CHIBIOS_CONTRIB)/os/hal/ports/RP/LLD/PWMv1
Loading

0 comments on commit bb67e5b

Please sign in to comment.