I'm trying to understand a code, but there are variables in it that I can't find where they are defined. E.g.: DACC_INTERFACE_ID , DACC ,DACC_ACR_IBCTLCH0(0x02) , PIO_PB25B_TIOA0 ,...
pmc_enable_periph_clk (DACC_INTERFACE_ID) ; dacc_reset(DACC); dacc_set_transfer_mode(DACC, 0); dacc_set_power_save(DACC, 0, 1); dacc_set_analog_control(DACC, DACC_ACR_IBCTLCH0(0x02) | DACC_ACR_IBCTLCH1(0x02) | DACC_ACR_IBCTLDACCORE(0x01)); dacc_set_trigger(DACC, 1); PIOB->PIO_PDR = PIO_PB25B_TIOA0; // PIO Disable register PIOB->PIO_IDR = PIO_PB25B_TIOA0; // Interrupt disable register PIOB->PIO_ABSR |= PIO_PB25B_TIOA0; // AB Select register
I pretty much understand the commands just don’t know what values you give them.
Where are these defined?