Add STM32 CAPI peripherals implementation#3090
Open
cristina-suteu wants to merge 10 commits into
Open
Conversation
Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com>
add latest implementations for c-api Signed-off-by: Cristina Suteu <cristina.suteu@analog.com>
added uart receive implementation added error check in uart transmit fixed uart denit Signed-off-by: Cristina Suteu <cristina.suteu@analog.com>
buha
reviewed
May 8, 2026
| static GPIO_TypeDef *get_gpio_port_from_identifier(uint64_t identifier) | ||
| { | ||
| /* If identifier looks like a base address, use it directly */ | ||
| if (identifier >= 0x40000000) |
Contributor
There was a problem hiding this comment.
yeah this is likely correct on what you tested, but will fail on other targets, so I think we need to decide on a more reasonable number for the comparison here, it has to be smaller like 256 or 1024 or something like that
added initial capi based implementation of stm32 gpio driver Signed-off-by: Cristina Suteu <cristina.suteu@analog.com>
add initial capi based implementation for stm32 dma Signed-off-by: Cristina Suteu <cristina.suteu@analog.com>
added initial capi based imlementation for stm32 spi Signed-off-by: Cristina Suteu <cristina.suteu@analog.com>
added initial capi based implementation for stm32 i2c Signed-off-by: Cristina Suteu <cristina.suteu@analog.com>
added initial capi based implementation for stm32 irq fiexd typo in capi_irq.h Signed-off-by: Cristina Suteu <cristina.suteu@analog.com>
added initial capi based implementation for stm32 timer Signed-off-by: Cristina Suteu <cristina.suteu@analog.com>
add example that tests the available CAPI implementations for stm32 tests without external hardware: gpio, dma, irq, timer, spi(loopback req) to do: add proper i2c test with external hw Signed-off-by: Cristina Suteu <cristina.suteu@analog.com>
d638138 to
e96bfc5
Compare
Collaborator
Author
|
v2: |
Contributor
|
please fix astyle and drivers checks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Description
This PR adds CAPI based implementations to several STM32 platform drivers: GPIO, DMA, IRQ, I2C, SPI, UART and TIMER.
An example with minimal to no external hardware connections is provided. The example uses an IOC that targets the NUCLEO-F76ZI board.
PR Type
PR Checklist