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/
_amxmbed.h
00001 /** 00002 * Include file for the interface to mbed from Pawn interpreter. 00003 * 00004 * Copyright 2011 Pulse-Robotics, Inc. 00005 * Author: Tyler Wilson 00006 */ 00007 00008 #ifndef _AMXMBED_H 00009 #define _AMXMBED_H 00010 00011 //#include "mbed.h" 00012 00013 //void mbed_set_serial(Serial* serial); 00014 00015 #ifdef __cplusplus 00016 extern "C" { 00017 #endif 00018 00019 // from amxcons.c. need to declare them as extrn "C" so we build correctly 00020 int amx_putstr(const char *); 00021 int amx_putchar(int); 00022 int amx_fflush(void); 00023 int amx_getch(void); 00024 char* amx_gets(char* ,int); 00025 int amx_termctl(int,int); 00026 void amx_clrscr(void); 00027 void amx_clreol(void); 00028 int amx_gotoxy(int x,int y); 00029 void amx_wherexy(int *x,int *y); 00030 unsigned int amx_setattr(int foregr,int backgr,int highlight); 00031 void amx_console(int columns, int lines, int flags); 00032 void amx_viewsize(int *width,int *height); 00033 int amx_kbhit(void); 00034 00035 //int mbed_getc(void); 00036 //int mbed_putc(int character); 00037 //int mbed_puts(const char* str); 00038 //int mbed_kbhit(void); 00039 00040 #ifdef __cplusplus 00041 } 00042 #endif 00043 00044 #endif /* _AMXMBED_H */
Generated on Sat Jul 16 2022 16:09:35 by 1.7.2