Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Slide 10 Slide 11 Slide 12 Product List
RTOS and Software Interrupts Slide 10

This slides presents the runtime API the SYS/BIOS Swi module. In this piece of code, three different variables have been created. The first two are types defined by the Swi module itself, the first being a structure that holds all of the various Swi parameters. The second variable is used to store the handle of the Swi that will be created. By calling Swi_Params_init(), one can fill the params structure with all of the default parameter values. The parameters can then easily be updated with different values (in this case the priority of the Swi) while not worrying about the others. An error block variable is also being setting up so that if the create failed, more information on why it failed could be found out. Finally, Swi_create() is called; this will instantiate the Swi instance and return the handle to the new Swi. Also on this slide is a summary of the other API calls used to control a Swi.

PTM Published on: 2012-07-17