Skip to content

fix(example.gpio): Updated to new apis#33

Merged
MMaiero merged 8 commits intodevelopfrom
fix_gpio_example
Feb 10, 2026
Merged

fix(example.gpio): Updated to new apis#33
MMaiero merged 8 commits intodevelopfrom
fix_gpio_example

Conversation

@pierantoniomerlino
Copy link
Copy Markdown
Member

@pierantoniomerlino pierantoniomerlino commented Jan 26, 2026

This pull request updates the GPIO example bundle to improve GPIO pin selection flexibility and compatibility with newer Kura GPIO APIs. The main changes include expanding the supported formats for specifying GPIO pins, updating the code to use richer pin descriptions, and increasing the required version of the GPIO API.

GPIO Pin Selection Enhancements:

  • Updated the GpioComponentOCD.java configuration to allow specifying GPIO pins by number, name, or as a composite string in the format name:controller:line (e.g., "GPIO1:0:24"), with support for wildcards and omitted fields for broader selection.
  • Refactored the GpioComponent.java logic to support the new pin specification format, including parsing the resource string, handling wildcards, and acquiring multiple pins when appropriate.
  • Updated logging and pin acquisition to use the new KuraGPIODescription API, providing more detailed information about available GPIOs.

API and Version Updates:

  • Increased the required version of the org.eclipse.kura.gpio package to [1.2,2.0) in the bundle manifest, ensuring compatibility with the new API features.
  • Updated copyright years in source files to 2026. [1] [2]

Minor and Formatting Changes:

  • Cleaned up and clarified comments and formatting in the affected files. [1] [2] [3]
  • Fixed a comment typo and closed an XML comment in the target definition file.

@pierantoniomerlino pierantoniomerlino marked this pull request as ready for review February 3, 2026 14:52
Signed-off-by: pierantoniomerlino <pierantonio.merlino@eurotech.com>
Signed-off-by: pierantoniomerlino <pierantonio.merlino@eurotech.com>
Signed-off-by: pierantoniomerlino <pierantonio.merlino@eurotech.com>
Signed-off-by: pierantoniomerlino <pierantonio.merlino@eurotech.com>
Signed-off-by: pierantoniomerlino <pierantonio.merlino@eurotech.com>
sfiorani
sfiorani previously approved these changes Feb 9, 2026
Signed-off-by: pierantoniomerlino <pierantonio.merlino@eurotech.com>
Signed-off-by: pierantoniomerlino <pierantonio.merlino@eurotech.com>
Signed-off-by: pierantoniomerlino <pierantonio.merlino@eurotech.com>
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@MMaiero MMaiero merged commit 594741f into develop Feb 10, 2026
2 of 4 checks passed
@MMaiero MMaiero deleted the fix_gpio_example branch February 10, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants