rad 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.1.1 2007-10-29
2
+ * 2 major fixes:
3
+ * explicitly specify path to arduino avr tools (this was broken on systems that didn't have the avr toolchain installed, oops)
4
+ * add explicit path to avrdude.conf in the upload make target
5
+
1
6
  == 0.1.0 2007-10-28
2
7
  * 4ish major updates:
3
8
  * Arduino interop has been updated, and consequently now requires Arduino 0010:
@@ -72,6 +72,7 @@ MCU = <%= params['mcu'] %>
72
72
  F_CPU = 16000000
73
73
  FORMAT = ihex
74
74
  UPLOAD_RATE = 19200
75
+ BIN_DIR = <%= params['arduino_root'] %>/hardware/tools/avr/bin
75
76
 
76
77
  # Name of this Makefile (used for "make depend").
77
78
  MAKEFILE = Makefile
@@ -113,17 +114,17 @@ AVRDUDE_PROGRAMMER = stk500
113
114
  AVRDUDE_PORT = $(PORT)
114
115
  AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
115
116
  AVRDUDE_FLAGS = -F -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) \
116
- -b $(UPLOAD_RATE)
117
+ -b $(UPLOAD_RATE) -C <%= params['arduino_root'] %>/hardware/tools/avr/etc/avrdude.conf
117
118
 
118
119
  # Program settings
119
- CC = avr-gcc
120
- CXX = avr-g++
121
- OBJCOPY = avr-objcopy
122
- OBJDUMP = avr-objdump
123
- AR = avr-ar
124
- SIZE = avr-size
125
- NM = avr-nm
126
- AVRDUDE = avrdude
120
+ CC = $(BIN_DIR)/avr-gcc
121
+ CXX = $(BIN_DIR)/avr-g++
122
+ OBJCOPY = $(BIN_DIR)/avr-objcopy
123
+ OBJDUMP = $(BIN_DIR)/avr-objdump
124
+ AR = $(BIN_DIR)/avr-ar
125
+ SIZE = $(BIN_DIR)/avr-size
126
+ NM = $(BIN_DIR)/avr-nm
127
+ AVRDUDE = $(BIN_DIR)/avrdude
127
128
  REMOVE = rm -f
128
129
  MV = mv -f
129
130
 
@@ -7,7 +7,7 @@ namespace :make do
7
7
  task :upload => :compile do
8
8
  puts "Reset the Arduino (unless yours has auto-reset!) and hit enter."
9
9
  STDIN.gets.chomp
10
- sh %{#{Makefile.software_params['arduino_root']}/hardware/tools/avr/bin/avrdude -F -p #{Makefile.hardware_params['mcu']} -P #{Makefile.hardware_params['serial_port']} -c stk500v1 -b 19200 -U flash:w:#{[RAD_ROOT,@sketch_name,@sketch_name].join '/'}.hex}
10
+ sh %{#{Makefile.software_params['arduino_root']}/hardware/tools/avr/bin/avrdude -F -p #{Makefile.hardware_params['mcu']} -P #{Makefile.hardware_params['serial_port']} -c stk500v1 -b 19200 -C #{Makefile.software_params['arduino_root']}/hardware/tools/avr/etc/avrdude.conf -U flash:w:#{[RAD_ROOT,@sketch_name,@sketch_name].join '/'}.hex}
11
11
  end
12
12
 
13
13
  desc "generate a makefile and use it to compile the .cpp"
data/lib/rad/version.rb CHANGED
@@ -2,7 +2,7 @@ module Rad #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: rad
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.0
7
- date: 2007-10-28 00:00:00 -07:00
6
+ version: 0.1.1
7
+ date: 2007-10-29 00:00:00 -07:00
8
8
  summary: A framework for programming the Arduino physcial computing platform using Ruby. RAD converts Ruby scripts written using a set of Rails-like conventions and helpers into C source code which can be compiled and run on the Arduino microcontroller.
9
9
  require_paths:
10
10
  - lib