Oh, I see... I don't have real device. I run openmoko on qemu.... Qemu emulates only two hardware buttons of neo 1973/freerunner....
-----邮件原件----- 发件人: [email protected] [mailto:[email protected]] 代表 Ben Wilson 发送时间: 2009年2月28日 星期六 16:22 收件人: [email protected] 主题: Re: Why are three resources in gta01_button_resources array? There's a 3rd button inside the headphone jack to detect when you put the plug in. It's used to know when to mute the built in speakers etc.. Ben. wei zheng wrote: > > Hi Michael & All, > > I have questions about the hardware buttons in neo > 1973/freerunner. There are only two buttons on neo 1973/freerunner. > Why are three resources in gta01_button_resources array? > > > > static struct resource gta01_button_resources[] = { > > [0] = { > > .start = GTA01_GPIO_AUX_KEY, > > .end = GTA01_GPIO_AUX_KEY, > > }, > > [1] = { > > .start = GTA01_GPIO_HOLD_KEY, > > .end = GTA01_GPIO_HOLD_KEY, > > }, > > [2] = { > > .start = GTA01_GPIO_JACK_INSERT, > > .end = GTA01_GPIO_JACK_INSERT, > > }, > > }; >
