Exemple #1
0
// Lua: platform = platform()
static int pd_platform( lua_State* L )
{
#ifdef __PIC32MX
  lua_pushstring( L, MACRO_NAME( ELUA_PIC32 ) );
#else
  lua_pushstring( L, MACRO_NAME( ELUA_PLATFORM ) );
#endif
  return 1;
}
Exemple #2
0
// Lua: boardname = board()
static int pd_board( lua_State* L )
{
#ifdef __PIC32MX
  lua_pushstring( L, "PIC32 Ethernet Starter Kit" );
#else
  lua_pushstring( L, MACRO_NAME( ELUA_BOARD ) );
#endif
  return 1;
}
Exemple #3
0
// Lua: cpuname = cpu()
static int pd_cpu( lua_State* L )
{
#ifdef __PIC32MX
  lua_pushstring( L, "PIC32" );
#else
  lua_pushstring( L, MACRO_NAME( ELUA_CPU ) ); 
#endif
  return 1;
}
Exemple #4
0
// Lua: cpuname = cpu()
static int pd_cpu( lua_State* L )
{
  lua_pushstring( L, MACRO_NAME( ALCOR_CPU ) ); 
  return 1;
}
Exemple #5
0
// picoc: boardname = pd_board();
static void pd_board(pstate *p, val *r, val **param, int n)
{
  r->Val->Identifier = MACRO_NAME(ALCOR_BOARD);
}
Exemple #6
0
// Lua: platform = platform()
static int pd_platform( lua_State* L )
{
  lua_pushstring( L, MACRO_NAME( ALCOR_PLATFORM ) );
  return 1;
}
Exemple #7
0
// picoc: platform = pd_platform();
static void pd_platform(pstate *p, val *r, val **param, int n)
{
  r->Val->Identifier = MACRO_NAME(ALCOR_PLATFORM);
}
Exemple #8
0
// picoc: cpuname = pd_cpu();
static void pd_cpu(pstate *p, val *r, val **param, int n)
{
  r->Val->Identifier = MACRO_NAME(ALCOR_CPU);
}
Exemple #9
0
// (pd-cpu) -> sym
any pd_cpu(any x) {
   return mkStr(MACRO_NAME(ALCOR_CPU));
}
Exemple #10
0
// (pd-board) -> sym
any pd_board(any x) {
   return mkStr(MACRO_NAME(ALCOR_BOARD));
}
Exemple #11
0
// (pd-platform) -> sym
any pd_platform(any x) {
   return mkStr(MACRO_NAME(ALCOR_PLATFORM));
}
Exemple #12
0
// Lua: boardname = board()
static int pd_board( lua_State* L )
{
  lua_pushstring( L, MACRO_NAME( ALCOR_BOARD ) );
  return 1;
}
Exemple #13
0
// Lua: boardname = board()
static int pd_board( lua_State* L )
{
  lua_pushstring( L, MACRO_NAME( HEXAGON_KIT ) );
  return 1;
}
Exemple #14
0
// Lua: cpuname = cpu()
static int pd_cpu( lua_State* L )
{
  lua_pushstring( L, MACRO_NAME( XMC4500 ) );
  return 1;
}
Exemple #15
0
// Lua: platform = platform()
static int pd_platform( lua_State* L )
{
  lua_pushstring( L, MACRO_NAME( INFINEON-XMC4000 ) );
  return 1;
}