Skip to content

LL used for GPIO pin configuration #369

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

Merged
merged 22 commits into from
Nov 16, 2018
Merged

LL used for GPIO pin configuration #369

merged 22 commits into from
Nov 16, 2018

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Nov 9, 2018

First implemention using LL instead of HAL for GPIO configuration.
Tests are on going. done on all families.
Will fix #275
Note: based on #368

Mode added:

INPUT_PULLDOWN      0x3
INPUT_ANALOG        0x4
OUTPUT_OPEN_DRAIN   0x5

@fpistm fpistm self-assigned this Nov 13, 2018
@fpistm fpistm added the enhancement New feature or request label Nov 13, 2018
@fpistm fpistm added this to the 1.5.0 milestone Nov 13, 2018
User have to ensure the pin is configured.

Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
Use the PinName (PY_n) instead of the pin number (Pyn)

Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
This will cause hard fault if used so check if NC can be removed

Signed-off-by: Frederic.Pillon <[email protected]>
For F1 LL_GPIO_PIN_X is not the same than GPIO_PIN_X

Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
Function always return map->pin

Signed-off-by: Frederic.Pillon <[email protected]>
@fpistm fpistm added the on going Currently work on this label Nov 14, 2018
Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
Allow to configure a pin as describe in a pinmap

Signed-off-by: Frederic.Pillon <[email protected]>
Fix stm32duino#275

Signed-off-by: Frederic.Pillon <[email protected]>
This is required to handle properly ADC control

Signed-off-by: Frederic.Pillon <[email protected]>
@fpistm fpistm merged commit 0b1f59a into stm32duino:master Nov 16, 2018
@fpistm fpistm deleted the pinmode branch November 16, 2018 13:47
@fpistm fpistm removed the on going Currently work on this label Nov 16, 2018
benwaffle pushed a commit to benwaffle/Arduino_Core_STM32 that referenced this pull request Apr 10, 2019
LL used for GPIO pin configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend GPIO mode
1 participant