Skip to content

update rtos examples links #1240

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
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/platform/Callback.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The Callback class is what’s known in C++ as a “Concrete Type”. That is, t

The Callback API provides a convenient way to pass arguments to spawned threads. This example uses a C function pointer in the Callback.

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

### Sonar example

Expand Down
2 changes: 1 addition & 1 deletion docs/api/rtos/Mail.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Mail works like a queue, with the added benefit of providing a memory pool for a

This code uses `mail` to manage measurement.

[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/teams/mbed_example/code/rtos_mail/)](https://os.mbed.com/teams/mbed_example/code/rtos_mail/file/9a5d61ef4113/main.cpp)
[![View code](https://www.mbed.com/embed/?url=https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_RTOS/Mail)](https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_RTOS/Mail/main.cpp)
2 changes: 1 addition & 1 deletion docs/api/rtos/Mutex.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ If synchronization is required in ISR, consider using semaphores.

Use Mutex to protect printf().

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

<span class="notes">**Note:** C standard library Mutexes<br>The Arm C standard library already has Mutexes in place to protect the access to `stdio`, so on the LPC1768 the above example is not necessary. On the other hand, the LPC11U24 does not provide default `stdio` Mutexes, making the above example a necessity.</br></span>

Expand Down
2 changes: 1 addition & 1 deletion docs/api/rtos/Semaphore.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ A semaphore manages thread access to a pool of shared resources of a certain typ

Use Semaphore to protect printf().

[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/teams/mbed_example/code/rtos_semaphore/)](https://os.mbed.com/teams/mbed_example/code/rtos_semaphore/file/755dee0042c3/main.cpp)
[![View code](https://www.mbed.com/embed/?url=https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_RTOS/Semaphore/)](https://github.com/ARMmbed/mbed-os-examples-docs_only/blob/master/APIs_RTOS/Semaphore/main.cpp)
4 changes: 2 additions & 2 deletions docs/api/rtos/Thread.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ typedef enum {

The code below uses two separate threads to blink two LEDs. The first thread is automatically created and executes the `main` function; the second thread is created explicitly inside `main`.

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

## Thread example with callbacks

The Callback API provides a convenient way to pass arguments to spawned threads.

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

## Debugging tips

Expand Down
2 changes: 1 addition & 1 deletion docs/api/rtos/rtos.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ A `Thread` can be in the following states:

Each `Thread` can wait for signals and be notified of events:

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

#### Status and error codes

Expand Down
2 changes: 1 addition & 1 deletion docs/program-setup/runtime/Execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ All the ISR handlers execute in this mode. You can use the same RTOS API in ISR

This example uses a message from the queue to trigger an interrupt.

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