Giter Site home page Giter Site logo

darksector / avr Goto Github PK

View Code? Open in Web Editor NEW
70.0 9.0 60.0 562 KB

Some AVR code that I wrote for my ATmega32 based board. Code is in Assembly and C.

Assembly 35.09% C 0.10% C++ 48.28% Makefile 0.11% Pascal 16.40% Objective-C 0.01%
avr avr-gcc atmel-studio avr-studio avr-assembly atmel assembly simulavr

avr's Introduction

AVR

Some AVR code that I wrote for my ATMEL ATMega32 based board. Code is in Assembly and C.

Include files

The Assembly folder contains include folder that has the .inc files for all supported AVRs by the AVR assembler. They can be found in any release of AVR Studio. This one was taken from AVR Studio 5.

C Templates

Windows

Just use Atmel Studio. That's good enough

Linux

Sorry, nothing for that yet

Mac OS X

You should be using X-AVR. Simply follow these instructions and get it working. It's worth it.

Assembler setup

Mac OS X Lion 10.7.3+

Install Mac Homebrew or Macports. I prefer Homebrew, it's much cleaner.

$ brew install avra
$ brew install avr-gcc avrdude avr-libc libusb

Windows XP+

If you're an open source maniac and do things from ground up then you can download the AVR Assembler from Sourceforge

If you're not mental about it, you can just download ATMEL Studio and get things done.

NOTE: for AVR Studio you need to remove the .INCLUDE line, it automatically does that inclusion for you.

Linux

If you have a Debian based linux box you can just download the package from aptitude

$ sudo aptitude install avra avr-libc avr-gcc avrdude

Otherwise you can build it. You need to grab the source and build it yourself. It's not that hard.

Assembler tutorial

I haven't got around to writing my own tutorials yet, but here's a guide that can help you with that. It's by ATMEL. You can find it here

Simulator

It's good to have a simulator to learn what is actually going to happen when your code is executed. So for that, we have certain tools.

Mac OS X 10.6+

MacSimAVR this is an alpha release and will be paid soon.

SimulAVR you can find more about this here

Windows XP+

AVR Studio all the way. That's why I use Windows, for controller programming and games. Otherwise Linux has everything I will ever need.

Linux

You need to find Simulavr using your package manager and install it. It's command line as far as I remember.

avr's People

Contributors

darksector avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

avr's Issues

Assembly supporting files .inc is not compatible with GNU assembler

Using the avr-as will generate a list of errors that look like the following,

m328Pdef.inc:963: Error: expected comma after "SPIaddr"
m328Pdef.inc:964: Error: expected comma after "URXCaddr"
m328Pdef.inc:965: Error: expected comma after "UDREaddr"

Do you have a version of these .inc files for the gnu assembler?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.