samples: gpio: Add support for Quark D2000
This patch extends the gpio sample application so it can be used to test GPIO functionality in Quark D2000 CRB. Change-Id: I69fed701708a7268e1e5386a9dfde68fe6bb8160 Signed-off-by: Andre Guedes <andre.guedes@intel.com>
This commit is contained in:
parent
2b608b1e59
commit
e080b38f85
1 changed files with 20 additions and 0 deletions
|
@ -90,6 +90,22 @@
|
|||
* Toggling GPIO_25
|
||||
* GPIO_27 triggered
|
||||
* "
|
||||
*
|
||||
* Quark D2000 CRB
|
||||
* ---------------
|
||||
*
|
||||
* In order to this sample app work with Quark D2000 CRB you should
|
||||
* use a "jumper cable" connecting the pins as described below:
|
||||
* Header J5 pin 9
|
||||
* Header J6 pin 7
|
||||
*
|
||||
* If the app runs successfully you should see this repeatedly on
|
||||
* console:
|
||||
* "
|
||||
* Toggling GPIO_8
|
||||
* Toggling GPIO_8
|
||||
* GPIO_24 triggered
|
||||
* "
|
||||
*/
|
||||
|
||||
#include <zephyr.h>
|
||||
|
@ -120,6 +136,10 @@
|
|||
#define GPIO_OUT_PIN 25
|
||||
#define GPIO_INT_PIN 27
|
||||
#define GPIO_NAME "GPIO_"
|
||||
#elif defined(CONFIG_SOC_QUARK_D2000)
|
||||
#define GPIO_OUT_PIN 8
|
||||
#define GPIO_INT_PIN 24
|
||||
#define GPIO_NAME "GPIO_"
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_GPIO_DW_0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue