Scaffold for the masses #3

Closed
wants to merge 5 commits into
from

Projects

None yet

2 participants

@nofxx

This makes dead simple to use the scaffold on other arduinos and programmers.
Tested with duemilanove, usbasp and a bunch of chips.
Adds some README too.

Thank you for this project.

@sw17ch sw17ch commented on the diff Jan 24, 2012
src/main.c
@@ -22,7 +22,7 @@ void configure(void)
TCCR0B = _BV(CS00) | _BV(CS01);
/* enable the TIMER0 overflow interrupt */
- TIMSK0 = _BV(TOIE0);
+ TIMSK0 = _BV(TOIE0); // TIMSK in ATTiny
@sw17ch
sw17ch Jan 24, 2012

Should there be more code in this file to support the ATTiny? As it stands, I'm probably going to toss the changes in main.c. I don't really see the intent here.

@nofxx
nofxx Jan 24, 2012

For one, it shows how easy it is to target tiny ;)
But, the error on attiny is a bit cryptic too, It took me some minutes to figure out...

@nofxx nofxx commented on the diff Jan 24, 2012
PARTNO = ENV['PARTNO'] || MCU
+
+# Flash burner
+PROGRAMMER = ENV['PROGRAMMER'] || 'arduino' # usbasp
+SERIAL_PORT = ENV['SERIAL_PORT'] || Dir.glob(
+ "/dev/tty#{RUBY_PLATFORM =~ /linux/ ? 'USB' : '.usbmodel'}").first
@nofxx
nofxx Jan 24, 2012

Just saw an error here... there should be an asterisk '*' on string ending here:

 '.usbmodel'}").first

To:

 '.usbmodel'}*").first

Please fix on merge, sorry.

@nofxx

Ended up with my collection: https://github.com/nofxx/avr_scaffold

@nofxx nofxx closed this Oct 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment