config.h

来自「单片机上的java虚拟机 用winavr 编译」· C头文件 代码 · 共 50 行

H
50
字号
//// config.h//// NanoVM configuration file for the Asuro//#ifndef CONFIG_H#define CONFIG_H// cpu related setup#define ATMEGA168#define ASURO                  // compiles some special code e.g. in uart.c#define CLOCK 8000000// uart setup#define UART_BITRATE 2400#define UART_BUFFER_BITS 5     // 32 bytes buffer (min. req for loader)#define CODESIZE 512#define HEAPSIZE 768// avr specific native init routines#define NATIVE_INIT  native_init()// use flash to store java program//#define NVM_USE_FLASH_PROGRAM#define NVM_INITIALIZE_ALLOCATED // fill new class instances with zero// vm setup#undef NVM_USE_STACK_CHECK       // enable check if method returns empty stack#define NVM_USE_ARRAY            // enable arrays#define NVM_USE_TABLESWITCH      // support switch instruction#define NVM_USE_LOOKUPSWITCH     // support switch instruction#define NVM_USE_INHERITANCE      // support for inheritance//#define NVM_USE_32BIT_WORD//#define NVM_USE_FLOAT#define NVM_USE_EXTSTACKOPS      // enable extended dup opcodes// native setup//#define NVM_USE_MATH             // enable native math functions#define NVM_USE_STDIO            // enable native stdio support//#define NVM_USE_FORMATTER        // enable native formatter class// marker used to indicate, that this item is stored in eeprom#define NVMFILE_FLAG     0x8000#endif // CONFIG_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?