gustavonihei opened a new pull request, #6538:
URL: https://github.com/apache/incubator-nuttx/pull/6538

   ## Summary
   This PR intends to add driver support for the I2C peripheral for the 
**ESP32-S3** chip.
   
   **Features**:
   - Operation currently restricted to Master mode only
   - Support for both I2C0 and I2C1
   - Support for Interrupts and Polled mode (`CONFIG_I2C_POLLED=y`)
   - Support for I2C Character device driver (`CONFIG_I2C_DRIVER=y`)
   
   ## Impact
   New feature for **ESP32-S3** chip.
   
   ## Testing
   `esp32s3-devkit:i2c`
   Using I2C tool (`CONFIG_SYSTEM_I2CTOOL`), the driver was validated via 
integration with an external BMP180 pressure sensor module, on both I2C0 and 
I2C1 interfaces.
   
   ```bash
   NuttShell (NSH) NuttX-10.3.0
   nsh> ls /dev
   /dev:
    console
    i2c0
    i2c1
    null
    ttyS0
   nsh> i2c get -a 77 -r d0
   i2cdrvr_ioctl: cmd=2101 arg=3ffb6370
   i2c_transfer: Message 0 transfer complete.
   i2c_transfer: Message 1 transfer complete.
   Elapsed time: 0
    1. STATUS: 3700c001 COUNT:   1 EVENT: SENDADDR  ( 1) PARM: 00000077 TIME: 0
    2. STATUS: 3700c001 COUNT:   1 EVENT: RCVMODEEN ( 3) PARM: 00000000 TIME: 0
    3. STATUS: 3700c101 COUNT:   1 EVENT: RCVBYTE   ( 4) PARM: 00000000 TIME: 0
    4. STATUS: 3700c001 COUNT:   1 EVENT: STOP      ( 5) PARM: 00000001 TIME: 0
   READ Bus: 0 Addr: 77 Subaddr: d0 Value: 55
   nsh> 
   ```
   
   


-- 
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]

Reply via email to