Skip to content

update example snippets links #1285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api/io/PortIn.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The device-specific `PinNames.h` and the respective datasheet or reference manua

## PortIn hello, world

[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/users/mbed_official/code/PortIn_HelloWorld/)](https://os.mbed.com/teams/mbed_example/code/PortIn_HelloWorld/file/e78266d48649/main.cpp)
[![View code](https://www.mbed.com/embed/?url=https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_Drivers/PortIn_ex_1/)](https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_Drivers/PortIn_ex_1/main.cpp)

## Related content

Expand Down
2 changes: 1 addition & 1 deletion docs/api/io/PortInOut.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A mask can be supplied so you only use certain parts of a port, allowing other b

## PortInOut hello, world

[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/users/mbed_official/code/PortInOut_HelloWorld/)](https://os.mbed.com/teams/mbed_example/code/PortInOut_HelloWorld/file/3f1944b9de6a/main.cpp)
[![View code](https://www.mbed.com/embed/?url=https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_Drivers/PortInOut_ex_1/main.cpp)](https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_Drivers/PortInOut_ex_1/main.cpp)

## Related content

Expand Down
2 changes: 1 addition & 1 deletion docs/api/io/PortOut.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The device-specific `PinNames.h` and the respective datasheet or reference manua

## PortOut hello, world

[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/teams/mbed_example/code/PortOut_HelloWorld/)](https://os.mbed.com/teams/mbed_example/code/PortOut_HelloWorld/file/e4e6fab14d21/main.cpp)
[![View code](https://www.mbed.com/embed/?url=https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_Drivers/PortOut_ex_1/)](https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_Drivers/PortOut_ex_1/main.cpp)

## Related content

Expand Down
2 changes: 1 addition & 1 deletion docs/api/memory/MemoryPool.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ mpool.free(message);

This example shows [Queue](queue.html) and MemoryPool managing measurements.

[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/teams/mbed_example/code/rtos_queue/)](https://os.mbed.com/teams/mbed_example/code/rtos_queue/file/bbbae4aa4768/main.cpp)
[![View code](https://www.mbed.com/embed/?url=https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_RTOS/Queue/)](https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_RTOS/Queue/main.cpp)

## Related content

Expand Down
2 changes: 1 addition & 1 deletion docs/api/networkinterfaces/EthInterface.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Network interface `connect` failure causes:

Here is an example of an HTTP client program. The program brings up Ethernet as the underlying network interface and uses it to perform an HTTP transaction over a TCPSocket:

[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/teams/mbed_example/code/TCPSocket_Example/)](https://os.mbed.com/teams/mbed_example/code/TCPSocket_Example/file/50f1485931f1/main.cpp)
[![View code](https://www.mbed.com/embed/?url=https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_NetworkSocket/TCPSocket/)](https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_NetworkSocket/TCPSocket/main.cpp)

## Related content

Expand Down
2 changes: 1 addition & 1 deletion docs/api/rtos/events_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Note that though this document assumes the presence of a single event loop in th

Once you start the event loop, it can post events. Let's consider an example of a program that attaches two interrupt handlers for an InterruptIn object, using the InterruptIn `rise` and `fall` functions. The `rise` handler will run in interrupt context, and the `fall` handler will run in user context (more specifically, in the context of the event loop's thread). The full code for the example can be found below:

[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/teams/mbed_example/code/events_ex_1/)](https://os.mbed.com/teams/mbed_example/code/events_ex_1/file/69c11c7877b6/main.cpp)
[![View code](https://www.mbed.com/embed/?url=https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_RTOS/EventQueue_ex_1/)](https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_RTOS/EventQueue_ex_1/main.cpp)

The above code executes two handler functions (`rise_handler` and `fall_handler`) in two different contexts:

Expand Down
2 changes: 1 addition & 1 deletion docs/api/storage/QSPIFBlockDevice.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ For more information about the SFDP JEDEC standard, please see [its documentatio

This example creates a QSPIFBlockDevice, erases a sector, programs it, reads the block back and cleans up.

[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/teams/mbed_example/code/QSPIFBlockDevice_example/)](https://os.mbed.com/teams/mbed_example/code/QSPIFBlockDevice_example/file/5608693b47aa/main.cpp/)
[![View code](https://www.mbed.com/embed/?url=https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_Storage/QSPIFBlockDevice_ex_1/)](https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_Storage/QSPIFBlockDevice_ex_1/main.cpp)