Compiling Embedded C Code : Report and Card Elements Declarations

Report and Card Elements Declarations

The following code is generated in r2main.c:

 
card_desc_elem card_card_1_desc;
report_link pins_card_1_desc[2];
 
card_desc_elem card_card_2_desc;
report_link pins_card_2_desc[2];
 

Corresponding extern declarations are generated in r2main.h. As you can see, this profile includes two I/O cards. Each of these cards has two pins. The number of pins is exactly the number of elements in pins_*arrays.