jarivanewijk opened a new pull request #4592: URL: https://github.com/apache/incubator-nuttx/pull/4592
## Summary Adds basic arch-level support for the LPI2C slave functionality on S32K1XX. No bells and whistles, just a basic implementation of the nuttx/i2c/i2c_slave.h interface. A driver or application that wants to implement an I2C slave still needs to initialize this driver, but that procedure is very similar to a standard I2C master. ## Impact The driver is separated from the "master" LPI2C driver. Both drivers may be used at the same time without interfering with each other. It should not affect any current applications, it does not (significantly) modify the existing LPI2C master. In the future it may be possible to combine the two drivers, which might be useful for S32K11X because it shares some resources between master and slave, which is not the case for S32K14X. Currently only supports S32K14X, some modifications/additions are required to also support S32K11X, for example because on S32K11X the master and slave share one interrupt. It currently triggers a warning when trying to build the driver when a S32K11X MCU is selected. ## Testing Tested with a S32K144EVB and a RDDRONE-BMS772 (https://github.com/NXPHoverGames/RDDRONE-BMS772), which already contains a basic I2C slave application that provides smart battery data. The BMS software may already be used as an example, but still requires some work to integrate it into mainline Apache NuttX. We will get to that sooner or later. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
