-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Two seq. diagram added, for semaphore and queue examples
- Loading branch information
Showing
5 changed files
with
95 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
' FreeRTOS Queue example | ||
|
||
@startuml | ||
|
||
skinparam sequence { | ||
ArrowColor #009944 | ||
ActorBorderColor #009944 | ||
LifeLineBorderColor #009944 | ||
LifeLineBackgroundColor #00AA55 | ||
ParticipantBorderColor #009944 | ||
ParticipantBackgroundColor #00AA55 | ||
EntityBorderColor #009944 | ||
EntityBackgroundColor #00AA55 | ||
} | ||
|
||
participant Tasca1 order 1 | ||
entity Queue order 2 | ||
participant GPIO_ODD_ISR order 3 | ||
participant GPIO_EVEN_ISR order 4 | ||
activate Tasca1 | ||
||| | ||
Tasca1 -> Queue: xQueueReceive() | ||
deactivate Tasca1 | ||
|
||
||| | ||
GPIO_ODD_ISR o<--]: IRQ_ODD | ||
activate GPIO_ODD_ISR | ||
|
||
GPIO_ODD_ISR -> Queue: xQueueSendFromISR() | ||
Queue --> GPIO_ODD_ISR | ||
Queue --> Tasca1 | ||
destroy GPIO_ODD_ISR | ||
activate Tasca1 | ||
|
||
GPIO_EVEN_ISR o<--]: IRQ_EVEN | ||
activate GPIO_EVEN_ISR | ||
GPIO_EVEN_ISR -> Queue: xQueueSendFromISR() | ||
Queue --> GPIO_EVEN_ISR | ||
destroy GPIO_EVEN_ISR | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
' FreeRTOS Semaphore example | ||
|
||
@startuml | ||
|
||
skinparam sequence { | ||
ArrowColor #009944 | ||
ActorBorderColor #009944 | ||
LifeLineBorderColor #009944 | ||
LifeLineBackgroundColor #00AA55 | ||
ParticipantBorderColor #009944 | ||
ParticipantBackgroundColor #00AA55 | ||
EntityBorderColor #009944 | ||
EntityBackgroundColor #00AA55 | ||
} | ||
|
||
participant Tasca1 order 1 | ||
entity Semaphore order 2 | ||
participant GPIO_ISR order 3 | ||
activate Tasca1 | ||
||| | ||
Tasca1 -> Semaphore: xSemaphoreTake() | ||
deactivate Tasca1 | ||
|
||
||| | ||
GPIO_ISR o<--]: IRQ | ||
activate GPIO_ISR | ||
|
||
GPIO_ISR-> Semaphore: xSemaphoreGiveFromISR() | ||
Semaphore --> GPIO_ISR | ||
Semaphore --> Tasca1 | ||
destroy GPIO_ISR | ||
activate Tasca1 | ||
|
||
|
||
|
||
@enduml |