PWM driver working now, will continue testing
This commit is contained in:
parent
f5ea811c97
commit
550144fe32
@ -137,6 +137,7 @@
|
|||||||
|
|
||||||
/* PWM Configuration */
|
/* PWM Configuration */
|
||||||
/* FTM0 Channels */
|
/* FTM0 Channels */
|
||||||
|
/* Channels can be modified using kinetis_k64pinmux.h */
|
||||||
|
|
||||||
#define GPIO_FTM0_CH0OUT PIN_FTM0_CH0_1
|
#define GPIO_FTM0_CH0OUT PIN_FTM0_CH0_1
|
||||||
#define GPIO_FTM0_CH1OUT PIN_FTM0_CH1_1
|
#define GPIO_FTM0_CH1OUT PIN_FTM0_CH1_1
|
||||||
|
@ -69,4 +69,8 @@ ifeq ($(CONFIG_USBMSC),y)
|
|||||||
CSRCS += k64_usbmsc.c
|
CSRCS += k64_usbmsc.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_PWM),y)
|
||||||
|
CSRCS += k64_pwm.c
|
||||||
|
endif
|
||||||
|
|
||||||
include $(TOPDIR)/configs/Board.mk
|
include $(TOPDIR)/configs/Board.mk
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_PWM
|
#ifdef CONFIG_PWM
|
||||||
|
|
||||||
extern struct pwm_lowerhalf_s *k64_pwminitialize(int timer);
|
extern struct pwm_lowerhalf_s *kinetis_pwminitialize(int timer);
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
@ -95,7 +95,7 @@ int board_pwm_setup(void)
|
|||||||
{
|
{
|
||||||
/* Call k64_pwminitialize() to get an instance of the PWM interface */
|
/* Call k64_pwminitialize() to get an instance of the PWM interface */
|
||||||
|
|
||||||
pwm = k64_pwminitialize(0);
|
pwm = kinetis_pwminitialize(0);
|
||||||
if (!pwm)
|
if (!pwm)
|
||||||
{
|
{
|
||||||
aerr("ERROR: Failed to get the K64 PWM lower half\n");
|
aerr("ERROR: Failed to get the K64 PWM lower half\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user