From 61d20c726698b44065ae7b70d49be2d2c5672be4 Mon Sep 17 00:00:00 2001 From: Henry Bruce Date: Thu, 10 Nov 2016 16:55:26 -0800 Subject: [PATCH] json: Removed tabs and tidied up Turbot JSON formatting Signed-off-by: Henry Bruce Signed-off-by: Brendan Le Foll --- examples/platform/turbotjson.json | 133 +++++++++++++++--------------- 1 file changed, 67 insertions(+), 66 deletions(-) diff --git a/examples/platform/turbotjson.json b/examples/platform/turbotjson.json index 042e6ef..8a7cc5d 100644 --- a/examples/platform/turbotjson.json +++ b/examples/platform/turbotjson.json @@ -1,73 +1,74 @@ { "version": "1.0.0", - "platform":[ - { "id":300, - "name":"Turbot", - "pin_count": 28, - "gpio_count": 28, - "i2c_count": 1, - "aio_count": 0, - "spi_count": 1, - "uart_count": 1, - "pwmDefPeriod":500, - "pwmMaxPeriod":1000000000, - "pwmMinPeriod":1 + "platform": [ + { + "id":300, + "name":"Turbot", + "pin_count": 28, + "gpio_count": 28, + "i2c_count": 1, + "aio_count": 0, + "spi_count": 1, + "uart_count": 1, + "pwmDefPeriod":500, + "pwmMaxPeriod":1000000000, + "pwmMinPeriod":1 } ], - "layout":[ - {"label": "INVALID", "invalid": true}, - {"label": "GND"}, - {"label": "GND"}, - {"label": "5v"}, - {"label": "3.3v"}, - {"label": "SPI_CS"}, - {"label": "UART1TX"}, - {"label": "SPIMISO"}, - {"label": "UART1RX"}, - {"label": "SPIMOSI"}, - {"label": "UART1CT"}, - {"label": "SPI_CLK"}, - {"label": "UART1RT"}, - {"label": "I2C_SCL"}, - {"label": "I2S_CLK"}, - {"label": "I2C_SDA"}, - {"label": "I2S_FRM"}, - {"label": "UART2TX"}, - {"label": "I2S_DO"}, - {"label": "UART2RX"}, - {"label": "I2S_DI"}, - {"label": "S5_0"}, - {"label": "PWM0"}, - {"label": "S5_1"}, - {"label": "PWM1"}, - {"label": "S5_4"}, - {"label": "I2S_MCLK"}, - {"label": "S5_22"} + "layout": [ + {"label": "INVALID", "invalid": true}, + {"label": "GND"}, + {"label": "GND"}, + {"label": "5v"}, + {"label": "3.3v"}, + {"label": "SPI_CS"}, + {"label": "UART1TX"}, + {"label": "SPIMISO"}, + {"label": "UART1RX"}, + {"label": "SPIMOSI"}, + {"label": "UART1CT"}, + {"label": "SPI_CLK"}, + {"label": "UART1RT"}, + {"label": "I2C_SCL"}, + {"label": "I2S_CLK"}, + {"label": "I2C_SDA"}, + {"label": "I2S_FRM"}, + {"label": "UART2TX"}, + {"label": "I2S_DO"}, + {"label": "UART2RX"}, + {"label": "I2S_DI"}, + {"label": "S5_0"}, + {"label": "PWM0"}, + {"label": "S5_1"}, + {"label": "PWM1"}, + {"label": "S5_4"}, + {"label": "I2S_MCLK"}, + {"label": "S5_22"} + ], + "GPIO": [ + { "index": 10, "rawpin": 483 }, + { "index": 12, "rawpin": 482 }, + { "index": 14, "rawpin": 472 }, + { "index": 16, "rawpin": 473 }, + { "index": 18, "rawpin": 475 }, + { "index": 20, "rawpin": 474 }, + { "index": 21, "rawpin": 338 }, + { "index": 23, "rawpin": 339 }, + { "index": 25, "rawpin": 340 }, + { "index": 26, "rawpin": 509 }, + { "index": 27, "rawpin": 360 } ], - "GPIO":[ - { "index": 10, "rawpin": 483 }, - { "index": 12, "rawpin": 482 }, - { "index": 14, "rawpin": 472 }, - { "index": 16, "rawpin": 473 }, - { "index": 18, "rawpin": 475 }, - { "index": 20, "rawpin": 474 }, - { "index": 21, "rawpin": 338 }, - { "index": 23, "rawpin": 339 }, - { "index": 25, "rawpin": 340 }, - { "index": 26, "rawpin": 509 }, - { "index": 27, "rawpin": 360 } + "I2C": [ + { "sclpin":13, "sdapin":15, "rawpin": 0, "index": 0, "default":true } ], - "I2C": [ - { "sclpin":13, "sdapin":15, "rawpin": 0, "index": 0, "default":true } - ], - "PWM": [ - { "index":22, "rawpin":0, "chipID":0}, - { "index":24, "rawpin":0, "chipID":1 } - ], - "SPI": [ - { "index":0, "chipID": 0, "clock": 11, "miso": 7, "mosi": 9, "chipselect": 5, "default": true} - ], - "UART":[ - { "index":0, "chipID":0, "rawpin":0, "path":"/dev/ttyS0", "default":true} - ] + "PWM": [ + { "index":22, "rawpin":0, "chipID":0}, + { "index":24, "rawpin":0, "chipID":1 } + ], + "SPI": [ + { "index":0, "chipID": 0, "clock": 11, "miso": 7, "mosi": 9, "chipselect": 5, "default": true} + ], + "UART": [ + { "index":0, "chipID":0, "rawpin":0, "path":"/dev/ttyS0", "default":true} + ] }