Skip to content

Commit 67b706a

Browse files
authored
SAML21J18A: #endif without #if in analogout_api.c
This PR: 3bd3aca#diff-995cd6fe18f4fabfb549266dde0a3784 broke the SAML21J18A target, as there was no `#if DEVICE_ANALOGOUT` call, and this PR added an `#endif` there that's not matched now.
1 parent 5c24ffe commit 67b706a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/analogout_api.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#include "PeripheralPins.h"
2222
#include "dac.h"
2323

24+
#if DEVICE_ANALOGOUT
25+
2426
extern uint8_t g_sys_init;
2527

2628
#define MAX_VAL_12BIT 0x0FFF /*12 Bit DAC for SAML21*/
@@ -119,4 +121,5 @@ const PinMap *analogout_pinmap()
119121
{
120122
return PinMap_DAC;
121123
}
122-
#endif
124+
125+
#endif // DEVICE_ANALOGOUT

0 commit comments

Comments
 (0)