diff --git a/README.md b/README.md index 45ed224..85853fa 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,7 @@ this process is pretty much the same no matter the board. Simply create a `confi import boardConf board "unor3" -avr.any.gcc.path = "/usr/bin" -avr.any.gcc.exe = "avr-gcc" -avr.any.gcc.linkerexe = "avr-gcc" +--avr.any.gcc.path: "/usr/bin" ``` This does a couple of things, starting with including the `boardConf` module from Ratel. Then it calls `board` which tells @@ -38,8 +36,7 @@ as they will only be applied when compiling for these platforms. ## Writing our code Now that our project is all set up we need to write some code, the sample from the front page is a good start. Simply save the following code in -a file with the `.nim` extension named the same as the folder it's in. If you're using Nim on the devel branch you can leave out the `main` proc and simply -have everything in the global scope. +a file with the `.nim` extension named the same as the folder it's in. ```nim import board diff --git a/ratel.nimble b/ratel.nimble index 5556b18..97b7caf 100644 --- a/ratel.nimble +++ b/ratel.nimble @@ -1,6 +1,6 @@ # Package -version = "0.2.0" +version = "0.2.1" author = "Peter Munch-Ellingsen" description = "Nim for microcontrollers" license = "MIT" diff --git a/src/private/boards/helpers/avrBoardConf.nim b/src/private/boards/helpers/avrBoardConf.nim index e3f82fe..9ef0aac 100644 --- a/src/private/boards/helpers/avrBoardConf.nim +++ b/src/private/boards/helpers/avrBoardConf.nim @@ -8,8 +8,6 @@ --opt:size --exceptions:goto ---noMain - --cc:gcc --avr.any.gcc.exe:"avr-gcc" --avr.any.gcc.linkerexe:"avr-gcc" diff --git a/website/gettingstarted.html b/website/gettingstarted.html index fe2a2c4..64f5973 100644 --- a/website/gettingstarted.html +++ b/website/gettingstarted.html @@ -50,9 +50,7 @@
import boardConf
board "unor3"
-avr.any.gcc.path = "/usr/bin"
-avr.any.gcc.exe = "avr-gcc"
-avr.any.gcc.linkerexe = "avr-gcc"
+--avr.any.gcc.path: "/usr/bin"
This does a couple of things, starting with including the boardConf
module from Ratel. Then it calls board
which tells
Ratel that the board we want to build for is the Arduino Uno rev. 3. This will automatically include a set of sane defaults for compiling for this