Author Topic: Implementing Peter Fleury's UART library  (Read 1430 times)

0 Members and 1 Guest are viewing this topic.

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17814
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Implementing Peter Fleury's UART library
« on: May 27, 2018, 08:44:56 pm »
So my knowledge of C is not the most robust but Peters library looks well documented. However I see that before I even give it a go there is a "makefile.uart".

OK before i try and  :-BROKE what do I do with this file? Everything else looks fine, a .c file a .h file and a sample program.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11248
  • Country: us
    • Personal site
Re: Implementing Peter Fleury's UART library
« Reply #1 on: May 27, 2018, 08:52:37 pm »
Typically you include that into your main Makefile. Or at least look at what "unusual" compiler options are passed in that makefile.

In reality it is probably just a part of a big compartmentalized build system, and you can just use the files in your project without even looking at this file.
Alex
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17814
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Implementing Peter Fleury's UART library
« Reply #2 on: May 27, 2018, 08:56:22 pm »
See attached. I use Atmel Studio so I'm not sure what to do with this if anything.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11248
  • Country: us
    • Personal site
Re: Implementing Peter Fleury's UART library
« Reply #3 on: May 27, 2018, 08:58:15 pm »
Don't do anything with is, just add files to your project. If the code does not compile and complains about some defines missing (like F_CPU), then just define them yourself in the AS project settings.
Alex
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17814
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Implementing Peter Fleury's UART library
« Reply #4 on: May 27, 2018, 09:00:31 pm »
OK thanks
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf