Hello, can we implement led on interrupt pin.
Driver??.
pages 9-18 and 9-19 in the s3c2440.pdf datasheet suggest that port GPF0 to GPF7 and GPG0 to GPG15 can be set at in, out or interrupt. There are some other conditions on GPG13, 14 and 15. As you can do this on 8bit parts like the ATmega88 it seems likely that you can do it on this part.
thanx, Its correct for led blink driver.I have connected led on GPG14 pin my_dev.minor = MISC_DYNAMIC_MINOR; my_dev.name = "my"; my_dev.fops = &fops; retval = misc_register(&my_dev); if (retval) return retval; printk("my: got minor %i\n",my_dev.minor); printk("gpio_is_Valid = %d\n",gpio_is_valid(S3C2410_GPG14)); printk("gpio_is_Valid = %d\n",gpio_is_valid(S3C2410_GPG14)); s3c2410_gpio_cfgpin(S3C2410_GPG14,S3C2410_GPG14_OUTP); printk("gpio_is_Valid = "); s3c2410_gpio_setpin(S3C2410_GPG14,1); for(retval =0;retval<10;retval++){ s3c2410_gpio_setpin(S3C2410_GPG14,0); ssleep(1); s3c2410_gpio_setpin(S3C2410_GPG14,1); ssleep(1); }