mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-25 14:28:20 +08:00
[DM/FIXUP] Fixup PCI build
1. Add PCI include in rtdevice.h 2. Fixup `RT_KEY_ENABLED` loss. 3. remove waring type of `dw_pcie_ep_get_func_from_ep` return. Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
@@ -89,6 +89,16 @@ extern "C" {
|
||||
#include "drivers/pic.h"
|
||||
#endif /* RT_USING_PIC */
|
||||
|
||||
#ifdef RT_USING_PCI
|
||||
#include "drivers/pci.h"
|
||||
#ifdef RT_PCI_MSI
|
||||
#include "drivers/pci_msi.h"
|
||||
#endif /* RT_PCI_MSI */
|
||||
#ifdef RT_PCI_ENDPOINT
|
||||
#include "drivers/pci_endpoint.h"
|
||||
#endif /* RT_PCI_ENDPOINT */
|
||||
#endif /* RT_USING_PCI */
|
||||
|
||||
#ifdef RT_USING_REGULATOR
|
||||
#include "drivers/regulator.h"
|
||||
#endif /* RT_USING_REGULATOR */
|
||||
|
||||
Reference in New Issue
Block a user