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

Diff for /funnyos/arch/sam7s64/dev/gpioled.c between version 1.1 and 1.4

version 1.1, 2007/11/19 10:51:40 version 1.4, 2007/11/24 19:04:42
Line 12 
Line 12 
 int     gpioled_attach(struct device *, uint32_t, uint8_t);  int     gpioled_attach(struct device *, uint32_t, uint8_t);
   
 struct driver gpioled_dr = {  struct driver gpioled_dr = {
         0,          1,
         gpioled_attach,          gpioled_attach,
         NULL,          NULL,
         NULL          NULL
Line 29 
Line 29 
         pin.gp_pinno = loc;     /* PA17 or PA18 please */          pin.gp_pinno = loc;     /* PA17 or PA18 please */
         pin.gp_pio = 1;         /* PIO mode */          pin.gp_pio = 1;         /* PIO mode */
         pin.gp_flags = GPIO_PIN_OUTPUT;          pin.gp_flags = GPIO_PIN_OUTPUT;
         pin.gp_value = 1;       /* LED on */          pin.gp_value = 0;       /* LED on */
   
         printf("P64 onboard LED (PA17)\n");          printf("p64 onboard LED (pin %d)\n", pin.gp_pinno);
   
         /* talk to gpio controller */          /* talk to gpio controller */
         gcp->gc_pinset(gcp->gc_selfdd, pin);          gcp->gc_pinset(gcp->gc_selfdd, pin);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

CVSweb