Skip to content

Commit 7e62caf

Browse files
authored
Merge pull request #11585 from marcemmers/nrf_port_api
NRF52: Fixed missing guard in port_api.c
2 parents 4ed8603 + a02c50d commit 7e62caf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/port_api.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
*
3737
*/
3838

39+
#if DEVICE_PORTIN || DEVICE_PORTOUT || DEVICE_PORTINOUT
40+
3941
#include "port_api.h"
4042
#include "pinmap.h"
4143

@@ -132,3 +134,5 @@ int port_read(port_t *obj)
132134
{
133135
return ((m_ports[obj->port]->IN) & obj->mask);
134136
}
137+
138+
#endif // DEVICE_PORTIN || DEVICE_PORTOUT || DEVICE_PORTINOUT

0 commit comments

Comments
 (0)