[linux-ileri] Re: =?utf-8?q?=3FUTF-8=3FQ=3Fkernel=5Fspacede=5FGPIO=5Fya=5Fula=C3=BEm? =?utf-8?q?ak=2E=3F?

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Murat Koç (murat.koc@frontsite.com.tr)
Date: Wed 22 Sep 2004 - 15:15:19 EEST


Selam,

> > 2.6 kerneldan seninkine uyarlarsak
> >
> > #define GPIO_GPIO14 (0x00000001 << (14))
> > #define GPDR __REG(0x90040004)
> >
> > #define LED_STATE_ENABLED 1
> >
> > static unsigned int led_state;
> > static unsigned int hw_led_state;
> >
> > #define LED_23 GPIO_GPIO23
> > #define LED_MASK (LED_23)
> >
> > GPDR |= LED_23;

Bu 23 ler 14 olacak tabii :)

-- 
 __________
|          |
|          |  Murat Koç
|          |  Manager & IT Consultant
|    FRONT |
|==========|  FrontSITE Bilgi Teknolojisi A.Ş.
|_____SITE_|  http://www.frontsite.com.tr/


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.