From 91ba9c00e33a8dde38eb303e617c5f878db5922d Mon Sep 17 00:00:00 2001 From: Alex Maclean Date: Mon, 28 Mar 2022 14:37:15 +0100 Subject: [PATCH] atsam: Fix typo in sam4e_afec Accidentally introduced in 80492432210f1cf7817b7808245d196f3420021e, renders the AFE non-functional on SAME70. Should have had little impact on SAM4E. Signed-off-by: Alex Maclean --- src/atsam/sam4e_afec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atsam/sam4e_afec.c b/src/atsam/sam4e_afec.c index 79d681de..33fb8e90 100644 --- a/src/atsam/sam4e_afec.c +++ b/src/atsam/sam4e_afec.c @@ -112,7 +112,7 @@ init_afec(Afec* afec) { afec->AFE_EMR = AFE_EMR_TAG | \ AFE_EMR_RES_NO_AVERAGE | \ AFE_EMR_STM; - afec->AFE_ACR = CFG_AFE_MR; + afec->AFE_ACR = CFG_AFE_ACR; // Disable interrupts afec->AFE_IDR = CFG_AFE_IDR;