Forum Discussion
Altera_Forum
Honored Contributor
13 years agoThanks for your feedback, I think I'm starting to understand it now, I'll try this tomorrow when I have the DE2-115 board available.
I'm wondering how I can make use of the header (.h) and source file of altera_avalon_pwm_routines to use the following functions for a cleaner code: altera_avalon_pwm_init(); altera_avalon_pwm_enable(); altera_avalon_pwm_disable(); altera_avalon_pwm_change_duty_cycle(); I now have placed the header file under HAL/inc and the c file under HAL/src, in the main I included the header file: # include "altera_avalon_pwm_routines.h" But the header files includes "altera_avalon_pwm_regs.h" so I place it at the same place?