arch/xmc4 : i2c driver

Added lower half i2c driver
This commit is contained in:
adriendesp 2024-07-23 17:05:04 +02:00 committed by Xiang Xiao
parent c2127c0b88
commit cd4fdf27c5
4 changed files with 1071 additions and 1 deletions

View File

@ -51,6 +51,10 @@ if(CONFIG_XMC4_USCI_SPI)
list(APPEND SRCS xmc4_spi.c)
endif()
if(CONFIG_XMC4_USCI_I2C)
list(APPEND SRCS xmc4_i2c.c)
endif()
if(CONFIG_XMC4_PWM)
list(APPEND SRCS xmc4_pwm.c)
endif()

View File

@ -52,6 +52,10 @@ ifeq ($(CONFIG_XMC4_USCI_SPI),y)
CHIP_CSRCS += xmc4_spi.c
endif
ifeq ($(CONFIG_XMC4_USCI_I2C),y)
CHIP_CSRCS += xmc4_i2c.c
endif
ifeq ($(CONFIG_XMC4_ECAT),y)
CHIP_CSRCS += xmc4_ecat.c
endif

1063
arch/arm/src/xmc4/xmc4_i2c.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,6 @@
#include <nuttx/config.h>
#include <nuttx/i2c/i2c_master.h>
#include "hardware/xmc4_i2c.h"
/****************************************************************************
* Public Function Prototypes