[TUT][C][SOFT] Example Modular Project

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

There's a great explanation of how to break up a larger project into multiple files here...

 

https://www.avrfreaks.net/forum/...

 

Sometimes though, all you want is a 'fill-in-the-blanks' example. So attached here is my standard starting point for a new projects.

 

I've added in some random bits of code so that it compiles with no warnings or errors but it ought to be obvious how to adapt it for your own needs. Enjoy.

 

[I use CVAVR as my toolchain of choice so a couple of tweaks might be needed at the top of each file to pull in the right .h files for GCC]

Attachment(s): 

#1 Hardware Problem? https://www.avrfreaks.net/forum/...

#2 Hardware Problem? Read AVR042.

#3 All grounds are not created equal

#4 Have you proved your chip is running at xxMHz?

#5 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand."

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you. yes