l0dable
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| l0dable [2011/12/30 03:33] – rene-dev | l0dable [2011/12/30 13:18] (current) – emdete | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Set up build environment as described in [[build]] | Set up build environment as described in [[build]] | ||
| + | |||
| < | < | ||
| cd firmware/ | cd firmware/ | ||
| - | vi applications/ | + | vi hello.c |
| </ | </ | ||
| + | |||
| < | < | ||
| #include < | #include < | ||
| + | #include < | ||
| + | #include < | ||
| + | |||
| #include " | #include " | ||
| + | #include " | ||
| + | |||
| #include " | #include " | ||
| - | void main_hello(void) { | + | #include " |
| - | | + | |
| - | | + | #include " |
| - | while (1) {} | + | |
| + | void ram(void) | ||
| + | { | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | more examples how to do stuff are in the l0dable directory. | ||
| + | |||
| + | ==== Compiling the l0dable for the r0ket ==== | ||
| + | |||
| < | < | ||
| - | == Compiling the l0dable for the r0ket == | ||
| make hello.c0d | make hello.c0d | ||
| </ | </ | ||
| - | Select usb_storage on your r0ket, and copy hello.c0d on the usb device. | + | |
| - | == running in the simulat0r == | + | Select usb_storage on your r0ket, |
| + | on OS X so not use the finder, use | ||
| + | |||
| + | < | ||
| + | cp hello.c0d / | ||
| + | </ | ||
| + | |||
| + | make sure you unmount the device properly. | ||
| + | |||
| + | exit usb_storage, | ||
| + | |||
| + | ==== running in the simulat0r ==== | ||
| < | < | ||
| cd simulat0r | cd simulat0r | ||
| Line 29: | Line 58: | ||
| gui/ | gui/ | ||
| </ | </ | ||
| + | |||
l0dable.1325212417.txt.gz · Last modified: by rene-dev
