mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 12:18:06 +00:00
arch/arm/imxrt: Fix imxrt118x rgpio compiler warning
Move GPIO_PIN definition from imxrt118x_gpio.h to imxrt_rgpio.h to remove redefinition warning. Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
This commit is contained in:
parent
463d8a71d7
commit
6ef704ee83
2 changed files with 2 additions and 2 deletions
|
|
@ -72,8 +72,6 @@
|
|||
|
||||
/* Most registers are laid out simply with one bit per pin */
|
||||
|
||||
#define GPIO_PIN(n) (1u << (n)) /* Bit n: Pin n, n=0-31 */
|
||||
|
||||
/* ICRN register (per-pin interrupt configuration) */
|
||||
|
||||
#define IMXRT_GPIO_ICRN_ISF (1u << 24) /* Bit 24: Interrupt Status Flag */
|
||||
|
|
|
|||
|
|
@ -36,6 +36,8 @@
|
|||
#include "hardware/rt118x/imxrt118x_gpio.h"
|
||||
#include "imxrt_iomuxc_ver3.h"
|
||||
|
||||
#define GPIO_PIN(n) (1u << (n))
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue