Exemplo n.º 1
0
/*---------------------------------------------------------------------------*/
void
leds_arch_init(void)
{   
  LED_CONFIG();
  
  LEDS_PORT |= (LEDS_CONF_RED | LEDS_CONF_GREEN);
}
Exemplo n.º 2
0
static int second_driver_open(struct inode *inode, struct file *filp)
{
    printk("first_driver_open\n");

    // 1. initialize key GPIO.
    CONFIG_KEY_GPIO();
    LED_CONFIG();

    return 0;
}