-
Notifications
You must be signed in to change notification settings - Fork 198
/
Copy pathsample_appliance.json
42 lines (42 loc) · 4.68 KB
/
sample_appliance.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"Metadata": {
"Type": "Azure Sphere Hardware Definition",
"Version": 1
},
"Description":
{
"Name": "Sample hardware abstraction for USI MT3620 BT EVB",
"MainCoreHeaderFileTopContent": [
"/* Copyright (c) Microsoft Corporation. All rights reserved.",
" Licensed under the MIT License. */",
"",
"// This file defines the mapping from the USI MT3620 Bluetooth (BT) Evaluation Board (EVB) to the",
"// 'sample appliance' abstraction used by the samples at https://github.com/Azure/azure-sphere-samples.",
"// Some peripherals are on-board on the USI MT3620 BT EVB, while other peripherals must be attached externally if needed.",
"// See https://aka.ms/AzureSphereHardwareDefinitions for more information on how to use hardware abstractions,",
"// to enable apps to work across multiple hardware variants."
]
},
"Imports" : [ {"Path": "usi_mt3620_bt_evb.json"} ],
"Peripherals": [
{"Name": "SAMPLE_BUTTON_1", "Type": "Gpio", "Mapping": "USI_MT3620_BT_EVB_J32_PIN13_GPIO12", "Comment": "MT3620 USI BT EVB: Connect external button using J32, pin 13."},
{"Name": "SAMPLE_BUTTON_2", "Type": "Gpio", "Mapping": "USI_MT3620_BT_EVB_J32_PIN14_GPIO13", "Comment": "MT3620 USI BT EVB: Connect external button using J32, pin 14."},
{"Name": "SAMPLE_LED_PWM_CONTROLLER", "Type": "Pwm", "Mapping": "USI_MT3620_BT_EVB_PWM_CONTROLLER2", "Comment": "MT3620 USI BT EVB: PWM LED controller"},
{"Name": "SAMPLE_LED_PWM_CHANNEL", "Type": "int", "Mapping": "MT3620_PWM_CHANNEL2", "Comment": "MT3620 USI BT EVB: Channel 2 for the PWM LED1 green. In the app manifest, it is only necessary to request the capability for the PWM Controller, SAMPLE_LED_PWM_CONTROLLER."},
{"Name": "SAMPLE_LED", "Type": "Gpio", "Mapping": "USI_MT3620_BT_EVB_J32_PIN9_GPIO8", "Comment": "MT3620 USI BT EVB: Connect external LED using J32, pin 9."},
{"Name": "SAMPLE_POTENTIOMETER_ADC_CONTROLLER", "Type": "Adc", "Mapping": "USI_MT3620_BT_EVB_ADC_CONTROLLER0", "Comment": "MT3620 USI BT EVB: ADC Potentiometer controller"},
{"Name": "SAMPLE_POTENTIOMETER_ADC_CHANNEL", "Type": "int", "Mapping": "MT3620_ADC_CHANNEL0", "Comment": "MT3620 USI BT EVB: Connect external potentiometer to ADC controller 0, channel 0 using J34 pin16. In the app manifest, it is only necessary to request the capability for the ADC Group Controller, SAMPLE_POTENTIOMETER_ADC_CONTROLLER."},
{"Name": "SAMPLE_RGBLED_RED", "Type": "Gpio", "Mapping": "USI_MT3620_BT_EVB_J32_PIN10_GPIO9", "Comment": "MT3620 USI BT EVB: Connect external red LED using J32, pin 10."},
{"Name": "SAMPLE_RGBLED_GREEN", "Type": "Gpio", "Mapping": "USI_MT3620_BT_EVB_J32_PIN11_GPIO10", "Comment": "MT3620 USI BT EVB: Connect external green LED using J32, pin 11."},
{"Name": "SAMPLE_RGBLED_BLUE", "Type": "Gpio", "Mapping": "USI_MT3620_BT_EVB_J32_PIN12_GPIO11", "Comment": "MT3620 USI BT EVB: Connect external blue LED using J32, pin 12."},
{"Name": "SAMPLE_UART_LOOPBACK", "Type": "Uart", "Mapping": "USI_MT3620_BT_EVB_ISU0_UART", "Comment": "MT3620 USI BT EVB: Connect J32 pin 2 (RX) to J32 pin 3 (TX)."},
{"Name": "SAMPLE_LSM6DS3_I2C", "Type": "I2cMaster", "Mapping": "USI_MT3620_BT_EVB_ISU1_I2C", "Comment": "MT3620 USI BT EVB: Connect external LSM6DS3 to I2C using J33, pin 15 (SDA) and pin 10 (SCL)."},
{"Name": "SAMPLE_LSM6DS3_SPI", "Type": "SpiMaster", "Mapping": "USI_MT3620_BT_EVB_ISU2_SPI", "Comment": "MT3620 USI BT EVB: Connect external LSM6DS3 to SPI using J33, pin 7 (MISO), pin 5 (SCLK), pin 8 (CSA), pin 6 (MOSI)."},
{"Name": "SAMPLE_LSM6DS3_SPI_CS", "Type": "int", "Mapping": "MT3620_SPI_CS_A", "Comment": "MT3620 SPI Chip Select (CS) value \"A\". This is not a peripheral identifier, and so has no meaning in an app manifest."},
{"Name": "SAMPLE_NRF52_RESET", "Type": "Gpio", "Mapping": "USI_MT3620_BT_COMBO_NRF52_RESET", "Comment": "MT3620 USI BT EVB: BT_nRST (RESET) signal on nRF52810."},
{"Name": "SAMPLE_NRF52_DFU", "Type": "Gpio", "Mapping": "USI_MT3620_BT_COMBO_NRF52_DFU", "Comment": "MT3620 USI BT EVB: BT_FW_EN (DFU) signal on nRF52810."},
{"Name": "SAMPLE_NRF52_UART", "Type": "Uart", "Mapping": "USI_MT3620_BT_COMBO_NRF52_UART", "Comment": "MT3620 USI BT EVB: UART on nRF52810."},
{"Name": "SAMPLE_DEVICE_STATUS_LED", "Type": "Gpio", "Mapping": "USI_MT3620_BT_EVB_J32_PIN9_GPIO8", "Comment": "MT3620 USI BT EVB: Connect external LED using J32, pin 9."},
{"Name": "SAMPLE_PENDING_UPDATE_LED", "Type": "Gpio", "Mapping": "USI_MT3620_BT_EVB_J32_PIN16_GPIO15", "Comment": "MT3620 USI BT EVB: Connect external blue LED using J32, pin 16."}
]
}