-
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
STM32L152: Added ADC Bank_B functionality #14669
Conversation
@affrinpinhero-2356, thank you for your changes. |
targets/TARGET_STM/PinNamesTypes.h
Outdated
@@ -82,6 +82,10 @@ extern "C" { | |||
#define STM_PIN_AN_CTRL_SHIFT 20 | |||
#define STM_PIN_ANALOG_CONTROL_BIT (STM_PIN_AN_CTRL_MASK << STM_PIN_AN_CTRL_SHIFT) | |||
|
|||
#define STM_PIN_AN_CHAN_BANK_B_MASK 0x01 | |||
#define STM_PIN_AN_CHAN_BANK_B_SHIFT 22 |
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.
Please update the beginning of this file (line 50)
PS: why bit 22 is used and not 21 ? :-)
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.
Corrected and Updated line 50.
6d393c2
to
8fe784d
Compare
* [18] Inverted (Analog/Timer specific) | ||
* [19] Analog ADC control - Only valid for specific families | ||
* [32:21] Reserved | ||
* [19] Inverted (Analog/Timer specific) |
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.
good catch ....
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
@affrinpinhero-2356 you have modified the PR template and changed it's format, could you please correct it. |
8fe784d
to
efdc2d8
Compare
Corrected. |
efdc2d8
to
6b7cfc0
Compare
Modified analogin_init function to take correct value for ChannelsBank depends on ADC pin. This commit adds ADC Bank_B usablity to STm32L152RE. With this commit PB_2 can also woak as ADC_IN.
6b7cfc0
to
0c9523a
Compare
I'm afraid you haven't. See this one for how it should look: |
@adbridge template looks good! |
Is this good to start CI. |
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
This PR does not contain release version label after merging. |
Modified print_adc function to update adc pin_map. This patch will update python script that generate 'peripheralPin.c'. Which will give functionality to gernerate ADC pin definition for BANK_B. This commit is related to ARMmbed#14669. fix: * https://github.com/STM32-OSF/mbed-os/issues/3 Signed-off-by: Affrin Pinhero <[email protected]>
Modified print_adc function to update adc pin_map. This patch will update python script that generate 'peripheralPin.c'. Which will give functionality to gernerate ADC pin definition for BANK_B. This script update is related to ARMmbed#14669 Signed-off-by: Affrin Pinhero <[email protected]>
Summary of changes
Modified analogin_init function to take correct value for ChannelsBank depends on ADC pin.
This commit adds ADC Bank_B usablity to STm32L152RE. With this commit PB_2 can also woak as ADC_IN.
Impact of changes
Migration actions required
Documentation
Pull request type:
[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)
Test results:
[] No Tests required for this change (E.g docs only update)
[x] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR