README: fix JSON definition
A JSON blob wasn't formatting properly because it was invalid JSON.
Repair the JSON and reformat.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I048a221ed6e802e39aaf2a7d4d0d93eb97674ca5
diff --git a/README.md b/README.md
index 3fb6bf8..d3da7e5 100644
--- a/README.md
+++ b/README.md
@@ -70,48 +70,48 @@
```json
{
- "gpio_definitions": [
+ "gpio_definitions": [
+ {
+ "name": "POWER_BUTTON",
+ "gpio_config": [
{
- "name": "POWER_BUTTON",
- "gpio_config" :[
- {
- "pin": "D0",
- "direction": "both"
- }
- ]
- },
+ "pin": "D0",
+ "direction": "both"
+ }
+ ]
+ },
+ {
+ "name": "RESET_BUTTON",
+ "gpio_config": [
{
- "name": "RESET_BUTTON",
- "gpio_config" :[
- {
- "pin": "AB0",
- "direction": "both"
- }
- ]
- },
- {
- "name" : "HOST_SELECTOR",
+ "pin": "AB0",
+ "direction": "both"
+ }
+ ]
+ },
+ {
+ "name": "HOST_SELECTOR",
- "group_gpio_config" : [
- {
- "pin": "AA4",
- "direction": "both"
- },
- {
- "pin": "AA5",
- "direction": "both"
- },
- {
- "pin": "AA6",
- "direction": "both"
- },
- {
- "pin": "AA7",
- "direction": "both"
- }
- ]
+ "group_gpio_config": [
+ {
+ "pin": "AA4",
+ "direction": "both"
},
-
+ {
+ "pin": "AA5",
+ "direction": "both"
+ },
+ {
+ "pin": "AA6",
+ "direction": "both"
+ },
+ {
+ "pin": "AA7",
+ "direction": "both"
+ }
+ ]
+ }
+ ]
}
```
@@ -122,10 +122,10 @@
```json
{
- "name": "POWER_BUTTON",
- "pin": "D0",
- "direction": "both"
-},
+ "name": "POWER_BUTTON",
+ "pin": "D0",
+ "direction": "both"
+}
```
**Note:** this config is used by most of the other platforms so this format is