Updated data for ES
This commit is contained in:
parent
a4d545ac19
commit
5c5d001759
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ int main(void) {
|
||||||
void ADC_init(void) {
|
void ADC_init(void) {
|
||||||
LPC_PINCON->PINSEL3 = 3 << 28; // P1.30 as AD0.4
|
LPC_PINCON->PINSEL3 = 3 << 28; // P1.30 as AD0.4
|
||||||
LPC_SC->PCONP = 1 << 12; // Power to ADC
|
LPC_SC->PCONP = 1 << 12; // Power to ADC
|
||||||
LPC_ADC->ADCR = (1 << 4) | (1 << 16) | (1 << 21); // select AD0.4, burst mode, enable
|
LPC_ADC->ADCR = (1 << 4) | (1 << 24) | (1 << 21); // select AD0.4, burst mode, enable
|
||||||
LPC_ADC->ADINTEN = (1 << 4); // Enable interrupt for AD0.4
|
LPC_ADC->ADINTEN = (1 << 4); // Enable interrupt for AD0.4
|
||||||
NVIC_EnableIRQ(ADC_IRQn);
|
NVIC_EnableIRQ(ADC_IRQn);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue