modules: hal_nordic: check if gpio1 is enabled
The build will fail if `gpio1` is disabled in an overlay.
For example:
```
&gpio1 {
status = "disabled";
};
```
Signed-off-by: Francois Gervais <francoisgervais@gmail.com>
This commit is contained in:
parent
9e209c8cce
commit
ada6881d47
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ void nrf_802154_gpiote_init(void)
|
|||
GPIO_PULL_UP :
|
||||
GPIO_PULL_DOWN;
|
||||
|
||||
#if DT_NODE_EXISTS(DT_NODELABEL(gpio1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(gpio1), okay)
|
||||
if (use_port_1) {
|
||||
dev = DEVICE_DT_GET(DT_NODELABEL(gpio1));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue