-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update MCUXpresso AnalogIn driver for LPC devices #11052
Conversation
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
1. Update the clock divider setting 2. ADC resolution is 12-bits, update the API return value to return 16-bit result 3. Update IOMUX setup Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
@mmahadevan108, thank you for your changes. |
@@ -49,7 +49,7 @@ void analogin_init(analogin_t *obj, PinName pin) | |||
ADC_ClockPower_Configuration(); | |||
|
|||
/* Ensure the ADC clock derived from the system clock is less than 80MHz */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comments are not matching the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The system clock is managed as BusClock by the internal clocking code structure :). Comment is correct but code needed to be changed.
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
Update the MCUXpresso AnalogIn driver to pass the FPGA test shield tests. Below are updates
FPGA test result below:
mbedgt: test on hardware with target id: 105600001984a78e00000000000000000000000097969905
mbedgt: test suite 'mbed-os-tests-mbed_hal_fpga_ci_test_shield-analogin' ............................. OK in 15.02 sec
test case: 'AnalogIn - init test' ............................................................ OK in 0.40 sec
test case: 'AnalogIn - read test' ............................................................ OK in 0.40 sec
mbedgt: test case summary: 2 passes, 0 failures
Pull request type