- This topic has 2 replies, 3 voices, and was last updated 5 years, 8 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › Error in my PWM library
Hi I am creating a PWM library in c++ to use in my project. I have started working on it below is part of my code it is not complete yet. I have writing a bit by bit code and building it to find errors and I find some error. So I stopped. Even though I had defined right parameters it is giving error. It should preprocess first #if and assign TCC0A with 0x80. But it skipping #if, #elif and last #else is execuing. Please help me to correct given code.
IDE: Atmel Studio 7.0
MCU: ATmega328p
Code:
why are you writing PWM_H_ ?
it should be PWM_H only
if you are getting error that PWM_H_ file in not found then you should check first your library name if it is PWM.h make sure in the program it is same at the time of include.