You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/06/28 20:51:42 UTC

[GitHub] [incubator-nuttx] gustavonihei opened a new pull request, #6538: ESP32-S3: Add driver for I2C peripheral in Master mode

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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-nuttx] gustavonihei commented on pull request #6538: ESP32-S3: Add driver for I2C peripheral in Master mode

Posted by GitBox <gi...@apache.org>.
gustavonihei commented on PR #6538:
URL: https://github.com/apache/incubator-nuttx/pull/6538#issuecomment-1169940447

   @pkarashchenko I've ported the changes you had suggested on #6539, could you please review this PR?


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-nuttx] pkarashchenko merged pull request #6538: ESP32-S3: Add driver for I2C peripheral in Master mode

Posted by GitBox <gi...@apache.org>.
pkarashchenko merged PR #6538:
URL: https://github.com/apache/incubator-nuttx/pull/6538


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org