Merge pull request #11585 from marcemmers/nrf_port_api

NRF52: Fixed missing guard in port_api.c
pull/11614/head
Martin Kojtal 2019-09-30 14:46:31 +02:00 committed by GitHub
commit 7e62cafc82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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