This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

error handling default policy?

Other Parts Discussed in Thread: SYSBIOS

I wonder what the following means in when I read about SYS/BIOS6 Hwi_create() in the Help in the CCS4:

 

eb - active error-handling block, or NULL to select default policy (target-domain only)

 

What does this "default policy" mean?

 

  • See the docs for the Error module:

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/6_32_05_54/exports/bios_6_32_05_54/docs/cdoc/index.html#xdc/runtime/Error.html

    The Error handling is defined by the Error.policy configuration setting. If you pass in a NULL Error block and an Error occurs (is raised), the policy set by Error.policy will be used::

    Error handling policies

    C synopsis target-domain
    typedef enum Error_Policy {
        Error_TERMINATE,
        Error_UNWIND
    } Error_Policy;
     

    VALUES
    TERMINATE — All raised errors are fatal. A call to Error_raise will never return to the caller.
    UNWIND — Errors are returned to the caller. A call to Error_raise will return back to the caller.

    DETAILS
    Regardless of the current policy in use, raising an error by calling Error_raise will always invoke the error raise hook function assigned to the Error.raiseHook configuration parameter.