Defines |
#define | COMPILATION_ASSERT(e) do { enum { assert_static__ = 1/(e) };} while(0) |
#define | FUID3 0xF80016 |
#define | NUMBER_OF_CHUNK 26 |
#define | PAGE_PER_CHUNK ((VM_BYTECODE_SIZE*2+3 + INSTRUCTIONS_PER_PAGE*3 - 1) / (INSTRUCTIONS_PER_PAGE*3)) |
Functions |
static | __attribute ((far)) |
unsigned char __bootloader[INSTRUCTIONS_PER_PAGE *2 *2] | __attribute ((space(prog), section(".boot"), noload, address(0x15800-0x800))) |
void | __attribute ((noreturn)) |
struct private_settings | __attribute__ ((aligned(2))) |
unsigned char aseba_flash[PAGE_PER_CHUNK][INSTRUCTIONS_PER_PAGE *2] | __attribute__ ((space(prog), aligned(INSTRUCTIONS_PER_PAGE *2), section(".aseba_bytecode"), address(0x15800-0x800-0x400-NUMBER_OF_CHUNK *0x400L *PAGE_PER_CHUNK))) |
unsigned char aseba_flash1[PAGE_PER_CHUNK][INSTRUCTIONS_PER_PAGE *2] | __attribute__ ((space(prog), aligned(INSTRUCTIONS_PER_PAGE *2), section(".aseba_bytecode"))) |
unsigned char
aseba_settings_flash[INSTRUCTIONS_PER_PAGE *2] | __attribute__ ((space(prog), section(".aseba_settings"), noload, address(0x15800-0x800-0x400))) |
static void | __attribute__ ((noreturn)) |
const
AsebaNativeFunctionDescription
*const * | AsebaGetNativeFunctionsDescriptions (AsebaVMState *vm) |
const AsebaVMDescription * | AsebaGetVMDescription (AsebaVMState *vm) |
void | AsebaIdle (void) |
static void | AsebaNative__system_settings_flash (AsebaVMState *vm) |
static void | AsebaNative__system_settings_read (AsebaVMState *vm) |
static void | AsebaNative__system_settings_write (AsebaVMState *vm) |
void | AsebaNativeFunction (AsebaVMState *vm, uint16 id) |
void | AsebaPutVmToSleep (AsebaVMState *vm) |
void | AsebaResetIntoBootloader (AsebaVMState *vm) |
uint16 | AsebaShouldDropPacket (uint16 source, const uint8 *data) |
void | AsebaWriteBytecode (AsebaVMState *vm) |
void | init_aseba_and_can (void) |
static void | load_code_from_flash (AsebaVMState *vm) |
int | load_settings_from_flash (void) |
static void | received_packet_dropped (void) |
static void | sent_packet_dropped (void) |
static unsigned int | ui2str (char *str, unsigned int value) |
static unsigned int | ui2strhex (char *str, unsigned int id) |
Variables |
static const unsigned int | _magic_ [8] = {0xDE, 0xAD, 0xCA, 0xFE, 0xBE, 0xEF, 0x04, 0x02} |
unsigned long | aseba_flash_ptr |
unsigned long | aseba_settings_ptr |
static
AsebaNativeFunctionDescription | AsebaNativeDescription__system_reboot |
static
AsebaNativeFunctionDescription | AsebaNativeDescription__system_settings_flash |
static
AsebaNativeFunctionDescription | AsebaNativeDescription__system_settings_read |
static
AsebaNativeFunctionDescription | AsebaNativeDescription__system_settings_write |
unsigned int | events_flags = 0 |