OIL file for Lattice Mico32

From ErikaWiki

(Difference between revisions)
Jump to: navigation, search
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 = "freetimer"; // sub-section to use freetimer<br>
+
::::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;
};
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 freetimer
OPTIONS = TIMER_IRQ_SUPPORT; // IRQ code will be compiled
};
};
BOARD_DATA = XP2_CAMERA_BOARD { // section for XP2 camera board
OPTIONS = RS232; // Use uart driver
};
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