Skip to content

Commit 4c1067b

Browse files
author
Marc Emmers
committed
Fixed missing #if in port_api.c
1 parent 1b4f6ae commit 4c1067b

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)