Skip to content
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

imxrt117x: add functions to control gpio #283

Merged
merged 1 commit into from
Sep 4, 2023
Merged

imxrt117x: add functions to control gpio #283

merged 1 commit into from
Sep 4, 2023

Conversation

gerard5
Copy link
Contributor

@gerard5 gerard5 commented Sep 4, 2023

Adds functions, similar to imxrt10xx API, which allow to configure, gpio direction and control gpio: get, set, clear gpio value, either single bit or whole register.

The goal is abbility to provide project plo_custom.c, e.g:

#include "imxrt.h"

void hal_customInit(void)
{
    /* deassert /RESET of other device */
    _imxrt_setIOmux(pctl_mux_gpio_sd_b1_00, 0, 10);
    _imxrt_setIOpad(pctl_pad_gpio_sd_b1_00, 0, 0, 0, 0, 0, 0);
    _imxrt_gpioConfig(gpio10, 3, 1);
    _imxrt_gpioSet(gpio10, 3, 0);
}

JIRA: NIL-460

Description

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

How Has This Been Tested?

  • Already covered by automatic testing.
  • New test added: (add PR link here).
  • Tested by hand on: imxrt1176-nil.

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing linter checks and tests passed.
  • My changes generate no new compilation warnings for any of the targets.

Special treatment

  • This PR needs additional PRs to work (list the PRs, preferably in merge-order).
  • I will merge this PR by myself when appropriate.

@gerard5 gerard5 self-assigned this Sep 4, 2023
Adds functions, similar to imxrt10xx API, which allow to configure,
gpio direction and control gpio: get, set, clear gpio value, either
single bit or whole register.

JIRA: NIL-460
Copy link
Member

@agkaminski agkaminski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gerard5 gerard5 marked this pull request as ready for review September 4, 2023 13:11
@github-actions
Copy link

github-actions bot commented Sep 4, 2023

Unit Test Results

5 490 tests  ±0   4 894 ✔️ ±0   24m 36s ⏱️ -1s
   283 suites ±0      596 💤 ±0 
       1 files   ±0          0 ±0 

Results for commit 4848ae7. ± Comparison against base commit 012891e.

♻️ This comment has been updated with latest results.

@gerard5 gerard5 merged commit 03810cc into master Sep 4, 2023
28 checks passed
@gerard5 gerard5 deleted the NIL-460 branch September 4, 2023 14:37
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.

2 participants