bsp: cvitek: switch to device init function for some drivers

Some drivers use INIT_BOARD_EXPORT, it is not necessary,
it is enough to use INIT_DEVICE_EXPORT for genearl drivers.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
This commit is contained in:
Chen Wang 2024-07-04 10:07:14 +08:00 committed by Rbb666
parent 937f0dbf5a
commit 7c1d205a4e
5 changed files with 5 additions and 5 deletions

View File

@ -212,4 +212,4 @@ int rt_hw_adc_init(void)
return RT_EOK; return RT_EOK;
} }
INIT_BOARD_EXPORT(rt_hw_adc_init); INIT_DEVICE_EXPORT(rt_hw_adc_init);

View File

@ -601,4 +601,4 @@ int rt_hw_i2c_init(void)
return result; return result;
} }
INIT_BOARD_EXPORT(rt_hw_i2c_init); INIT_DEVICE_EXPORT(rt_hw_i2c_init);

View File

@ -335,4 +335,4 @@ int rt_hw_pwm_init(void)
} }
return RT_EOK; return RT_EOK;
} }
INIT_BOARD_EXPORT(rt_hw_pwm_init); INIT_DEVICE_EXPORT(rt_hw_pwm_init);

View File

@ -342,4 +342,4 @@ int rt_hw_spi_init(void)
return ret; return ret;
} }
INIT_BOARD_EXPORT(rt_hw_spi_init); INIT_DEVICE_EXPORT(rt_hw_spi_init);

View File

@ -167,4 +167,4 @@ int rt_hw_wdt_init(void)
return RT_EOK; return RT_EOK;
} }
INIT_BOARD_EXPORT(rt_hw_wdt_init); INIT_DEVICE_EXPORT(rt_hw_wdt_init);