1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu, sam3: fix periph/dac poweron

This commit is contained in:
smlng 2017-11-11 23:07:37 +01:00
parent 10af2c2951
commit eb8c55d7f7

View File

@ -64,8 +64,8 @@ void dac_poweron(dac_t line)
{
assert(line < DAC_NUMOF);
PMC->PMC_PCER1 = (1 << (ID_DACC - 32));
DACC->DACC_CHER = PMC_BIT;
PMC->PMC_PCER1 = PMC_BIT;
DACC->DACC_CHER = (1 << line);
}
void dac_poweroff(dac_t line)