OIL file for Lattice Mico32

From ErikaWiki

Revision as of 11:04, 10 November 2010 by Erikadds (Talk | contribs)
Jump to: navigation, search

CPU test_application {

OS EE {
CFLAGS = "-g2"; //option to produce debugging information
ASFLAGS = "";
LDFLAGS = "";
CPU_DATA = LM32 {
APP_SRC = "main.c";
MULTI_STACK = FALSE;
USESTANDALONEPRINTF = TRUE; // Optional, default is FALSE;
USESMALLC = FALSE; // Optional, defautl is FALSE;
};
MCU_DATA = LATTICE_PLATFORM {
MODEL = LIBRARY {
PLATFORM_LIB_PATH = "../test_sram_lib"; // library (platform-dependent) path
PLATFORM_NAME = "test_base"; // platform name (is also the name of the main folder in the library path)
PLATFORM_BLD_CFG = "Release"; // Optional, default is ""
};
DEVICE = TIMER{
NAME = "timer"; // sub-section to use the timer
OPTIONS = TIMER_IRQ_SUPPORT; // Timer IRQ code will be compiled
};
DEVICE = UART{
NAME = "myuart"; // sub-section to use uart
OPTIONS = UART_IRQ_SUPPORT; // Uart IRQ code will be compiled
};
DEVICE = SPI{
NAME = "myspi"; // sub-section to use spi
OPTIONS = SPI_IRQ_SUPPORT; // SPI IRQ code will be compiled
};
DEVICE = I2C{
NAME = "myi2c"; // sub-section to use i2c
OPTIONS = I2C_IRQ_SUPPORT; // I2C IRQ code will be compiled
};
DEVICE = GPIO{
NAME = "mygpio"; // sub-section to use gpio
OPTIONS = GPIO_IRQ_SUPPORT; // GPIO IRQ code will be compiled
};
};
BOARD_DATA = XP2_CAMERA_BOARD { // section for XP2 camera board
OPTIONS = LEDS; // Use leds driver for XP2_CAMERA_BOARD
OPTIONS = TRANSISTORS; // Use transistors driver for XP2_CAMERA_BOARD
OPTIONS = SWITCHES; // Use switches driver for XP2_CAMERA_BOARD
OPTIONS = LIGHTSENSOR; // Use light sensor driver for XP2_CAMERA_BOARD
OPTIONS = RS232; // Use uart specific driver for XP2_CAMERA_BOARD
OPTIONS = RS232_IRQ_SUPPORT; // Compile UART IRQ code
OPTIONS = CAMERA; // Use Camera hv7131gp driver for XP2_CAMERA_BOARD
OPTIONS = CAMERA_IRQ_SUPPORT; // Compile Camera IRQ code
OPTIONS = RTCLOCK; // Use RT-clcok pcf8583 driver for XP2_CAMERA_BOARD
OPTIONS = RTCLOCK_IRQ_SUPPORT; // Compile RT-clock IRQ code
OPTIONS = EXTSPI; // Use SPI specific driver for XP2_CAMERA_BOARD
OPTIONS = EXTSPI_IRQ_SUPPORT; // Compile SPI IRQ code

// ATT! ZIGBEE AND ETHERNET OPTIONS ARE MUTUALLY EXCLUSIVE!!!

OPTIONS = ZIGBEE; // Use Zigbee mrf24j40 driver for XP2_CAMERA_BOARD
OPTIONS = ZIGBEE_IRQ_SUPPORT; // Compile Zigbee IRQ code

// ATT! ZIGBEE AND ETHERNET OPTIONS ARE MUTUALLY EXCLUSIVE!!!

OPTIONS = ETHERNET; // Use Ethernet enc28j60 driver for XP2_CAMERA_BOARD
OPTIONS = ETHERNET_IRQ_SUPPORT; // Compile Ethernet IRQ code

// ATT! ZIGBEE AND ETHERNET OPTIONS ARE MUTUALLY EXCLUSIVE!!!

OPTIONS = ALL_ZIGBEE; // Enable all Zigbee options
OPTIONS = ALL_ETHERNET; // Enable all ethernet options
};
KERNEL_TYPE = FP; // Scheduler choice (i.e. fixed priority scheduler)
};
ISR Timer { // Section for ISR definition
CATEGORY = 2;
LEVEL = "TIMER_IRQ"; // Level is the number specified in the library system_conf.h file
HANDLER = "EE_timer_common_handler"; // Handler is the name of the driver callback
};
TASK myTask { // Standard task definition
PRIORITY = 2;
STACK = SHARED;
SCHEDULE = FULL;
};

};

Personal tools