This is the open source Pawn interpreter ported to mbed. See here: http://www.compuphase.com/pawn/pawn.htm and here: http://code.google.com/p/pawnscript/
Some instructions:
- Put the attached include folder next to your source, so when you compile you get all the proper definitions
- Use the attached main.p as a starting point if you wish
- Compile your main.p into main.amx - Put your main.amx on the mbed 'drive'
- Reset and be amazed.
Important Compile Notes:
- You should use the -S# option to define a smaller default stack size. Start with -S64 and go up from there if needed.
- To use on the Cortex-M0 version of the mbed (LPC11U24), you MUST include the TARGET=3 command-line option as well, so the pin names are properly defined. In the future this may be handled on the native code side.
Known Issues:
At the moment it appears the kbhit() function is not working right - at least on my mac. Will continue testing on Windows.Working fine.
Todo:
- Add more wrappers for the mbed peripherals
- Add Pawn overlay support, to allow much larger scripts to run (even on the LPC11U24)
Files at revision 3:185fdbb7ccf0
Name | Size | Actions |
---|---|---|
[up] | ||
_amxmbed.h | 969 | Revisions Annotate |
amx.c | 105523 | Revisions Annotate |
amx.h | 21053 | Revisions Annotate |
amxaux.c | 5196 | Revisions Annotate |
amxaux.h | 1393 | Revisions Annotate |
amxcons.c | 37112 | Revisions Annotate |
amxcons.h | 493 | Revisions Annotate |
amxconsole.h | 319 | Revisions Annotate |
amxmbed.cpp | 5437 | Revisions Annotate |
amxmbed.h | 347 | Revisions Annotate |
amxpool.c | 8945 | Revisions Annotate |
amxpool.h | 1148 | Revisions Annotate |
amxtime.c | 12045 | Revisions Annotate |
amxtime.h | 321 | Revisions Annotate |
osdefs.h | 5091 | Revisions Annotate |