mirror of
https://github.com/apache/nuttx.git
synced 2026-08-06 13:08:59 +00:00
arch/xmc4 : i2c driver
Added lower half i2c driver
This commit is contained in:
parent
c2127c0b88
commit
cd4fdf27c5
4 changed files with 1071 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
1063
arch/arm/src/xmc4/xmc4_i2c.c
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -27,7 +27,6 @@
|
|||
|
||||
#include <nuttx/config.h>
|
||||
#include <nuttx/i2c/i2c_master.h>
|
||||
#include "hardware/xmc4_i2c.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue