mechanism,justdeclarethe$PLATFORM_CPU_CONSTANTS$macroinyourplatform's $platform_conf.h$ file and list all your constants as part of this macro, each enclosed in a special macro called
<p>It's worth to note that adding more constants does not increas RAM usage, only Flash usage, so you can expose as much constants as you need without worrying about RAM consumption.<br />
desc="Disables the global CPU interrupt flag if called without arguments, or a specific interrupt for a list of resource IDs if called with arguments.",
desc="Enables the global CPU interrupt flag if called without arguments, or a specific interrupt for a list of resource IDs if called with arguments.",
desc="Sets the Lua interrupt handler for interrupt *id* to function *handler*. *handler* can be #nil# to disable the interrupt handler. Only available if interrupt support is enabled, check @inthandlers.html@here@ for details.",
args=
{
"$id$ - the interrup ID.",
"$handler$ - the Lua interrupt handler function, or *nil* to disable the Lua interrupt handler feature."
},
ret="$prev_handler$ - the previous interrupt handler for interrupt *id*, or *nil* if an interrupt handler was not set for interrupt *id*."
},
{sig="handler = #cpu.get_int_handler#( id )",
desc="Returns the Lua interrupt handler for interrupt *id*",
args="$id$ - the interrup ID.",
ret="$handler$ - the interrupt handler for interrupt *id*, or *nil* if an interrupt handler is not set for interrupt *id*."
desc="Get the interrupt pending flag of an interrupt ID/resource ID combination, and optionally clear the pending flag. Only available if interrupt support is enabled, check @inthandlers.html@here@ for details.",
args=
{
"$id$ - the interrupt ID.",
"$resnum$ - the resource ID.",
"$clear (optional)$ - $true$ to clear the interrupt pending flag or $false$ to leave the interrupt pending flag untouched. Defaults to $true$ if not specified."