Renesas 70 Manual De Usuario

Descargar
Página de 162
Chapter 4 Applications Development Procedure Overview   
   
- 64 - 
4.2.2 
Configuration File Preparation 
Create a configuration file which has defined in it the task entry address, stack size, etc. Use of the GUI con-
figurator available for MR308 helps to create a configuration file easily without having to learn how to write it. 
  shows an example configuration file for a laser beam printer simulation program (filename "lbp.cfg"). 
 
// System Definition 
 system{ 
  
stack_size 
 
= 1024; 
  
priority 
 
= 5; 
  
system_IPL 
 
= 4; 
 tick_nume 
 
10; 
 }; 
 //System Clock Definition 
 clock{ 
  
mpu_clock 
 
= 20MHz; 
  
timer 
 
 
= A0; 
  
IPL 
 
 
= 4; 
}; 
 //Task Definition 
 task[1]{ 
 name  
 
ID_main; 
  
entry_address 
 
= main(); 
  
stack_size 
 
= 512; 
  
priority 
 
= 1; 
  
initial_start 
 
= ON; 
 }; 
 task[2]{ 
 name  
 
ID_image; 
  
entry_address 
 
= image(); 
  
stack_size 
 
= 512; 
  
priority 
 
= 2; 
 }; 
 task[3]{ 
 name  
 
ID_printer; 
  
entry_address 
 
= printer(); 
  
stack_size 
 
= 512; 
  
priority 
 
= 4; 
 }; 
 task[4]{ 
 name  
 
ID_idle; 
  
entry_address 
 
= idle(); 
  
stack_size 
 
= 256; 
  
priority 
 
= 5; 
 }; 
//Eventflag Definition 
 flag[1]{ 
  
 name 
 
 
= pagein; 
 }; 
 //Interrupt Vector Definition 
 interrupt_vector[0x23]{ 
  
os_int   
 
= YES; 
  
entry_address 
 
= sent_in(); 
 }; 
Figure 4.3 Configuration File Example