Permalink
Browse files

Added documentation

  • Loading branch information...
1 parent 590e98e commit f384c86efb0c924193cf92be84aedc14babf1dee @piranha32 committed Mar 25, 2012
View
@@ -0,0 +1,4 @@
+The Beaglebone Pinmux Tool
+
+The tool helps to generate pin muxing configration for BeagleBone board.
+Full documentation can be found in "doc/Pinmux Tool.pdf"
@@ -1287,9 +1287,6 @@ def find_by_pin_function(function,context)
begin
eeprom_f=File.new(input_file_name,"rb")
eeprom=eeprom_f.read
- #while(!(b=eeprom_f.getc).nil?)
- # eeprom.push(b)
- #end
eeprom_f.close
rescue Exception => e
puts "Can't read input file \"#{input_file_name}\": #{e.to_s}."
View
Binary file not shown.
View
Binary file not shown.
@@ -1,8 +1,5 @@
#comment
-bogus line
-anotehr bogus line
-
[general]
#general information
@@ -14,7 +11,7 @@ name Test board
version 123
#'manufacturer' Name of the board's manufacturer. max 16 ASCII characters, will be space padded on the left.
-manufacturer Jacek Radzikowski
+manufacturer John Smith
#'part' Part number. Max 16 ASCII characters, will be space padded on the left
part FlyingBone
@@ -66,16 +63,8 @@ deadbeef
out
fast
mux 5
-[pin dupa]
- out
[pin gpio1_5]
out
fast
mux 3
-
-
-[pin ...]
-
-[dupa]
-
-
+
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+#eeprom.bin file can be generated using config2binary.sh
+
+ruby ../bbone_pinmux_tool.rb \
+ --input-file eeprom.bin \
+ --input-format binary \
+ --output-format config \
+ --output-file out.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+ruby ../bbone_pinmux_tool.rb \
+ --input-file in.txt \
+ --input-format config \
+ --output-format binary \
+ --output-file eeprom.bin
+
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+ruby ../bbone_pinmux_tool.rb \
+ --input-file in.txt \
+ --input-format config \
+ --output-format python \
+ --output-file setmuxing.py
+
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+ruby ../bbone_pinmux_tool.rb \
+ --input-file in.txt \
+ --input-format config \
+ --output-format shell \
+ --output-file setmuxing.sh
+
View
@@ -1,6 +1,8 @@
+#An example of a configuration file
+
[header]
- name Test board
- version 123
+ name Test board #This is a comment
+ version 123 #All comments are stripped during parsing
manufacturer John Smith
part FlyingBone
serial 11224P160001

0 comments on commit f384c86

Please sign in to comment.