electron101 opened a new pull request #5439:
URL: https://github.com/apache/incubator-nuttx/pull/5439


   ## Summary
   On the Nucleo-L152RE board there are two I2C, I2C1 and I2C2 devices. But in 
the code there is no GPIO definition for I2C1. Because of this, an error 
occurred:
   
   `chip/stm32_i2c.c:363:17: error: 'GPIO_I2C1_SCL' undeclared here (not in a 
function); did you mean 'GPIO_I2C2_SCL'?`
   `chip/stm32_i2c.c:364:17: error: 'GPIO_I2C1_SDA' undeclared here (not in a 
function); did you mean 'GPIO_I2C2_SDA'?`
   
   This error caused due to missing pin definition and fixed through first 
commit on this PR.
   Although, build is success through this fix but there is no /dev/i2c1 device 
due to missing initializing and register process. So I added registration logic 
i2c device in other commits.
   
   ## Impact
   ###Add GPIO_I2C3_SDA, GPIO_I2C3_SCL macro.
   ###Added code for init and register process to I2C.
   
   ## Testing
   ### Built successfully and working on real nucleo-l152re board.
   ### Successfully read HDC1080 sensor's value through I2C1.
   
   


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