Re: I2C or SPI Driver Example for ARC (Sensor subsystem) for Quark_se
Dinh, Kien T
Have you looked at the gpio sample under samples/drivers/gpio?
It’s just “GPIO_0”, and it depends whether the app is built for ARC or x86.
For x86, it can be built with:
$ make BOARD=arduino_101
And for ARC, it can be built with
$ make BOARD=arduino_101_sss
From: "Mahendravarman Rajarao (RBEI/EAA10)" <Mahendravarman.Rajarao@...>
Iam using zephyr 1.6.0 downloaded from the site
If I need to toggle a simple GPIO on the Sensor subsystem, In the Kconfig file of the ARC
Config options given are GPIO_QMSI , GPIO_QMSI_SS & GPIO_QMSI_SS_0_NAME (default name is GPIO_SS_0)
So In device binding we need to give as device_get_binding(“GPIO_SS_0”);
If I give as device_get_binding(“GPIO_0”); then x86 gpio is toggling.
Can you confirm this ?
Do you have any example of gpio with sensor subsystem ?
From: Dinh, Kien T [mailto:kien.t.dinh@...]
Sent: Thursday, May 11, 2017 2:41 PM
To: Mahendravarman Rajarao (RBEI/EAA10) <Mahendravarman.Rajarao@...>; users@...; devel@...
Subject: Re: [Zephyr-devel] I2C or SPI Driver Example for ARC (Sensor subsystem) for Quark_se
You might try to look at the samples folder in the repository. The below examples are using I2C and SPI on ARC:
From: <zephyr-devel-bounces@...> on behalf of "Mahendravarman
Rajarao (RBEI/EAA10)" <Mahendravarman.Rajarao@...>
Do you have any sample/example of Using I2C or SPI driver of ARC ( sensor subsystem) in Quark_se ?