OIL file for Lattice Mico32
From ErikaWiki
(Difference between revisions)
Line 7: | Line 7: | ||
:::APP_SRC = "main.c";<br> | :::APP_SRC = "main.c";<br> | ||
:::MULTI_STACK = FALSE;<br> | :::MULTI_STACK = FALSE;<br> | ||
+ | :::USESTANDALONEPRINTF = TRUE; // Optional, default is FALSE;<br> | ||
+ | :::USESMALLC = FALSE; // Optional, defautl is FALSE;<br> | ||
::};<br> | ::};<br> | ||
::MCU_DATA = LATTICE_PLATFORM {<br> | ::MCU_DATA = LATTICE_PLATFORM {<br> | ||
Line 15: | Line 17: | ||
:::};<br> | :::};<br> | ||
:::DEVICE = TIMER{<br> | :::DEVICE = TIMER{<br> | ||
- | ::::NAME = " | + | ::::NAME = "timer"; // sub-section to use freetimer<br> |
+ | ::::OPTIONS = TIMER_IRQ_SUPPORT; // IRQ code will be compiled<br> | ||
:::};<br> | :::};<br> | ||
::}; <br> | ::}; <br> |
Revision as of 10:37, 10 November 2010
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;
- APP_SRC = "main.c";
- };
- 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 ""
- PLATFORM_LIB_PATH = "../test_sram_lib"; // library (platform-dependent) path
- };
- DEVICE = TIMER{
- NAME = "timer"; // sub-section to use freetimer
- OPTIONS = TIMER_IRQ_SUPPORT; // IRQ code will be compiled
- NAME = "timer"; // sub-section to use freetimer
- };
- MODEL = LIBRARY {
- };
- BOARD_DATA = XP2_CAMERA_BOARD { // section for XP2 camera board
- OPTIONS = RS232; // Use uart driver
- OPTIONS = RS232; // Use uart driver
- };
- KERNEL_TYPE = FP; // Scheduler choice (i.e. fixed priority scheduler)
- CFLAGS = "-g2"; //option to produce debugging information
- };
- 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
- CATEGORY = 2;
- };
- TASK myTask { // Standard task definition
- PRIORITY = 2;
- STACK = SHARED;
- SCHEDULE = FULL;
- PRIORITY = 2;
- };
};