6 | | __I forgot to enable interrupts for the push buttons when using Base System Builder. What do I do now?__ |
| 6 | __I forgot to enable interrupts for the push buttons when using Base System Builder. What do I do now?__[[BR]] |
| 7 | Oh man, now you've done it...Copy the following lines of code into the MHS file: |
| 8 | BEGIN opb_intc[[BR]] |
| 9 | PARAMETER INSTANCE = opb_intc_0[[BR]] |
| 10 | PARAMETER HW_VER = 1.00.c[[BR]] |
| 11 | PARAMETER C_BASEADDR = 0x41200000[[BR]] |
| 12 | PARAMETER C_HIGHADDR = 0x4120ffff[[BR]] |
| 13 | BUS_INTERFACE SOPB = opb[[BR]] |
| 14 | PORT Intr = Push_Buttons_4bit_IP2INTC_Irpt[[BR]] |
| 15 | PORT Irq = EICC405EXTINPUTIRQ[[BR]] |
| 16 | END[[BR]] |
| 18 | Add these lines to the Push_Buttons_4bit instance in the MHS file (the first parameter in each device in the instance name): |
| 19 | PARAMETER C_INTERRUPT_PRESENT = 1[[BR]] |
| 20 | PORT IP2INTC_Irpt = Push_Buttons_4bit_IP2INTC_Irpt |
| 21 | |
| 22 | Add these lines to the MSS file: |
| 23 | BEGIN DRIVER[[BR]] |
| 24 | PARAMETER DRIVER_NAME = intc[[BR]] |
| 25 | PARAMETER DRIVER_VER = 1.00.c[[BR]] |
| 26 | PARAMETER HW_INSTANCE = opb_intc_0[[BR]] |
| 27 | END[[BR]] |
| 28 | |
| 29 | '''''If this does not work, you will need to recreate the project using Base System Builder''''' |