mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-05-15 19:19:06 +08:00
[drivers] merge the software i2c driver
ToolsCI / Tools (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:cpp11/cpp11.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:components/cpp11]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/atomic.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/atomic]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/atomic.conf QEMU_ARCH:riscv64 QEMU_MACHINE:virt RTT_BSP:bsp/qemu-virt64-riscv RUN:yes SD_FILE:None UTEST:kernel/atomic/riscv64]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/atomic_c11.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/atomic_c11]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/atomic_c11.conf QEMU_ARCH:riscv64 QEMU_MACHINE:virt RTT_BSP:bsp/qemu-virt64-riscv RUN:yes SD_FILE:None UTEST:kernel/atomic_c11/riscv64]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/device.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/device]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/ipc.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/ipc]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/irq.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/irq]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/mem.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/mem]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/mem.conf QEMU_ARCH:riscv64 QEMU_MACHINE:virt RTT_BSP:bsp/qemu-virt64-riscv RUN:yes SD_FILE:None UTEST:kernel/mem/riscv64]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/thread.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/thread]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/timer.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/timer]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:rtsmart/base.conf QEMU_ARCH:aarch64 QEMU_MACHINE:virt RTT_BSP:bsp/qemu-virt64-aarch64 RUN:no SD_FILE:sd.bin UTEST:rtsmart/aarch64]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:rtsmart/base.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:no SD_FILE:sd.bin UTEST:rtsmart/arm]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:rtsmart/base.conf QEMU_ARCH:riscv64 QEMU_MACHINE:virt RTT_BSP:bsp/qemu-virt64-riscv RUN:yes SD_FILE:None UTEST:rtsmart/riscv64]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:utest_self/self.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:components/utest]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:ESP32C3 RTT_TOOL_CHAIN:sourcery-riscv32-esp32 SUB_RTT_BSP:[ESP32_C3]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:Infineon_TI_microchip RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[Infineon/psoc6-cy8ckit-062S2-43012 Infineon/psoc6-cy8ckit-062-BLE Infineon/psoc6-cy8ckit-062s4 Infineon/psoc6-cy8ckit-062-WIFI-BT Infineon/psoc6-cy8c… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:RT-Thread Online Packages (STM32F407 RT-Spark) RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[stm32/stm32f407-rt-spark]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:RTduino/Arduino Libraries (Raspberry Pico) RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[raspberry-pico]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:RTduino/Arduino Libraries (STM32F412 Nucleo) RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[stm32/stm32f412-st-nucleo]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:aarch64 RTT_TOOL_CHAIN:sourcery-aarch64 SUB_RTT_BSP:[qemu-virt64-aarch64 raspberry-pi/raspi3-64 raspberry-pi/raspi4-64 phytium/aarch64]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:gd32_n32_apm32 RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[gd32/arm/gd32103c-eval gd32/arm/gd32105c-eval gd32/arm/gd32105r-start gd32/arm/gd32107c-eval gd32/arm/gd32205r-start gd32/arm/gd32207i-eval gd32/arm/gd32303… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:hpmicro RTT_TOOL_CHAIN:RISC-V-GCC-RV32 SUB_RTT_BSP:[hpmicro/hpm6750evkmini hpmicro/hpm6750evk hpmicro/hpm6750evk2 hpmicro/hpm6300evk hpmicro/hpm6200evk hpmicro/hpm5300evk hpmicro/hpm5301evklite hpmicro/hpm6800evk… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:i386-unknown RTT_TOOL_CHAIN:sourcery-i386-unknown-elf SUB_RTT_BSP:[x86]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:llvm-arm RTT_TOOL_CHAIN:llvm-arm SUB_RTT_BSP:[stm32/stm32l475-atk-pandora]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:mips RTT_TOOL_CHAIN:sourcery-mips SUB_RTT_BSP:[loongson/ls1bdev loongson/ls2kdev loongson/ls1cdev]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:nordic(yml) RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[nrf5x/nrf51822 nrf5x/nrf52832 nrf5x/nrf52833 nrf5x/nrf52840 nrf5x/nrf5340]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:nuvoton RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[nuvoton/numaker-pfm-m487 nuvoton/numaker-hmi-ma35d1 nuvoton/numaker-iot-m487 nuvoton/numaker-m032ki nuvoton/numaker-iot-m467 nuvoton/numaker-m467hj nuvoton/nk-n9h3… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:nxp_renesas RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[nxp/lpc/lpc55sxx/lpc55s69_nxp_evk nxp/lpc/lpc55sxx/lpc55s28_nxp_evk nxp/lpc/lpc55sxx/lpc55s06_nxp_evk nxp/lpc/lpc55sxx/lpc55s16_nxp_evk nxp/lpc/lpc55sxx/lpc55s… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:others_at32_hc32_ht32 RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[qemu-vexpress-a9 airm2m/air32f103 acm32/acm32f0x0-nucleo CME_M7 apollo2 asm9260t allwinner_tina ft32/ft32f072xb-starter mini2440 at91/at91sam9g45 at9… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:riscv-none RTT_TOOL_CHAIN:sourcery-riscv-none-embed SUB_RTT_BSP:[k210]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:riscv64-unknown RTT_TOOL_CHAIN:sourcery-riscv64-unknown-elf SUB_RTT_BSP:[bluetrum/ab32vg1-ab-prougen bouffalo_lab/bl60x bouffalo_lab/bl70x]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:simulator RTT_TOOL_CHAIN:gcc SUB_RTT_BSP:[simulator]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:stm32_f2_f4 RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[stm32/stm32f207-st-nucleo stm32/stm32f302-st-nucleo stm32/stm32f334-st-nucleo stm32/stm32f401-st-nucleo stm32/stm32f401-weact-blackpill stm32/stm32f405-smdz-br… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:stm32_f7_g0_h7_mp15_u5_h5_wb5 RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[stm32/stm32f746-st-disco stm32/stm32f746-st-nucleo stm32/stm32f767-atk-apollo stm32/stm32f767-fire-challenger-v1 stm32/stm32f767-st-nucleo st… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:stm32l4_f0_f1 RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[stm32/stm32l4r5-st-nucleo stm32/stm32l4r9-st-eval stm32/stm32l4r9-st-sensortile-box stm32/stm32l010-st-nucleo stm32/stm32l053-st-nucleo stm32/stm32l412-st-nu… (push) Waiting to run
BSP compilation with more drivers / BSP Compilation with More Drivers (push) Waiting to run
pkgs_test / change (push) Waiting to run
ToolsCI / Tools (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:cpp11/cpp11.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:components/cpp11]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/atomic.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/atomic]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/atomic.conf QEMU_ARCH:riscv64 QEMU_MACHINE:virt RTT_BSP:bsp/qemu-virt64-riscv RUN:yes SD_FILE:None UTEST:kernel/atomic/riscv64]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/atomic_c11.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/atomic_c11]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/atomic_c11.conf QEMU_ARCH:riscv64 QEMU_MACHINE:virt RTT_BSP:bsp/qemu-virt64-riscv RUN:yes SD_FILE:None UTEST:kernel/atomic_c11/riscv64]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/device.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/device]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/ipc.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/ipc]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/irq.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/irq]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/mem.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/mem]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/mem.conf QEMU_ARCH:riscv64 QEMU_MACHINE:virt RTT_BSP:bsp/qemu-virt64-riscv RUN:yes SD_FILE:None UTEST:kernel/mem/riscv64]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/thread.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/thread]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:kernel/timer.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:kernel/timer]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:rtsmart/base.conf QEMU_ARCH:aarch64 QEMU_MACHINE:virt RTT_BSP:bsp/qemu-virt64-aarch64 RUN:no SD_FILE:sd.bin UTEST:rtsmart/aarch64]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:rtsmart/base.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:no SD_FILE:sd.bin UTEST:rtsmart/arm]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:rtsmart/base.conf QEMU_ARCH:riscv64 QEMU_MACHINE:virt RTT_BSP:bsp/qemu-virt64-riscv RUN:yes SD_FILE:None UTEST:rtsmart/riscv64]) (push) Waiting to run
AutoTestCI / ${{ matrix.legs.UTEST }} (map[CONFIG_FILE:utest_self/self.conf QEMU_ARCH:arm QEMU_MACHINE:vexpress-a9 RTT_BSP:bsp/qemu-vexpress-a9 RUN:yes SD_FILE:sd.bin UTEST:components/utest]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:ESP32C3 RTT_TOOL_CHAIN:sourcery-riscv32-esp32 SUB_RTT_BSP:[ESP32_C3]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:Infineon_TI_microchip RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[Infineon/psoc6-cy8ckit-062S2-43012 Infineon/psoc6-cy8ckit-062-BLE Infineon/psoc6-cy8ckit-062s4 Infineon/psoc6-cy8ckit-062-WIFI-BT Infineon/psoc6-cy8c… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:RT-Thread Online Packages (STM32F407 RT-Spark) RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[stm32/stm32f407-rt-spark]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:RTduino/Arduino Libraries (Raspberry Pico) RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[raspberry-pico]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:RTduino/Arduino Libraries (STM32F412 Nucleo) RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[stm32/stm32f412-st-nucleo]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:aarch64 RTT_TOOL_CHAIN:sourcery-aarch64 SUB_RTT_BSP:[qemu-virt64-aarch64 raspberry-pi/raspi3-64 raspberry-pi/raspi4-64 phytium/aarch64]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:gd32_n32_apm32 RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[gd32/arm/gd32103c-eval gd32/arm/gd32105c-eval gd32/arm/gd32105r-start gd32/arm/gd32107c-eval gd32/arm/gd32205r-start gd32/arm/gd32207i-eval gd32/arm/gd32303… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:hpmicro RTT_TOOL_CHAIN:RISC-V-GCC-RV32 SUB_RTT_BSP:[hpmicro/hpm6750evkmini hpmicro/hpm6750evk hpmicro/hpm6750evk2 hpmicro/hpm6300evk hpmicro/hpm6200evk hpmicro/hpm5300evk hpmicro/hpm5301evklite hpmicro/hpm6800evk… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:i386-unknown RTT_TOOL_CHAIN:sourcery-i386-unknown-elf SUB_RTT_BSP:[x86]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:llvm-arm RTT_TOOL_CHAIN:llvm-arm SUB_RTT_BSP:[stm32/stm32l475-atk-pandora]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:mips RTT_TOOL_CHAIN:sourcery-mips SUB_RTT_BSP:[loongson/ls1bdev loongson/ls2kdev loongson/ls1cdev]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:nordic(yml) RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[nrf5x/nrf51822 nrf5x/nrf52832 nrf5x/nrf52833 nrf5x/nrf52840 nrf5x/nrf5340]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:nuvoton RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[nuvoton/numaker-pfm-m487 nuvoton/numaker-hmi-ma35d1 nuvoton/numaker-iot-m487 nuvoton/numaker-m032ki nuvoton/numaker-iot-m467 nuvoton/numaker-m467hj nuvoton/nk-n9h3… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:nxp_renesas RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[nxp/lpc/lpc55sxx/lpc55s69_nxp_evk nxp/lpc/lpc55sxx/lpc55s28_nxp_evk nxp/lpc/lpc55sxx/lpc55s06_nxp_evk nxp/lpc/lpc55sxx/lpc55s16_nxp_evk nxp/lpc/lpc55sxx/lpc55s… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:others_at32_hc32_ht32 RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[qemu-vexpress-a9 airm2m/air32f103 acm32/acm32f0x0-nucleo CME_M7 apollo2 asm9260t allwinner_tina ft32/ft32f072xb-starter mini2440 at91/at91sam9g45 at9… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:riscv-none RTT_TOOL_CHAIN:sourcery-riscv-none-embed SUB_RTT_BSP:[k210]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:riscv64-unknown RTT_TOOL_CHAIN:sourcery-riscv64-unknown-elf SUB_RTT_BSP:[bluetrum/ab32vg1-ab-prougen bouffalo_lab/bl60x bouffalo_lab/bl70x]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:simulator RTT_TOOL_CHAIN:gcc SUB_RTT_BSP:[simulator]]) (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:stm32_f2_f4 RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[stm32/stm32f207-st-nucleo stm32/stm32f302-st-nucleo stm32/stm32f334-st-nucleo stm32/stm32f401-st-nucleo stm32/stm32f401-weact-blackpill stm32/stm32f405-smdz-br… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:stm32_f7_g0_h7_mp15_u5_h5_wb5 RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[stm32/stm32f746-st-disco stm32/stm32f746-st-nucleo stm32/stm32f767-atk-apollo stm32/stm32f767-fire-challenger-v1 stm32/stm32f767-st-nucleo st… (push) Waiting to run
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (map[RTT_BSP:stm32l4_f0_f1 RTT_TOOL_CHAIN:sourcery-arm SUB_RTT_BSP:[stm32/stm32l4r5-st-nucleo stm32/stm32l4r9-st-eval stm32/stm32l4r9-st-sensortile-box stm32/stm32l010-st-nucleo stm32/stm32l053-st-nucleo stm32/stm32l412-st-nu… (push) Waiting to run
BSP compilation with more drivers / BSP Compilation with More Drivers (push) Waiting to run
pkgs_test / change (push) Waiting to run
This commit is contained in:
@@ -25,10 +25,6 @@ if GetDepend(['BSP_USING_WDT']):
|
||||
if GetDepend(['BSP_USING_ONCHIP_RTC']):
|
||||
src += ['drv_rtc.c']
|
||||
|
||||
if GetDepend(['BSP_USING_SOFT_I2C']):
|
||||
if GetDepend('BSP_USING_I2C0') or GetDepend('BSP_USING_I2C1') or GetDepend('BSP_USING_I2C2'):
|
||||
src += ['drv_soft_i2c.c']
|
||||
|
||||
if GetDepend(['BSP_USING_HW_I2C']):
|
||||
src += ['drv_i2c.c']
|
||||
|
||||
|
||||
@@ -1,232 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2006-2021, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2021-07-29 KyleChan first version
|
||||
*/
|
||||
|
||||
#include "board.h"
|
||||
#include "drv_soft_i2c.h"
|
||||
#include "drv_config.h"
|
||||
|
||||
#ifdef BSP_USING_SOFT_I2C
|
||||
|
||||
#define DBG_TAG "drv.i2c"
|
||||
#ifdef DRV_DEBUG
|
||||
#define DBG_LVL DBG_LOG
|
||||
#else
|
||||
#define DBG_LVL DBG_INFO
|
||||
#endif /* DRV_DEBUG */
|
||||
|
||||
#if !defined(BSP_USING_I2C0) && !defined(BSP_USING_I2C1) && !defined(BSP_USING_I2C2)
|
||||
#error "Please define at least one BSP_USING_I2Cx"
|
||||
/* this driver can be disabled at menuconfig -> RT-Thread Components -> Device Drivers */
|
||||
#endif
|
||||
|
||||
static const struct ra_soft_i2c_config soft_i2c_config[] =
|
||||
{
|
||||
#ifdef BSP_USING_I2C0
|
||||
I2C0_BUS_CONFIG,
|
||||
#endif
|
||||
#ifdef BSP_USING_I2C1
|
||||
I2C1_BUS_CONFIG,
|
||||
#endif
|
||||
#ifdef BSP_USING_I2C2
|
||||
I2C2_BUS_CONFIG,
|
||||
#endif
|
||||
};
|
||||
|
||||
static struct ra_i2c i2c_obj[sizeof(soft_i2c_config) / sizeof(soft_i2c_config[0])];
|
||||
|
||||
/**
|
||||
* This function initializes the i2c pin.
|
||||
*
|
||||
* @param ra i2c dirver class.
|
||||
*/
|
||||
static void ra_i2c_gpio_init(struct ra_i2c *i2c)
|
||||
{
|
||||
struct ra_soft_i2c_config *cfg = (struct ra_soft_i2c_config *)i2c->ops.data;
|
||||
|
||||
rt_pin_mode(cfg->scl, PIN_MODE_OUTPUT_OD);
|
||||
rt_pin_mode(cfg->sda, PIN_MODE_OUTPUT_OD);
|
||||
|
||||
rt_pin_write(cfg->scl, PIN_HIGH);
|
||||
rt_pin_write(cfg->sda, PIN_HIGH);
|
||||
}
|
||||
|
||||
static void ra_i2c_pin_init(void)
|
||||
{
|
||||
rt_size_t obj_num = sizeof(i2c_obj) / sizeof(struct ra_i2c);
|
||||
|
||||
for(rt_size_t i = 0; i < obj_num; i++)
|
||||
{
|
||||
ra_i2c_gpio_init(&i2c_obj[i]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function sets the sda pin.
|
||||
*
|
||||
* @param ra config class.
|
||||
* @param The sda pin state.
|
||||
*/
|
||||
static void ra_set_sda(void *data, rt_int32_t state)
|
||||
{
|
||||
struct ra_soft_i2c_config *cfg = (struct ra_soft_i2c_config *)data;
|
||||
if (state)
|
||||
{
|
||||
rt_pin_write(cfg->sda, PIN_HIGH);
|
||||
}
|
||||
else
|
||||
{
|
||||
rt_pin_write(cfg->sda, PIN_LOW);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function sets the scl pin.
|
||||
*
|
||||
* @param ra config class.
|
||||
* @param The scl pin state.
|
||||
*/
|
||||
static void ra_set_scl(void *data, rt_int32_t state)
|
||||
{
|
||||
struct ra_soft_i2c_config *cfg = (struct ra_soft_i2c_config *)data;
|
||||
if (state)
|
||||
{
|
||||
rt_pin_write(cfg->scl, PIN_HIGH);
|
||||
}
|
||||
else
|
||||
{
|
||||
rt_pin_write(cfg->scl, PIN_LOW);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function gets the sda pin state.
|
||||
*
|
||||
* @param The sda pin state.
|
||||
*/
|
||||
static rt_int32_t ra_get_sda(void *data)
|
||||
{
|
||||
struct ra_soft_i2c_config *cfg = (struct ra_soft_i2c_config *)data;
|
||||
return rt_pin_read(cfg->sda);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function gets the scl pin state.
|
||||
*
|
||||
* @param The scl pin state.
|
||||
*/
|
||||
static rt_int32_t ra_get_scl(void *data)
|
||||
{
|
||||
struct ra_soft_i2c_config *cfg = (struct ra_soft_i2c_config *)data;
|
||||
return rt_pin_read(cfg->scl);
|
||||
}
|
||||
/**
|
||||
* The time delay function.
|
||||
*
|
||||
* @param microseconds.
|
||||
*/
|
||||
static void ra_udelay(rt_uint32_t us)
|
||||
{
|
||||
rt_uint32_t ticks;
|
||||
rt_uint32_t told, tnow, tcnt = 0;
|
||||
rt_uint32_t reload = SysTick->LOAD;
|
||||
|
||||
ticks = us * reload / (1000000 / RT_TICK_PER_SECOND);
|
||||
told = SysTick->VAL;
|
||||
while (1)
|
||||
{
|
||||
tnow = SysTick->VAL;
|
||||
if (tnow != told)
|
||||
{
|
||||
if (tnow < told)
|
||||
{
|
||||
tcnt += told - tnow;
|
||||
}
|
||||
else
|
||||
{
|
||||
tcnt += reload - tnow + told;
|
||||
}
|
||||
told = tnow;
|
||||
if (tcnt >= ticks)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static const struct rt_i2c_bit_ops ra_bit_ops_default =
|
||||
{
|
||||
.data = RT_NULL,
|
||||
.pin_init = ra_i2c_pin_init,
|
||||
.set_sda = ra_set_sda,
|
||||
.set_scl = ra_set_scl,
|
||||
.get_sda = ra_get_sda,
|
||||
.get_scl = ra_get_scl,
|
||||
.udelay = ra_udelay,
|
||||
.delay_us = 1,
|
||||
.timeout = 100,
|
||||
.i2c_pin_init_flag = RT_FALSE
|
||||
};
|
||||
|
||||
/**
|
||||
* if i2c is locked, this function will unlock it
|
||||
*
|
||||
* @param ra config class
|
||||
*
|
||||
* @return RT_EOK indicates successful unlock.
|
||||
*/
|
||||
static rt_err_t ra_i2c_bus_unlock(const struct ra_soft_i2c_config *cfg)
|
||||
{
|
||||
rt_int32_t i = 0;
|
||||
|
||||
if (PIN_LOW == rt_pin_read(cfg->sda))
|
||||
{
|
||||
while (i++ < 9)
|
||||
{
|
||||
rt_pin_write(cfg->scl, PIN_HIGH);
|
||||
ra_udelay(100);
|
||||
rt_pin_write(cfg->scl, PIN_LOW);
|
||||
ra_udelay(100);
|
||||
}
|
||||
}
|
||||
if (PIN_LOW == rt_pin_read(cfg->sda))
|
||||
{
|
||||
return -RT_ERROR;
|
||||
}
|
||||
|
||||
return RT_EOK;
|
||||
}
|
||||
|
||||
/* I2C initialization function */
|
||||
int rt_hw_i2c_init(void)
|
||||
{
|
||||
rt_size_t obj_num = sizeof(i2c_obj) / sizeof(struct ra_i2c);
|
||||
rt_err_t result;
|
||||
|
||||
for (rt_size_t i = 0; i < obj_num; i++)
|
||||
{
|
||||
i2c_obj[i].ops = ra_bit_ops_default;
|
||||
i2c_obj[i].ops.data = (void *)&soft_i2c_config[i];
|
||||
i2c_obj[i].i2c_bus.priv = &i2c_obj[i].ops;
|
||||
result = rt_i2c_bit_add_bus(&i2c_obj[i].i2c_bus, soft_i2c_config[i].bus_name);
|
||||
RT_ASSERT(result == RT_EOK);
|
||||
ra_i2c_bus_unlock(&soft_i2c_config[i]);
|
||||
|
||||
LOG_D("software simulation %s init done, pin scl: %d, pin sda %d",
|
||||
soft_i2c_config[i].bus_name,
|
||||
soft_i2c_config[i].scl,
|
||||
soft_i2c_config[i].sda);
|
||||
}
|
||||
|
||||
return RT_EOK;
|
||||
}
|
||||
INIT_BOARD_EXPORT(rt_hw_i2c_init);
|
||||
|
||||
#endif /* BSP_USING_SOFT_I2C */
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2006-2021, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2021-07-29 KyleChan first version
|
||||
*/
|
||||
|
||||
#ifndef __DRV_I2C__
|
||||
#define __DRV_I2C__
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rthw.h>
|
||||
#include <rtdevice.h>
|
||||
#include <rtdbg.h>
|
||||
|
||||
/* ra config class */
|
||||
struct ra_soft_i2c_config
|
||||
{
|
||||
rt_uint32_t scl;
|
||||
rt_uint32_t sda;
|
||||
const char *bus_name;
|
||||
};
|
||||
/* ra i2c dirver class */
|
||||
struct ra_i2c
|
||||
{
|
||||
struct rt_i2c_bit_ops ops;
|
||||
struct rt_i2c_bus_device i2c_bus;
|
||||
};
|
||||
|
||||
#ifdef BSP_USING_I2C0
|
||||
#define I2C0_BUS_CONFIG \
|
||||
{ \
|
||||
.scl = BSP_I2C0_SCL_PIN, \
|
||||
.sda = BSP_I2C0_SDA_PIN, \
|
||||
.bus_name = "i2c0", \
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef BSP_USING_I2C1
|
||||
#define I2C1_BUS_CONFIG \
|
||||
{ \
|
||||
.scl = BSP_I2C1_SCL_PIN, \
|
||||
.sda = BSP_I2C1_SDA_PIN, \
|
||||
.bus_name = "i2c1", \
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef BSP_USING_I2C2
|
||||
#define I2C2_BUS_CONFIG \
|
||||
{ \
|
||||
.scl = BSP_I2C2_SCL_PIN, \
|
||||
.sda = BSP_I2C2_SDA_PIN, \
|
||||
.bus_name = "i2c2", \
|
||||
}
|
||||
#endif
|
||||
|
||||
int rt_hw_i2c_init(void);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,16 @@
|
||||
devices.strict:
|
||||
depend_scons_arg:
|
||||
- '--strict'
|
||||
devices.gpio:
|
||||
depends:
|
||||
- devices.strict
|
||||
kconfig:
|
||||
- CONFIG_BSP_USING_GPIO=y
|
||||
devices.uart:
|
||||
kconfig:
|
||||
- CONFIG_BSP_USING_UART=y
|
||||
devices.soft_i2c:
|
||||
kconfig:
|
||||
- CONFIG_RT_USING_I2C=y
|
||||
- CONFIG_RT_USING_SOFT_I2C=y
|
||||
- CONFIG_RT_USING_SOFT_I2C0=y
|
||||
File diff suppressed because it is too large
Load Diff
@@ -20,8 +20,9 @@ menu "Hardware Drivers Config"
|
||||
select BSP_USING_PWM0
|
||||
select BSP_USING_PWM2
|
||||
select BSP_USING_PWM8
|
||||
select BSP_USING_SOFT_I2C
|
||||
select BSP_USING_I2C0
|
||||
select RT_USING_I2C
|
||||
select RT_USING_SOFT_I2C
|
||||
select RT_USING_SOFT_I2C0
|
||||
select BSP_USING_SOFT_SPI
|
||||
select BSP_USING_SOFT_SPI1
|
||||
select RTDUINO_USING_WIRE
|
||||
@@ -77,8 +78,9 @@ menu "Hardware Drivers Config"
|
||||
bool "Enable Touch GT911"
|
||||
select RT_USING_TOUCH
|
||||
select RT_TOUCH_PIN_IRQ
|
||||
select BSP_USING_SOFT_I2C
|
||||
select BSP_USING_I2C1
|
||||
select RT_USING_I2C
|
||||
select RT_USING_SOFT_I2C
|
||||
select RT_USING_SOFT_I2C1
|
||||
default n
|
||||
|
||||
menuconfig BSP_USING_LVGL
|
||||
@@ -223,44 +225,67 @@ menu "Hardware Drivers Config"
|
||||
endif
|
||||
endif
|
||||
|
||||
menuconfig BSP_USING_SOFT_I2C
|
||||
bool "Enable software I2C bus"
|
||||
select RT_USING_I2C
|
||||
select RT_USING_I2C_BITOPS
|
||||
select RT_USING_PIN
|
||||
default n
|
||||
if BSP_USING_SOFT_I2C
|
||||
config BSP_USING_SOFT_I2C
|
||||
menuconfig BSP_USING_I2C0
|
||||
bool "Enable I2C0 Bus (software simulation)"
|
||||
default n
|
||||
if BSP_USING_I2C0
|
||||
comment "Please refer to the 'bsp_io.h' file to configure the pins"
|
||||
config BSP_I2C0_SCL_PIN
|
||||
hex "i2c0 scl pin number (hex)"
|
||||
range 0x0000 0xFFFF
|
||||
default 0x202
|
||||
config BSP_I2C0_SDA_PIN
|
||||
hex "i2c0 sda pin number (hex)"
|
||||
range 0x0000 0xFFFF
|
||||
default 0x203
|
||||
endif
|
||||
|
||||
menuconfig BSP_USING_I2C1
|
||||
bool "Enable I2C1 Bus (software simulation)"
|
||||
default n
|
||||
if BSP_USING_I2C1
|
||||
comment "Please refer to the 'bsp_io.h' file to configure the pins"
|
||||
config BSP_I2C1_SCL_PIN
|
||||
hex "i2c1 scl pin number (hex)"
|
||||
range 0x0000 0xFFFF
|
||||
default 0x202
|
||||
config BSP_I2C1_SDA_PIN
|
||||
hex "i2c1 sda pin number (hex)"
|
||||
range 0x0000 0xFFFF
|
||||
default 0x203
|
||||
endif
|
||||
endif
|
||||
config RT_USING_I2C
|
||||
bool
|
||||
default n
|
||||
if RT_USING_I2C
|
||||
config RT_USING_SOFT_I2C
|
||||
bool "Enable soft I2C BUS"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C
|
||||
menuconfig RT_USING_SOFT_I2C0
|
||||
bool "Enable I2C0 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C0
|
||||
comment "Please refer to the 'bsp_io.h' file to configure the pins"
|
||||
config RT_SOFT_I2C0_SCL_PIN
|
||||
hex "i2c0 scl pin number (hex)"
|
||||
range 0x0000 0xFFFF
|
||||
default 0x202
|
||||
config RT_SOFT_I2C0_SDA_PIN
|
||||
hex "i2c0 sda pin number (hex)"
|
||||
range 0x0000 0xFFFF
|
||||
default 0x203
|
||||
config RT_SOFT_I2C0_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c0"
|
||||
config RT_SOFT_I2C0_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C0_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
|
||||
menuconfig RT_USING_SOFT_I2C1
|
||||
bool "Enable I2C1 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C1
|
||||
comment "Please refer to the 'bsp_io.h' file to configure the pins"
|
||||
config RT_SOFT_I2C1_SCL_PIN
|
||||
hex "i2c1 scl pin number (hex)"
|
||||
range 0x0000 0xFFFF
|
||||
default 0x202
|
||||
config RT_SOFT_I2C1_SDA_PIN
|
||||
hex "i2c1 sda pin number (hex)"
|
||||
range 0x0000 0xFFFF
|
||||
default 0x203
|
||||
config RT_SOFT_I2C1_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c1"
|
||||
config RT_SOFT_I2C1_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C1_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
menuconfig BSP_USING_ADC
|
||||
bool "Enable ADC"
|
||||
|
||||
@@ -1,11 +1,66 @@
|
||||
#ifndef RT_CONFIG_H__
|
||||
#define RT_CONFIG_H__
|
||||
|
||||
/* Automatically generated file; DO NOT EDIT. */
|
||||
/* RT-Thread Configuration */
|
||||
|
||||
/* RT-Thread Kernel */
|
||||
|
||||
/* klibc options */
|
||||
|
||||
/* rt_vsnprintf options */
|
||||
|
||||
/* end of rt_vsnprintf options */
|
||||
|
||||
/* rt_vsscanf options */
|
||||
|
||||
/* end of rt_vsscanf options */
|
||||
|
||||
/* rt_memset options */
|
||||
|
||||
/* end of rt_memset options */
|
||||
|
||||
/* rt_memcpy options */
|
||||
|
||||
/* end of rt_memcpy options */
|
||||
|
||||
/* rt_memmove options */
|
||||
|
||||
/* end of rt_memmove options */
|
||||
|
||||
/* rt_memcmp options */
|
||||
|
||||
/* end of rt_memcmp options */
|
||||
|
||||
/* rt_strstr options */
|
||||
|
||||
/* end of rt_strstr options */
|
||||
|
||||
/* rt_strcasecmp options */
|
||||
|
||||
/* end of rt_strcasecmp options */
|
||||
|
||||
/* rt_strncpy options */
|
||||
|
||||
/* end of rt_strncpy options */
|
||||
|
||||
/* rt_strcpy options */
|
||||
|
||||
/* end of rt_strcpy options */
|
||||
|
||||
/* rt_strncmp options */
|
||||
|
||||
/* end of rt_strncmp options */
|
||||
|
||||
/* rt_strcmp options */
|
||||
|
||||
/* end of rt_strcmp options */
|
||||
|
||||
/* rt_strlen options */
|
||||
|
||||
/* end of rt_strlen options */
|
||||
|
||||
/* rt_strnlen options */
|
||||
|
||||
/* end of rt_strnlen options */
|
||||
/* end of klibc options */
|
||||
#define RT_NAME_MAX 8
|
||||
#define RT_CPUS_NR 1
|
||||
#define RT_ALIGN_SIZE 8
|
||||
@@ -22,12 +77,11 @@
|
||||
#define RT_TIMER_THREAD_PRIO 4
|
||||
#define RT_TIMER_THREAD_STACK_SIZE 512
|
||||
|
||||
/* kservice optimization */
|
||||
|
||||
|
||||
/* klibc optimization */
|
||||
/* kservice options */
|
||||
|
||||
/* end of kservice options */
|
||||
#define RT_USING_DEBUG
|
||||
#define RT_DEBUGING_ASSERT
|
||||
#define RT_DEBUGING_COLOR
|
||||
#define RT_DEBUGING_CONTEXT
|
||||
|
||||
@@ -38,18 +92,21 @@
|
||||
#define RT_USING_EVENT
|
||||
#define RT_USING_MAILBOX
|
||||
#define RT_USING_MESSAGEQUEUE
|
||||
/* end of Inter-Thread communication */
|
||||
|
||||
/* Memory Management */
|
||||
|
||||
#define RT_USING_SMALL_MEM
|
||||
#define RT_USING_SMALL_MEM_AS_HEAP
|
||||
#define RT_USING_HEAP
|
||||
/* end of Memory Management */
|
||||
#define RT_USING_DEVICE
|
||||
#define RT_USING_CONSOLE
|
||||
#define RT_CONSOLEBUF_SIZE 128
|
||||
#define RT_CONSOLE_DEVICE_NAME "uart9"
|
||||
#define RT_VER_NUM 0x50200
|
||||
#define RT_BACKTRACE_LEVEL_MAX_NR 32
|
||||
/* end of RT-Thread Kernel */
|
||||
#define RT_USING_HW_ATOMIC
|
||||
#define RT_USING_CPU_FFS
|
||||
#define ARCH_ARM
|
||||
@@ -79,6 +136,7 @@
|
||||
|
||||
/* DFS: device virtual file system */
|
||||
|
||||
/* end of DFS: device virtual file system */
|
||||
|
||||
/* Device Drivers */
|
||||
|
||||
@@ -88,9 +146,7 @@
|
||||
#define RT_USING_SERIAL_V2
|
||||
#define RT_SERIAL_USING_DMA
|
||||
#define RT_USING_PIN
|
||||
|
||||
/* Using USB */
|
||||
|
||||
/* end of Device Drivers */
|
||||
|
||||
/* C/C++ and POSIX layer */
|
||||
|
||||
@@ -102,6 +158,8 @@
|
||||
#define RT_LIBC_TZ_DEFAULT_HOUR 8
|
||||
#define RT_LIBC_TZ_DEFAULT_MIN 0
|
||||
#define RT_LIBC_TZ_DEFAULT_SEC 0
|
||||
/* end of Timezone and Daylight Saving Time */
|
||||
/* end of ISO-ANSI C layer */
|
||||
|
||||
/* POSIX (Portable Operating System Interface) layer */
|
||||
|
||||
@@ -111,18 +169,30 @@
|
||||
|
||||
/* Socket is in the 'Network' category */
|
||||
|
||||
/* end of Interprocess Communication (IPC) */
|
||||
/* end of POSIX (Portable Operating System Interface) layer */
|
||||
/* end of C/C++ and POSIX layer */
|
||||
|
||||
/* Network */
|
||||
|
||||
/* end of Network */
|
||||
|
||||
/* Memory protection */
|
||||
|
||||
/* end of Memory protection */
|
||||
|
||||
/* Utilities */
|
||||
|
||||
/* end of Utilities */
|
||||
|
||||
/* Using USB legacy version */
|
||||
|
||||
/* end of Using USB legacy version */
|
||||
/* end of RT-Thread Components */
|
||||
|
||||
/* RT-Thread Utestcases */
|
||||
|
||||
/* end of RT-Thread Utestcases */
|
||||
|
||||
/* RT-Thread online packages */
|
||||
|
||||
@@ -133,119 +203,173 @@
|
||||
|
||||
/* Marvell WiFi */
|
||||
|
||||
/* end of Marvell WiFi */
|
||||
|
||||
/* Wiced WiFi */
|
||||
|
||||
/* end of Wiced WiFi */
|
||||
|
||||
/* CYW43012 WiFi */
|
||||
|
||||
/* end of CYW43012 WiFi */
|
||||
|
||||
/* BL808 WiFi */
|
||||
|
||||
/* end of BL808 WiFi */
|
||||
|
||||
/* CYW43439 WiFi */
|
||||
|
||||
/* end of CYW43439 WiFi */
|
||||
/* end of Wi-Fi */
|
||||
|
||||
/* IoT Cloud */
|
||||
|
||||
/* end of IoT Cloud */
|
||||
/* end of IoT - internet of things */
|
||||
|
||||
/* security packages */
|
||||
|
||||
/* end of security packages */
|
||||
|
||||
/* language packages */
|
||||
|
||||
/* JSON: JavaScript Object Notation, a lightweight data-interchange format */
|
||||
|
||||
/* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
|
||||
|
||||
/* XML: Extensible Markup Language */
|
||||
|
||||
/* end of XML: Extensible Markup Language */
|
||||
/* end of language packages */
|
||||
|
||||
/* multimedia packages */
|
||||
|
||||
/* LVGL: powerful and easy-to-use embedded GUI library */
|
||||
|
||||
/* end of LVGL: powerful and easy-to-use embedded GUI library */
|
||||
|
||||
/* u8g2: a monochrome graphic library */
|
||||
|
||||
/* end of u8g2: a monochrome graphic library */
|
||||
/* end of multimedia packages */
|
||||
|
||||
/* tools packages */
|
||||
|
||||
/* end of tools packages */
|
||||
|
||||
/* system packages */
|
||||
|
||||
/* enhanced kernel services */
|
||||
|
||||
/* end of enhanced kernel services */
|
||||
|
||||
/* acceleration: Assembly language or algorithmic acceleration packages */
|
||||
|
||||
/* end of acceleration: Assembly language or algorithmic acceleration packages */
|
||||
|
||||
/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
|
||||
|
||||
/* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
|
||||
|
||||
/* Micrium: Micrium software products porting for RT-Thread */
|
||||
|
||||
/* end of Micrium: Micrium software products porting for RT-Thread */
|
||||
/* end of system packages */
|
||||
|
||||
/* peripheral libraries and drivers */
|
||||
|
||||
/* sensors drivers */
|
||||
/* HAL & SDK Drivers */
|
||||
|
||||
/* STM32 HAL & SDK Drivers */
|
||||
|
||||
/* touch drivers */
|
||||
/* end of STM32 HAL & SDK Drivers */
|
||||
|
||||
/* Infineon HAL Packages */
|
||||
|
||||
/* end of Infineon HAL Packages */
|
||||
|
||||
/* Kendryte SDK */
|
||||
|
||||
/* end of Kendryte SDK */
|
||||
/* end of HAL & SDK Drivers */
|
||||
|
||||
/* sensors drivers */
|
||||
|
||||
/* end of sensors drivers */
|
||||
|
||||
/* touch drivers */
|
||||
|
||||
/* end of touch drivers */
|
||||
/* end of peripheral libraries and drivers */
|
||||
|
||||
/* AI packages */
|
||||
|
||||
/* end of AI packages */
|
||||
|
||||
/* Signal Processing and Control Algorithm Packages */
|
||||
|
||||
/* end of Signal Processing and Control Algorithm Packages */
|
||||
|
||||
/* miscellaneous packages */
|
||||
|
||||
/* project laboratory */
|
||||
|
||||
/* end of project laboratory */
|
||||
|
||||
/* samples: kernel and components samples */
|
||||
|
||||
/* end of samples: kernel and components samples */
|
||||
|
||||
/* entertainment: terminal games and other interesting software packages */
|
||||
|
||||
/* end of entertainment: terminal games and other interesting software packages */
|
||||
/* end of miscellaneous packages */
|
||||
|
||||
/* Arduino libraries */
|
||||
|
||||
|
||||
/* Projects and Demos */
|
||||
|
||||
/* end of Projects and Demos */
|
||||
|
||||
/* Sensors */
|
||||
|
||||
/* end of Sensors */
|
||||
|
||||
/* Display */
|
||||
|
||||
/* end of Display */
|
||||
|
||||
/* Timing */
|
||||
|
||||
/* end of Timing */
|
||||
|
||||
/* Data Processing */
|
||||
|
||||
/* end of Data Processing */
|
||||
|
||||
/* Data Storage */
|
||||
|
||||
/* Communication */
|
||||
|
||||
/* end of Communication */
|
||||
|
||||
/* Device Control */
|
||||
|
||||
/* end of Device Control */
|
||||
|
||||
/* Other */
|
||||
|
||||
/* end of Other */
|
||||
|
||||
/* Signal IO */
|
||||
|
||||
/* end of Signal IO */
|
||||
|
||||
/* Uncategorized */
|
||||
|
||||
/* end of Arduino libraries */
|
||||
/* end of RT-Thread online packages */
|
||||
#define SOC_FAMILY_RENESAS
|
||||
#define SOC_SERIES_R7FA6M3
|
||||
|
||||
@@ -255,6 +379,7 @@
|
||||
|
||||
/* Onboard Peripheral Drivers */
|
||||
|
||||
/* end of Onboard Peripheral Drivers */
|
||||
|
||||
/* On-chip Peripheral Drivers */
|
||||
|
||||
@@ -263,8 +388,11 @@
|
||||
#define BSP_USING_UART9
|
||||
#define BSP_UART9_RX_BUFSIZE 256
|
||||
#define BSP_UART9_TX_BUFSIZE 0
|
||||
/* end of On-chip Peripheral Drivers */
|
||||
|
||||
/* Board extended module Drivers */
|
||||
|
||||
/* end of Board extended module Drivers */
|
||||
/* end of Hardware Drivers Config */
|
||||
|
||||
#endif
|
||||
|
||||
+219
-195
@@ -17,203 +17,227 @@ if RT_USING_I2C
|
||||
default n
|
||||
endif
|
||||
|
||||
config RT_USING_SOFT_I2C
|
||||
menuconfig RT_USING_SOFT_I2C
|
||||
bool "Use GPIO to soft simulate I2C"
|
||||
default n
|
||||
select RT_USING_PIN
|
||||
select RT_USING_I2C_BITOPS
|
||||
if RT_USING_SOFT_I2C
|
||||
config RT_USING_SOFT_I2C1
|
||||
bool "Enable I2C1 Bus (software simulation)"
|
||||
default y
|
||||
if RT_USING_SOFT_I2C1
|
||||
config RT_SOFT_I2C1_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 1
|
||||
config RT_SOFT_I2C1_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 2
|
||||
config RT_SOFT_I2C1_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c1"
|
||||
config RT_SOFT_I2C1_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C1_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
config RT_USING_SOFT_I2C2
|
||||
bool "Enable I2C2 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C2
|
||||
config RT_SOFT_I2C2_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 3
|
||||
config RT_SOFT_I2C2_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 4
|
||||
config RT_SOFT_I2C2_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c2"
|
||||
config RT_SOFT_I2C2_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C2_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
config RT_USING_SOFT_I2C3
|
||||
bool "Enable I2C3 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C3
|
||||
config RT_SOFT_I2C3_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 5
|
||||
config RT_SOFT_I2C3_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 6
|
||||
config RT_SOFT_I2C3_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c3"
|
||||
config RT_SOFT_I2C3_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C3_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
config RT_USING_SOFT_I2C4
|
||||
bool "Enable I2C4 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C4
|
||||
config RT_SOFT_I2C4_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 7
|
||||
config RT_SOFT_I2C4_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 8
|
||||
config RT_SOFT_I2C4_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c4"
|
||||
config RT_SOFT_I2C4_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C4_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
config RT_USING_SOFT_I2C5
|
||||
bool "Enable I2C5 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C5
|
||||
config RT_SOFT_I2C5_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 9
|
||||
config RT_SOFT_I2C5_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C5_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c5"
|
||||
config RT_SOFT_I2C5_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C5_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
config RT_USING_SOFT_I2C6
|
||||
bool "Enable I2C6 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C6
|
||||
config RT_SOFT_I2C6_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 11
|
||||
config RT_SOFT_I2C6_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 12
|
||||
config RT_SOFT_I2C6_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c6"
|
||||
config RT_SOFT_I2C6_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C6_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
config RT_USING_SOFT_I2C7
|
||||
bool "Enable I2C7 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C7
|
||||
config RT_SOFT_I2C7_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 13
|
||||
config RT_SOFT_I2C7_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 14
|
||||
config RT_SOFT_I2C7_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c7"
|
||||
config RT_SOFT_I2C7_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C7_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
config RT_USING_SOFT_I2C8
|
||||
bool "Enable I2C8 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C8
|
||||
config RT_SOFT_I2C8_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 15
|
||||
config RT_SOFT_I2C8_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 16
|
||||
config RT_SOFT_I2C8_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c8"
|
||||
config RT_SOFT_I2C8_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C8_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
endif
|
||||
if RT_USING_SOFT_I2C
|
||||
menuconfig RT_USING_SOFT_I2C0
|
||||
bool "Enable I2C0 Bus (software simulation)"
|
||||
default y
|
||||
if RT_USING_SOFT_I2C0
|
||||
config RT_SOFT_I2C0_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 1
|
||||
config RT_SOFT_I2C0_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 2
|
||||
config RT_SOFT_I2C0_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c0"
|
||||
config RT_SOFT_I2C0_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C0_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
menuconfig RT_USING_SOFT_I2C1
|
||||
bool "Enable I2C1 Bus (software simulation)"
|
||||
default y
|
||||
if RT_USING_SOFT_I2C1
|
||||
config RT_SOFT_I2C1_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 3
|
||||
config RT_SOFT_I2C1_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 4
|
||||
config RT_SOFT_I2C1_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c1"
|
||||
config RT_SOFT_I2C1_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C1_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
menuconfig RT_USING_SOFT_I2C2
|
||||
bool "Enable I2C2 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C2
|
||||
config RT_SOFT_I2C2_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 5
|
||||
config RT_SOFT_I2C2_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 6
|
||||
config RT_SOFT_I2C2_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c2"
|
||||
config RT_SOFT_I2C2_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C2_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
menuconfig RT_USING_SOFT_I2C3
|
||||
bool "Enable I2C3 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C3
|
||||
config RT_SOFT_I2C3_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 7
|
||||
config RT_SOFT_I2C3_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 8
|
||||
config RT_SOFT_I2C3_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c3"
|
||||
config RT_SOFT_I2C3_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C3_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
menuconfig RT_USING_SOFT_I2C4
|
||||
bool "Enable I2C4 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C4
|
||||
config RT_SOFT_I2C4_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 9
|
||||
config RT_SOFT_I2C4_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C4_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c4"
|
||||
config RT_SOFT_I2C4_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C4_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
menuconfig RT_USING_SOFT_I2C5
|
||||
bool "Enable I2C5 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C5
|
||||
config RT_SOFT_I2C5_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 11
|
||||
config RT_SOFT_I2C5_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 12
|
||||
config RT_SOFT_I2C5_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c5"
|
||||
config RT_SOFT_I2C5_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C5_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
menuconfig RT_USING_SOFT_I2C6
|
||||
bool "Enable I2C6 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C6
|
||||
config RT_SOFT_I2C6_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 13
|
||||
config RT_SOFT_I2C6_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 14
|
||||
config RT_SOFT_I2C6_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c6"
|
||||
config RT_SOFT_I2C6_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C6_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
menuconfig RT_USING_SOFT_I2C7
|
||||
bool "Enable I2C7 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C7
|
||||
config RT_SOFT_I2C7_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 15
|
||||
config RT_SOFT_I2C7_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 16
|
||||
config RT_SOFT_I2C7_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c7"
|
||||
config RT_SOFT_I2C7_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C7_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
menuconfig RT_USING_SOFT_I2C8
|
||||
bool "Enable I2C8 Bus (software simulation)"
|
||||
default n
|
||||
if RT_USING_SOFT_I2C8
|
||||
config RT_SOFT_I2C8_SCL_PIN
|
||||
int "SCL pin number"
|
||||
range 0 32767
|
||||
default 17
|
||||
config RT_SOFT_I2C8_SDA_PIN
|
||||
int "SDA pin number"
|
||||
range 0 32767
|
||||
default 18
|
||||
config RT_SOFT_I2C8_BUS_NAME
|
||||
string "Bus name"
|
||||
default "i2c8"
|
||||
config RT_SOFT_I2C8_TIMING_DELAY
|
||||
int "Timing delay (us)"
|
||||
range 0 32767
|
||||
default 10
|
||||
config RT_SOFT_I2C8_TIMING_TIMEOUT
|
||||
int "Timing timeout (tick)"
|
||||
range 0 32767
|
||||
default 10
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
#include <rtdevice.h>
|
||||
|
||||
#ifdef RT_USING_SOFT_I2C
|
||||
#if !defined(RT_USING_SOFT_I2C1) && !defined(RT_USING_SOFT_I2C2) &&\
|
||||
#if !defined(RT_USING_SOFT_I2C0) &&\
|
||||
!defined(RT_USING_SOFT_I2C1) && !defined(RT_USING_SOFT_I2C2) &&\
|
||||
!defined(RT_USING_SOFT_I2C3) && !defined(RT_USING_SOFT_I2C4) &&\
|
||||
!defined(RT_USING_SOFT_I2C5) && !defined(RT_USING_SOFT_I2C6) &&\
|
||||
!defined(RT_USING_SOFT_I2C7) && !defined(RT_USING_SOFT_I2C8)
|
||||
@@ -48,6 +49,15 @@ struct rt_soft_i2c
|
||||
|
||||
struct soft_i2c_config i2c_cfg[] =
|
||||
{
|
||||
#ifdef RT_USING_SOFT_I2C0
|
||||
{
|
||||
.scl_pin = RT_SOFT_I2C0_SCL_PIN,
|
||||
.sda_pin = RT_SOFT_I2C0_SDA_PIN,
|
||||
.bus_name = RT_SOFT_I2C0_BUS_NAME,
|
||||
.timing_delay = RT_SOFT_I2C0_TIMING_DELAY,
|
||||
.timing_timeout = RT_SOFT_I2C0_TIMING_TIMEOUT,
|
||||
},
|
||||
#endif //RT_USING_SOFT_I2C0
|
||||
#ifdef RT_USING_SOFT_I2C1
|
||||
{
|
||||
.scl_pin = RT_SOFT_I2C1_SCL_PIN,
|
||||
|
||||
Reference in New Issue
Block a user