AzureMXChip/MXCHIPAZ3166/core/lib/threadx/ports/c667x/ccs/example_build/sample_threadx_c6678evm/board_setup.c
static int32_t tx_interrupt_init(void)
{
	int32_t r;

	// Set DSP interrupt handlers to the ones defined in tx_initialize_low_level.asm
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_NMI, _tx_nmi_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_4, _tx_int4_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_5, _tx_int5_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_6, _tx_int6_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_7, _tx_int7_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_8, _tx_int8_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_9, _tx_int9_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_10, _tx_int10_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_11, _tx_int11_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_12, _tx_int12_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_13, _tx_int13_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_14, _tx_int14_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_15, _tx_int15_vector)) != C66XX_OK)
		goto exit;

	/* CorePack interrupt module configuration is completed */
	printf("INTC configuration is completed\n");
	// Exit without errors
	r = C66XX_OK;

exit:
	return (r);
}
/*------------ tx_interrupt_init() function -----------------------------------
 * DESCRIPTION: Function initializes CorePack interrupt module
 * ARGUMENTS:
 * None
 * RETURNED VALUE: Error code
-----------------------------------------------------------------------------*/
tx_interrupt_init() function
DESCRIPTION: Function initializes CorePack interrupt module
ARGUMENTS:
None
RETURNED VALUE: Error code
tx_interrupt_init () function DESCRIPTION : Function initializes CorePack interrupt module ARGUMENTS : None RETURNED VALUE : Error code
static int32_t tx_interrupt_init(void)
{
	int32_t r;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_NMI, _tx_nmi_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_4, _tx_int4_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_5, _tx_int5_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_6, _tx_int6_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_7, _tx_int7_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_8, _tx_int8_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_9, _tx_int9_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_10, _tx_int10_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_11, _tx_int11_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_12, _tx_int12_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_13, _tx_int13_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_14, _tx_int14_vector)) != C66XX_OK)
		goto exit;
	if ((r = C66XX_INT_set_core_dsp_interrupt_handler(C66XX_DSP_VECTID_15, _tx_int15_vector)) != C66XX_OK)
		goto exit;
	printf("INTC configuration is completed\n");
	r = C66XX_OK;
exit:
	return (r);
}
static int32_t tx_interrupt_init ( void ) { int32_t r ; if ( ( r = C66XX_INT_set_core_dsp_interrupt_handler ( C66XX_DSP_VECTID_NMI , _tx_nmi_vector ) ) != C66XX_OK ) goto exit ; if ( ( r = C66XX_INT_set_core_dsp_interrupt_handler ( C66XX_DSP_VECTID_4 , _tx_int4_vector ) ) != C66XX_OK ) goto exit ; if ( ( r = C66XX_INT_set_core_dsp_interrupt_handler ( C66XX_DSP_VECTID_5 , _tx_int5_vector ) ) != C66XX_OK ) goto exit ; if ( ( r = C66XX_INT_set_core_dsp_interrupt_handler ( C66XX_DSP_VECTID_6 , _tx_int6_vector ) ) != C66XX_OK ) goto exit ; if ( ( r = C66XX_INT_set_core_dsp_interrupt_handler ( C66XX_DSP_VECTID_7 , _tx_int7_vector ) ) != C66XX_OK ) goto exit ; if ( ( r = C66XX_INT_set_core_dsp_interrupt_handler ( C66XX_DSP_VECTID_8 , _tx_int8_vector ) ) != C66XX_OK ) goto exit ; if ( ( r = C66XX_INT_set_core_dsp_interrupt_handler ( C66XX_DSP_VECTID_9 , _tx_int9_vector ) ) != C66XX_OK ) goto exit ; if ( ( r = C66XX_INT_set_core_dsp_interrupt_handler ( C66XX_DSP_VECTID_10 , _tx_int10_vector ) ) != C66XX_OK ) goto exit ; if ( ( r = C66XX_INT_set_core_dsp_interrupt_handler ( C66XX_DSP_VECTID_11 , _tx_int11_vector ) ) != C66XX_OK ) goto exit ; if ( ( r = C66XX_INT_set_core_dsp_interrupt_handler ( C66XX_DSP_VECTID_12 , _tx_int12_vector ) ) != C66XX_OK ) goto exit ; if ( ( r = C66XX_INT_set_core_dsp_interrupt_handler ( C66XX_DSP_VECTID_13 , _tx_int13_vector ) ) != C66XX_OK ) goto exit ; if ( ( r = C66XX_INT_set_core_dsp_interrupt_handler ( C66XX_DSP_VECTID_14 , _tx_int14_vector ) ) != C66XX_OK ) goto exit ; if ( ( r = C66XX_INT_set_core_dsp_interrupt_handler ( C66XX_DSP_VECTID_15 , _tx_int15_vector ) ) != C66XX_OK ) goto exit ; printf ( " \n " ) ; r = C66XX_OK ; exit : return ( r ) ; }
tx_interrupt_init() function
 DESCRIPTION: Function initializes CorePack interrupt module
 ARGUMENTS:
 None
 RETURNED VALUE: Error code
tx_interrupt_init () function DESCRIPTION : Function initializes CorePack interrupt module ARGUMENTS : None RETURNED VALUE : Error code
// Set DSP interrupt handlers to the ones defined in tx_initialize_low_level.asm /* CorePack interrupt module configuration is completed */ // Exit without errors