Avr-gcc
Line 19: | Line 19: | ||
Simple makefile: | Simple makefile: | ||
− | <source lang=" | + | <source lang="make"> |
all: | all: | ||
avr-gcc avr.c -mmcu=atmega162 -o avr.elf -Wall | avr-gcc avr.c -mmcu=atmega162 -o avr.elf -Wall |
Revision as of 00:10, 25 March 2010
How to setup avr-gcc and get compiling for an Arduino!
$ yum install avr-gcc avr-libc avrdude
For ATMega168:
$ avrdude -c buspirate -P /dev/ttyUSB1 -x speed=3 -p m168
For ATMega328p:
$ avrdude -c buspirate -P /dev/ttyUSB1 -x speed=3 -p m328p
Terminal mode: -t
. Use command part
to see detailed part information.
To upload file: -U memtype:op:filename[:format]
Simple makefile:
GeSHi Error: GeSHi could not find the language make (using path /home/www/attie.co.uk/wiki/w/extensions/SyntaxHighlight_GeSHi/geshi/geshi/) (code 2)
You need to specify a language like this: <source lang="html4strict">...</source>
Supported languages for syntax highlighting:
abap, actionscript, actionscript3, ada, apache, applescript, apt_sources, asm, asp, autoit, bash, basic4gl, blitzbasic, bnf, boo, c, c_mac, caddcl, cadlisp, cfdg, cfm, cil, cobol, cpp, cpp-qt, csharp, css, d, delphi, diff, div, dos, dot, eiffel, fortran, freebasic, genero, gettext, glsl, gml, gnuplot, groovy, haskell, html4strict, idl, ini, inno, io, java, java5, javascript, kixtart, klonec, klonecpp, latex, lisp, lotusformulas, lotusscript, lua, m68k, matlab, mirc, mpasm, mxml, mysql, nsis, objc, ocaml, ocaml-brief, oobas, oracle8, pascal, per, perl, php, php-brief, plsql, powershell, python, qbasic, rails, reg, robots, ruby, sas, scala, scheme, sdlbasic, smalltalk, smarty, sql, tcl, text, thinbasic, tsql, vb, vbnet, verilog, vhdl, visualfoxpro, winbatch, xml, xorg_conf, xpp, z80
Resources: http://arduino.cc/en/Hacking/PinMapping168