Skip to content
This repository was archived by the owner on Nov 3, 2019. It is now read-only.

Commit 2013e05

Browse files
committed
Merge pull request #10 from theCore-embedded/g0_new_configurator
Support for the new theCore configurator
2 parents 0359856 + 5c267d4 commit 2013e05

File tree

2 files changed

+130
-89
lines changed

2 files changed

+130
-89
lines changed

stm32f4_discovery.json

Lines changed: 74 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,82 @@
11
{
2-
"platform": {
3-
"name": "stm32",
4-
"device": "STM32F407VG",
5-
"console": "USART3",
6-
"bypass_console": "USART3",
7-
"clock": {
8-
"source": "HSE",
9-
"speed": 8000000
10-
},
11-
"uart": [
12-
{
13-
"id": "USART3",
14-
"baud": 115200,
15-
"comment": "Bypass and console UART"
16-
}
17-
],
18-
"pinmux": [
19-
{
20-
"ids": [ "PD12", "PD13", "PD14", "PD15" ],
21-
"mode": "OUT",
22-
"comment": "STM32F4 Discovery On-board LEDs"
2+
"menu-platform": {
3+
"config-name": "STM32",
4+
"menu-stm32": {
5+
"config-device": "STM32F407VG",
6+
"config-console": "USART3",
7+
"menu-clock": {
8+
"config-source": "HSE",
9+
"config-speed": "8000000"
10+
},
11+
"menu-timer": {
12+
"config-source": "systick",
13+
"config-freq": "50",
14+
"config-owner": "user"
15+
},
16+
"menu-uart": {
17+
"table-uart": [
18+
"USART3"
19+
],
20+
"menu-USART3": {
21+
"config-baud": 115200
22+
}
2323
},
24-
{
25-
"ids": [
24+
"menu-pins": {
25+
"table-pins": [
26+
"PD12",
27+
"PD13",
28+
"PD14",
29+
"PD15",
2630
"PD8",
2731
"PD9"
2832
],
29-
"mode": "AF",
30-
"function": "USART3",
31-
"comment": "Console UART, PD8 - TX, PD9 - RX"
32-
}
33-
],
34-
"gpio_alias": [
35-
{
36-
"id": "PD12",
37-
"alias": "led_green"
38-
},
39-
{
40-
"id": "PD13",
41-
"alias": "led_orange"
42-
},
43-
{
44-
"id": "PD14",
45-
"alias": "led_red"
46-
},
47-
{
48-
"id": "PD15",
49-
"alias": "led_blue"
33+
"menu-PD12": {
34+
"config-mode": "output",
35+
"config-pull": "no",
36+
"config-type": "push-pull",
37+
"config-speed": 25,
38+
"config-comment": "Green LED",
39+
"config-gpio-alias": "led_green"
40+
},
41+
"menu-PD13": {
42+
"config-mode": "output",
43+
"config-pull": "no",
44+
"config-type": "push-pull",
45+
"config-speed": 25,
46+
"config-comment": "Orange LED",
47+
"config-gpio-alias": "led_orange"
48+
},
49+
"menu-PD14": {
50+
"config-mode": "output",
51+
"config-pull": "no",
52+
"config-type": "push-pull",
53+
"config-speed": 25,
54+
"config-comment": "Red LED",
55+
"config-gpio-alias": "led_red"
56+
},
57+
"menu-PD15": {
58+
"config-mode": "output",
59+
"config-pull": "no",
60+
"config-type": "push-pull",
61+
"config-speed": 25,
62+
"config-comment": "Blue LED",
63+
"config-gpio-alias": "led_blue"
64+
},
65+
"menu-PD8": {
66+
"config-mode": "af",
67+
"config-pull": "no",
68+
"config-type": "push-pull",
69+
"config-speed": 25,
70+
"config-afsel": "AF7: USART3_TX"
71+
},
72+
"menu-PD9": {
73+
"config-mode": "af",
74+
"config-pull": "no",
75+
"config-type": "push-pull",
76+
"config-speed": 25,
77+
"config-afsel": "AF7: USART3_RX"
78+
}
5079
}
51-
]
80+
}
5281
}
5382
}

tiva_tm4c_launchpad.json

Lines changed: 56 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,62 @@
11
{
2-
"platform": {
3-
"name": "tm4c",
4-
"device": "TM4C123GH6PM",
5-
"console": "UART0",
6-
"uart": [
7-
{
8-
"id": "UART0",
9-
"comment": "UART-over-USB console output"
10-
}
11-
],
12-
"pinmux": [
13-
{
14-
"ids": [ "PF1", "PF2", "PF3" ],
15-
"dir": "out",
16-
"pin_type": "std",
17-
"strength": "2mA",
18-
"comment": "LED pins"
19-
},
20-
{
21-
"ids": [ "PA0", "PA1" ],
22-
"dir": "hw",
23-
"hws": { "PA0": "UART0_RX", "PA1": "UART0_TX" },
24-
"comment": "UART0 console pins"
25-
}
26-
],
27-
"gpio_alias": [
28-
{
29-
"id": "PF1",
30-
"alias": "led_red",
31-
"comment": "Red LED"
32-
},
33-
{
34-
"id": "PF2",
35-
"alias": "led_blue",
36-
"comment": "Blue LED"
2+
"menu-platform": {
3+
"config-name": "TM4C",
4+
"menu-tm4c": {
5+
"config-device": "TM4C123GH6PM",
6+
"config-console": "UART0",
7+
"menu-timer": {
8+
"config-source": "systick",
9+
"config-freq": "100",
10+
"config-owner": "user"
3711
},
38-
{
39-
"id": "PF3",
40-
"alias": "led_green",
41-
"comment": "Green LED"
12+
"menu-uart": {
13+
"table-uart": [
14+
"UART0"
15+
],
16+
"menu-UART0": {
17+
"config-baud": 115200
18+
}
4219
},
43-
{
44-
"id": "PF1",
45-
"alias": "led_orange",
46-
"comment": "Non-existing orange LED (used red instead)"
20+
"menu-pinconfig": {
21+
"table-pins": [
22+
"PA0",
23+
"PA1",
24+
"PF1",
25+
"PF2",
26+
"PF3"
27+
],
28+
"menu-PA0": {
29+
"config-direction": "af",
30+
"config-type": "standard",
31+
"config-strength": "6mA",
32+
"config-afsel": "U0Rx"
33+
},
34+
"menu-PA1": {
35+
"config-direction": "af",
36+
"config-type": "standard",
37+
"config-strength": "6mA",
38+
"config-afsel": "U0Tx"
39+
},
40+
"menu-PF1": {
41+
"config-direction": "output",
42+
"config-type": "standard",
43+
"config-strength": "6mA",
44+
"config-gpio-alias": "led_red,led_orange",
45+
"config-comment": "There is no Orange LED in TivaC. Thus Red LED is \"mutiplexed\" with Orange one."
46+
},
47+
"menu-PF2": {
48+
"config-direction": "output",
49+
"config-type": "standard",
50+
"config-strength": "6mA",
51+
"config-gpio-alias": "led_blue"
52+
},
53+
"menu-PF3": {
54+
"config-direction": "output",
55+
"config-type": "standard",
56+
"config-strength": "6mA",
57+
"config-gpio-alias": "led_green"
58+
}
4759
}
48-
]
60+
}
4961
}
5062
}

0 commit comments

Comments
 (0)