Skip to content

Commit 115c7c6

Browse files
author
Amanda Butler
authored
Merge branch 'new_engine' into overview_changes
2 parents 00678ec + b0578c0 commit 115c7c6

File tree

177 files changed

+1451
-443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+1451
-443
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#!/usr/bin/env python
2+
3+
import os
4+
import sys
5+
import re
6+
import requests
7+
from subprocess import check_output
8+
from builtins import input, open
9+
10+
PATTERN = (
11+
"\[!\[View code\]\(https://www\.mbed\.com/embed/\?type=library\)\]"
12+
"\((.*)\)"
13+
)
14+
15+
def main(path=None):
16+
bad = False
17+
interactive = False
18+
19+
if not path:
20+
interactive = True
21+
22+
# Go to root to make paths easier
23+
root = check_output(['git', 'rev-parse', '--show-toplevel']).strip()
24+
os.chdir(root)
25+
26+
# Ask for path in case user is unfamiliar with command line
27+
path = input('What directory should I check? ')
28+
29+
for dir, dirs, files in os.walk(path):
30+
for file in files:
31+
if not file.endswith('.md'):
32+
continue
33+
34+
path = os.path.join(dir, file)
35+
with open(path, encoding='utf-8') as file:
36+
for i, line in enumerate(file):
37+
for match in re.findall(PATTERN, line):
38+
if match.startswith('https:'):
39+
sys.stderr.write("\n%s:%s: Bad URL (https):\n" % (path, i))
40+
sys.stderr.write(match + '\n')
41+
bad = True
42+
43+
try:
44+
code = requests.get(match).status_code
45+
except requests.exceptions.RequestException:
46+
code = -1
47+
48+
if code != 200:
49+
sys.stderr.write("\n%s:%s: Bad URL (%d):\n" % (path, i, code))
50+
sys.stderr.write(match + '\n')
51+
bad = True
52+
53+
sys.stdout.write('.')
54+
sys.stdout.flush()
55+
56+
for dir in dirs:
57+
if dir.startswith('.'):
58+
dirs.remove(dir)
59+
60+
sys.stdout.write('\nDone!\n')
61+
if interactive:
62+
input('Hit any key to continue ')
63+
64+
return 0 if not bad else 1
65+
66+
67+
if __name__ == "__main__":
68+
sys.exit(main(*sys.argv[1:]))

docs.json

Lines changed: 120 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,14 @@
364364
"type": "markdown",
365365
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/reference/api/connectivity/bluetooth/BLE.md"
366366
},
367+
{
368+
"type": "markdown",
369+
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/reference/api/connectivity/bluetooth/Gap.md"
370+
},
371+
{
372+
"type": "markdown",
373+
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/reference/api/connectivity/bluetooth/SecurityManager.md"
374+
},
367375
{
368376
"type": "markdown",
369377
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/reference/api/connectivity/bluetooth/BatteryService.md"
@@ -378,6 +386,26 @@
378386
}
379387
]
380388
},
389+
{
390+
"title": "LoRaWAN",
391+
"intro": {
392+
"type": "markdown",
393+
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/reference/api/connectivity/lorawan/lorawanevents.md"
394+
},
395+
"sources": [{
396+
"type": "markdown",
397+
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/reference/api/connectivity/lorawan/lorawan.md"
398+
},
399+
{
400+
"type": "markdown",
401+
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/reference/api/connectivity/lorawan/loraradio.md"
402+
},
403+
{
404+
"type": "markdown",
405+
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/reference/api/connectivity/lorawan/lorawanconfig.md"
406+
}
407+
]
408+
},
381409
{
382410
"title": "Security",
383411
"intro": {
@@ -484,7 +512,11 @@
484512
},
485513
{
486514
"type": "markdown",
487-
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/reference/contributing/target/ticker.md"
515+
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/reference/contributing/target/us_ticker.md"
516+
},
517+
{
518+
"type": "markdown",
519+
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/reference/contributing/target/lp_ticker.md"
488520
},
489521
{
490522
"type": "markdown",
@@ -681,6 +713,10 @@
681713
"type": "markdown",
682714
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/tools/debug/debugging_mbed_os_apps.md"
683715
},
716+
{
717+
"type": "markdown",
718+
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/tools/debug/crash_dump_analyzer.md"
719+
},
684720
{
685721
"type": "markdown",
686722
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/tools/debug/local_debugging_toolchain.md"
@@ -732,18 +768,26 @@
732768
}]
733769
},
734770
{
735-
"title": "Arm Mbed OS Quickstart",
771+
"title": "Mbed OS quick start",
736772
"sources": [{
737773
"type": "markdown",
738-
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/tutorials/quickstart/quickstart.md"
774+
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/tutorials/quickstart/quick-start.md"
739775
},
740776
{
741777
"type": "markdown",
742-
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/tutorials/quickstart/quickstart-compiler.md"
778+
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/tutorials/quickstart/quick-start-compiler.md"
743779
},
744780
{
745781
"type": "markdown",
746-
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/tutorials/quickstart/quickstart-cli.md"
782+
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/tutorials/quickstart/quick-start-cli.md"
783+
}
784+
]
785+
},
786+
{
787+
"title": "Major releases",
788+
"sources": [{
789+
"type": "markdown",
790+
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/tutorials/mbed-os-2-vs-5.md"
747791
}
748792
]
749793
},
@@ -768,7 +812,7 @@
768812
]
769813
},
770814
{
771-
"title": "Serial Communication",
815+
"title": "Serial communication",
772816
"sources": [{
773817
"type": "markdown",
774818
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/tutorials/serial/serial-overview.md"
@@ -845,6 +889,10 @@
845889
"type": "markdown",
846890
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/tutorials/debug/debug_tutorials.md"
847891
},
892+
{
893+
"type": "markdown",
894+
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/tutorials/debug/debug_fault_exception.md"
895+
},
848896
{
849897
"type": "markdown",
850898
"url": "https://github.com/ARMmbed/Handbook/blob/new_engine/docs/tutorials/run_and_compile_time_errors.md"
@@ -898,5 +946,71 @@
898946
"tags": [
899947
"tutorials"
900948
]
949+
},
950+
{
951+
"title": "Mbed OS API doxygen",
952+
"description": "The full Mbed OS API documentation in doxygen format",
953+
"slug": "mbed-os-api-doxy",
954+
"hidden": true,
955+
"type": "doxygen",
956+
"source": "https://github.com/ARMmbed/mbed-os",
957+
"branch": "mbed-os-5.8"
958+
},
959+
{
960+
"title": "feature-hal-spec-rtc doxygen",
961+
"description": "The full mbed OS API documentation in doxygen format",
962+
"slug": "feature-hal-spec-rtc-doxy",
963+
"hidden": true,
964+
"type": "doxygen",
965+
"source": "https://github.com/ARMmbed/mbed-os",
966+
"branch": "feature-hal-spec-rtc"
967+
},
968+
{
969+
"title": "feature-hal-spec-sleep doxygen",
970+
"description": "The full mbed OS API documentation in doxygen format",
971+
"slug": "feature-hal-spec-sleep-doxy",
972+
"hidden": true,
973+
"type": "doxygen",
974+
"source": "https://github.com/ARMmbed/mbed-os",
975+
"branch": "feature-hal-spec-sleep"
976+
},
977+
{
978+
"title": "feature-hal-spec-ticker doxygen",
979+
"description": "The full mbed OS API documentation in doxygen format",
980+
"slug": "feature-hal-spec-ticker-doxy",
981+
"hidden": true,
982+
"type": "doxygen",
983+
"source": "https://github.com/ARMmbed/mbed-os",
984+
"branch": "feature-hal-spec-ticker"
985+
},
986+
{
987+
"title": "feature-hal-spec-usb-device doxygen",
988+
"description": "The full mbed OS API documentation in doxygen format",
989+
"slug": "feature-hal-spec-usb-device-doxy",
990+
"hidden": true,
991+
"type": "doxygen",
992+
"source": "https://github.com/ARMmbed/mbed-os",
993+
"branch": "feature-hal-spec-usb-device"
994+
995+
},
996+
{
997+
"title": "feature-hal-spec-qspi doxygen",
998+
"description": "The full mbed OS API documentation in doxygen format",
999+
"slug": "feature-hal-spec-qspi-doxy",
1000+
"hidden": true,
1001+
"type": "doxygen",
1002+
"source": "https://github.com/ARMmbed/mbed-os",
1003+
"branch": "feature-qspi"
1004+
1005+
},
1006+
{
1007+
"title": "feature-hal-spec-watchdog doxygen",
1008+
"description": "The full mbed OS API documentation in doxygen format",
1009+
"slug": "feature-hal-spec-watchdog-doxy",
1010+
"hidden": true,
1011+
"type": "doxygen",
1012+
"source": "https://github.com/ARMmbed/mbed-os",
1013+
"branch": "feature-watchdog"
1014+
9011015
}
9021016
]
60.2 KB
Loading
63.8 KB
Loading
92.9 KB
Loading
114 KB
Loading
16.7 KB
Loading
65.8 KB
Loading
42.9 KB
Loading
46.9 KB
Loading
665 KB
Loading

docs/images/Mbed-Studio-Run.png

9.1 KB
Loading
Loading
73.8 KB
Loading

docs/images/hello_world_import.png

60.8 KB
Loading

docs/images/mbed_enabled.png

33.9 KB
Loading

docs/images/mbed_handbook_box.png

72.1 KB
Loading

docs/images/new_mbed_file.png

125 KB
Loading

docs/images/old_mbed_file.png

102 KB
Loading

docs/introduction/introduction.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,45 @@ Your application code is written in C and C++. It uses the *application programm
66

77
#### Where to start
88

9-
<span class="tips">If you're working on Windows, you might need to [install a serial driver](/docs/v5.7/tutorials/windows-serial-driver.html).
9+
<span class="tips">If you're working on Windows, you might need to [install a serial driver](/docs/development/tutorials/windows-serial-driver.html).
1010

11-
The easiest way to work with Mbed OS is using one of our development tools. We've set up an example, [Blinky](/docs/v5.7/tutorials/your-first-program.html), that you can try on each of the tools. Blinky teaches you to build and run an application on your board.
11+
The easiest way to work with Mbed OS is using one of our development tools. We've set up an example, [Blinky](/docs/development/tutorials/your-first-program.html), that you can try on each of the tools. Blinky teaches you to build and run an application on your board.
1212

13-
Once you know how to build an existing application, it's time to learn [how to write your own applications](/docs/v5.7/reference/index.html).
13+
Once you know how to build an existing application, it's time to learn [how to write your own applications](/docs/development/reference/index.html).
1414

1515
##### Development tools
1616

17-
- Our offline development tool is [Arm Mbed CLI](/docs/v5.7/tools/arm-mbed-cli.html), a command-line tool. This requires having a toolchain installed on your computer.
18-
- The [Arm Mbed Online Compiler](/docs/v5.7/tools/arm-online-compiler.html) lets you write and build applications using a web browser.
19-
- If you're working with third party tools, look at [exporting instructions for the most popular ones](/docs/v5.7/tools/exporting.html).
17+
- Our offline development tool is [Arm Mbed CLI](/docs/development/tools/arm-mbed-cli.html), a command-line tool. This requires having a toolchain installed on your computer.
18+
- The [Arm Mbed Online Compiler](/docs/development/tools/arm-online-compiler.html) lets you write and build applications using a web browser.
19+
- If you're working with third party tools, look at [exporting instructions for the most popular ones](/docs/development/tools/exporting.html).
2020

2121
##### Communicating with and monitoring your board
2222

23-
You can [monitor and control an Mbed board](/docs/v5.7/tutorials/serial-comm.html) to help you debug and test your applications.
23+
You can [monitor and control an Mbed board](/docs/development/tutorials/serial-comm.html) to help you debug and test your applications.
2424

25-
<span class="tips">**Tip:** Learn more about debugging in the [debugging applications section](/docs/v5.7/tutorials/debugging-applications.html).</span>
25+
<span class="tips">**Tip:** Learn more about debugging in the [debugging applications section](/docs/development/tutorials/debugging-applications.html).</span>
2626

2727
#### How to continue
2828

2929
When you've started writing applications using your selected development tool:
3030

31-
- Learn about [collaborative work and version control](/docs/v5.7/tools/collab-online-comp.html).
32-
- Try one of the [tutorials](/docs/v5.7/tutorials/index.html), which cover concepts such as debugging and memory tracing.
31+
- Learn about [collaborative work and version control](/docs/development/tools/collab-online-comp.html).
32+
- Try one of the [tutorials](/docs/development/tutorials/index.html), which cover concepts such as debugging and memory tracing.
3333
- Ask questions and give advice on the [forum](https://os.mbed.com/forum/).
3434

3535
#### Contributing to Mbed OS
3636

37-
If you want to contribute to the `mbed-os` codebase, please see [the contribution section](/docs/v5.7/reference/contributing.html).
37+
If you want to contribute to the `mbed-os` codebase, please see [the contribution section](/docs/development/reference/contributing.html).
3838

3939
You can find past releases and the current release on [GitHub](https://github.com/ARMmbed/mbed-os/releases/).
4040

4141
#### Porting to Mbed OS
4242

4343
Our full contributing guide is still being written. For now, we have:
4444

45-
- A guide to [contributing targets](/docs/v5.7/reference/contributing-target.html).
46-
- Information about the [tools you need to contribute targets](/docs/v5.7/reference/contributing-tools.html).
47-
- APIs about [storage](/docs/v5.7/reference/contributing-storage.html) and [connectivity](/docs/v5.7/reference/contributing-connectivity.html) in relation to porting.
45+
- A guide to [contributing targets](/docs/development/reference/contributing-target.html).
46+
- Information about the [tools you need to contribute targets](/docs/development/reference/contributing-tools.html).
47+
- APIs about [storage](/docs/development/reference/contributing-storage.html) and [connectivity](/docs/development/reference/contributing-connectivity.html) in relation to porting.
4848

4949
## How Mbed works
5050

@@ -73,7 +73,7 @@ The `.bin` files the Mbed microcontroller accepts are standard raw binaries. Use
7373

7474
#### The Arm Mbed interface
7575

76-
You can find more information about the Mbed interface and the circuits on which it runs in the [HDK reference manual](/docs/v5.7/reference/contributing-tools.html#arm-mbed-hdk) or on the [DAPLink page](/docs/v5.7/tools/daplink.html). The HDK includes reference circuits you can use to create your own boards, and DAPLink is the firmware that runs on these circuits.
76+
You can find more information about the Mbed interface and the circuits on which it runs in the [HDK reference manual](/docs/development/reference/contributing-tools.html#arm-mbed-hdk) or on the [DAPLink page](/docs/development/tools/daplink.html). The HDK includes reference circuits you can use to create your own boards, and DAPLink is the firmware that runs on these circuits.
7777

7878
#### Connectivity
7979

0 commit comments

Comments
 (0)