add adc support

This commit is contained in:
Mariano Alvira 2011-03-11 16:20:41 -05:00
parent b2b18b37fc
commit c27e96f1e9
5 changed files with 368 additions and 3 deletions

View file

@ -184,7 +184,7 @@ void maca_init(void) {
/* nop, promiscuous, no cca */
*MACA_CONTROL =
(prm_mode << PRM) |
(NO_CCA << MODE);
(NO_CCA << MACA_MODE);
enable_irq(MACA);
*INTFRC = (1 << INT_NUM_MACA);