Fixed missing #if in port_api.c

pull/11585/head
Marc Emmers 2019-02-22 14:46:51 +01:00
parent 1b4f6ae3c4
commit 4c1067b8b8
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,8 @@
*
*/
#if DEVICE_PORTIN || DEVICE_PORTOUT || DEVICE_PORTINOUT
#include "port_api.h"
#include "pinmap.h"
@ -132,3 +134,5 @@ int port_read(port_t *obj)
{
return ((m_ports[obj->port]->IN) & obj->mask);
}
#endif // DEVICE_PORTIN || DEVICE_PORTOUT || DEVICE_PORTINOUT