Beispiel #1
0
int32_t adi_initComponents(void)
{
	int32_t result = 0;

#ifdef __ADI_HAS_SEC__
	result = adi_sec_Init();
#endif

#ifdef __ADI_USE_UTILITY_ROM /* check if Utility ROM support is enabled */

#ifndef NO_UTILITY_ROM_LIBDRV
	/* Drivers initialization for the parts that have a Utility ROM. */
	if (result == 0) {
		static uint8_t bfrom_memory[ADI_BF70X_RAM_SIZE_FOR_ROM_CODE];
	
		result = adi_init_drv_Rom(bfrom_memory, (uint32_t) ADI_BF70X_RAM_SIZE_FOR_ROM_CODE);
	}
	
#endif /* NO_UTILITY_ROM_LIBDRV */

#endif /* __ADI_USE_UTILITY_ROM */

	if (result == 0) {
		result = adi_initpinmux(); /* auto-generated code (order:0) */
	}

	return result;
}
Beispiel #2
0
int32_t adi_initComponents(void)
{
	int32_t result = 0;

#ifdef __ADI_HAS_SEC__
	result = adi_sec_Init();
#endif

	return result;
}
int32_t adi_initComponents(void)
{
	int32_t result = 0;

#ifdef __HAS_SEC__
	result = adi_sec_Init();
#endif

	if (result == 0) {
		result = adi_initpinmux(); /* auto-generated code (order:0) */
	}

	return result;
}
int32_t adi_initComponents(void)
{
	int32_t result = 0;

#ifdef __ADI_HAS_SEC__
	result = adi_sec_Init();
#endif

	Myadi_gpio_Init();

	if (result == 0) {
		result = adi_initpinmux(); /* auto-generated code (order:0) */
	}

	if (result == 0) {
		result = adi_OS_Init(); /* auto-generated code (order:3) */
	}

	if (result == 0) {
		result = adi_mcapi_Init(); /* auto-generated code (order:6) */
	}

	return result;
}