PWM driver working now, will continue testing

This commit is contained in:
jmacintyre 2016-07-25 15:53:28 -05:00
parent f5ea811c97
commit 550144fe32
3 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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");