martedì 2 ottobre 2007

New Primitives

Adding a new primitive means that you create a forth function. Every time you run this function in forth interpreter you just run C function associated.

To add a new primitive are enough three steps:

1. forth.h: add the name primitive function after the other ones

2. forth.c: in the function build_primitive add a line with the following syntax:
build_primitive( name_in_forth.h, "equivalent_Forth_command" );

3. Write the function void name_in_forth.h( void ) in any file (i.e. extension.c)

Ethernut 3, switch configuration

The Ethernut 3 source code starts the application making a LED blinking.
To switch in a interactive modality you must send the word prompting through the web interface.
To come back executing the original code type: run.
The http server (and the Forth debugger) is reachable at 192.168.9.120 ip address. You can modify this parameter in the file cgi.c.
To change the starting configuration you must rewrite the file programma.lse.

lunedì 1 ottobre 2007

Source code and binaries

Download sources and binaries.


We remember you that sources may be not entirely working.
If you experiment some problem comment this post or email us.

Presentations

Download Virtual I/O and Forth for Embedded Systems

Download Debugger and Forth for Embedded Systems

(right click and choose save as)

Tomorrow we will provide source codes for ethernut 2.1b and 3.0e.

giovedì 13 settembre 2007

Led management

This is the first demo of peripheral management in Forth.
In few days other tests will be uploaded.
Then, source codes and binary will be provided in conjunction with documentation.