cpu, sam3: fix periph/dac poweron
This commit is contained in:
parent
10af2c2951
commit
eb8c55d7f7
@ -64,8 +64,8 @@ void dac_poweron(dac_t line)
|
|||||||
{
|
{
|
||||||
assert(line < DAC_NUMOF);
|
assert(line < DAC_NUMOF);
|
||||||
|
|
||||||
PMC->PMC_PCER1 = (1 << (ID_DACC - 32));
|
PMC->PMC_PCER1 = PMC_BIT;
|
||||||
DACC->DACC_CHER = PMC_BIT;
|
DACC->DACC_CHER = (1 << line);
|
||||||
}
|
}
|
||||||
|
|
||||||
void dac_poweroff(dac_t line)
|
void dac_poweroff(dac_t line)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user