Skip to content

Commit 5a13e72

Browse files
committed
fix order of initialization
1 parent 482fcd5 commit 5a13e72

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libraries/drivers/drv_sdio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ int rt_hw_sdio_init(void)
491491

492492
return 0;
493493
}
494-
INIT_COMPONENT_EXPORT(rt_hw_sdio_init);
494+
INIT_DEVICE_EXPORT(rt_hw_sdio_init);
495495

496496
void sdcard_change(void)
497497
{

libraries/drivers/drv_spi_ili9488.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ const static struct rt_device_ops lcd_ops =
957957
};
958958
#endif
959959

960-
int drv_lcd_hw_init(void)
960+
int drv_lcd_ili9488_hw_init(void)
961961
{
962962
rt_err_t result = RT_EOK;
963963
struct rt_device *device = &_lcd.parent;
@@ -1042,7 +1042,7 @@ int drv_lcd_hw_init(void)
10421042
}
10431043
return result;
10441044
}
1045-
INIT_DEVICE_EXPORT(drv_lcd_hw_init);
1045+
INIT_COMPONENT_EXPORT(drv_lcd_ili9488_hw_init);
10461046

10471047
#ifdef DRV_DEBUG
10481048
#ifdef FINSH_USING_MSH

projects/art_pi_net_player/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ config RT_STUDIO_BUILT_IN
2424
select ARCH_ARM_CORTEX_M7
2525
select RT_USING_COMPONENTS_INIT
2626
select RT_USING_USER_MAIN
27-
default y
27+
default y

0 commit comments

Comments
 (0)