[BACK]Return to config.c CVS log [TXT][DIR] Up to [local] / funnyos / arch / sam7s64

Diff for /funnyos/arch/sam7s64/config.c between version 1.11 and 1.12

version 1.11, 2007/11/24 17:10:07 version 1.12, 2007/11/24 17:45:19
Line 121 
Line 121 
         while(!(*AT91C_PMC_SR & AT91C_PMC_MCKRDY))          while(!(*AT91C_PMC_SR & AT91C_PMC_MCKRDY))
                 ;                  ;
   
         /* enable clock to PIO and USART0 */          /* enable clock to all modules */
         //*AT91C_PMC_PCER = AT91C_ID_PIOA | AT91C_ID_US0;  
         *AT91C_PMC_PCER = AT91C_ALL_INT;          *AT91C_PMC_PCER = AT91C_ALL_INT;
   
         *AT91C_PIOA_PER = (1 << 17 | 1 << 18);  
         *AT91C_PIOA_OER = (1 << 17 | 1 << 18);  
         *AT91C_PIOA_CODR= (1 << 17 | 1 << 18);  
   
         /* initialize USART0 (we clock it in PMC above) */          /* initialize USART0 (we clock it in PMC above) */
   
   *AT91C_PIOA_PDR = AT91C_PA5_RXD0 |        /* Enable RxD0 Pin */    *AT91C_PIOA_PDR = AT91C_PA5_RXD0 |        /* Enable RxD0 Pin */

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

CVSweb