Specifications
Modifying the Configuration File
Debugging Program Behavior
5-9
10) Right-click on the processing_SWI software interrupt object. From the
pop-up menu, select Properties.
■ function
. When this software interrupt is activated, the processing
function runs. This function is shown in section 5.2, page 5–5.
■ mailbox
. The mailbox value can control when a software interrupt
runs. Several API calls affect the value of the mailbox and can post
the software interrupt depending on the resulting value. When a
software interrupt is posted, it runs when it is the highest priority
software or hardware interrupt thread that has been posted.
■ arg0, arg1
. The inp_buffer and out_buffer addresses are passed to
the processing function.
11) Click Cancel to close this properties dialog without making any changes.
12) Since the processing function is no longer run within main, what causes
this SWI object to run its function? In volume.c, the dataIO function calls
SWI_dec, which decrements the mailbox value and posts the software
interrupt if the new mailbox value is 0. So, this SWI object runs its function
every tenth time the dataIO_CLK object runs the dataIO function.
13) Choose File
→
Close. You are asked whether you want to save your
changes to volume.cdb. Click Yes. Saving this file also generates
volumecfg.cmd, volumecfg.s62, and volumecfg.h62.
14) Choose Project
→
Build or click the (Incremental Build) toolbar button.