mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-20 21:29:42 +08:00
[components][drivers]add ofw support i2c
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include <rtdef.h>
|
||||
#include <rtthread.h>
|
||||
#include <drivers/core/driver.h>
|
||||
#include <drivers/core/bus.h>
|
||||
|
||||
#include <drivers/classes/block.h>
|
||||
#include <drivers/classes/char.h>
|
||||
@@ -38,6 +39,23 @@ extern "C" {
|
||||
|
||||
#define RT_DEVICE(device) ((rt_device_t)device)
|
||||
|
||||
#ifdef RT_USING_DM
|
||||
#include "drivers/core/dm.h"
|
||||
#include "drivers/platform.h"
|
||||
|
||||
#ifdef RT_USING_OFW
|
||||
#include "drivers/ofw.h"
|
||||
#include "drivers/ofw_fdt.h"
|
||||
#include "drivers/ofw_io.h"
|
||||
#include "drivers/ofw_irq.h"
|
||||
#include "drivers/ofw_raw.h"
|
||||
#endif /* RT_USING_OFW */
|
||||
|
||||
#ifdef RT_USING_PIC
|
||||
#include "drivers/pic.h"
|
||||
#endif
|
||||
#endif /* RT_USING_DM */
|
||||
|
||||
#ifdef RT_USING_RTC
|
||||
#include "drivers/rtc.h"
|
||||
#ifdef RT_USING_ALARM
|
||||
@@ -80,6 +98,10 @@ extern "C" {
|
||||
#ifdef RT_USING_I2C_BITOPS
|
||||
#include "drivers/i2c-bit-ops.h"
|
||||
#endif /* RT_USING_I2C_BITOPS */
|
||||
|
||||
#ifdef RT_USING_DM
|
||||
#include "drivers/i2c_dm.h"
|
||||
#endif /* RT_USING_DM */
|
||||
#endif /* RT_USING_I2C */
|
||||
|
||||
#ifdef RT_USING_PHY
|
||||
@@ -182,23 +204,6 @@ extern "C" {
|
||||
#include "drivers/clk.h"
|
||||
#endif /* RT_USING_CLK */
|
||||
|
||||
#ifdef RT_USING_DM
|
||||
#include "drivers/core/dm.h"
|
||||
#include "drivers/platform.h"
|
||||
|
||||
#ifdef RT_USING_OFW
|
||||
#include "drivers/ofw.h"
|
||||
#include "drivers/ofw_fdt.h"
|
||||
#include "drivers/ofw_io.h"
|
||||
#include "drivers/ofw_irq.h"
|
||||
#include "drivers/ofw_raw.h"
|
||||
#endif /* RT_USING_OFW */
|
||||
|
||||
#ifdef RT_USING_PIC
|
||||
#include "drivers/pic.h"
|
||||
#endif
|
||||
#endif /* RT_USING_DM */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user