From 456a38d34bf0e54467cadfe6d6bda52ea31539db Mon Sep 17 00:00:00 2001 From: kar-rahul-aws Date: Tue, 30 Jan 2024 00:31:25 +0530 Subject: [PATCH 1/9] Update formatting changes using
tags --- booktitle.md | 35 ++++++++++++++++++++++++++++++++++- ch04.md | 18 +++++++++--------- ch05.md | 6 +++--- ch06.md | 6 +++--- ch07.md | 8 ++++---- ch08.md | 4 ++-- ch09.md | 4 ++-- ch10.md | 44 ++++++++++++++++++++++---------------------- copyright.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ dedication.md | 10 ++++++++++ 10 files changed, 137 insertions(+), 46 deletions(-) diff --git a/booktitle.md b/booktitle.md index 12c789d..9b76b6b 100644 --- a/booktitle.md +++ b/booktitle.md @@ -29,8 +29,41 @@


+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- +
[^1]: FreeRTOS™, FreeRTOS.org™ and the FreeRTOS logo are trademarks of Amazon Web Services. [^2]: OPEN**RTOS**® and SAFE**RTOS**® are trademarks of WITTENSTEIN High Integrity Systems Ltd. All other brands or product names are the property of their respective holders. +
diff --git a/ch04.md b/ch04.md index cce2e64..6abc376 100644 --- a/ch04.md +++ b/ch04.md @@ -255,7 +255,7 @@ BaseType_t xTaskCreate( TaskFunction_t pvTaskCode, information on heap memory management. - + --- ***Example 4.1*** *Creating tasks* @@ -479,7 +479,7 @@ void vTask1( void * pvParameters ) ***Listing 4.7*** *Creating a task from within another task after the scheduler has started* - + --- ***Example 4.2*** *Using the task parameter* @@ -739,7 +739,7 @@ internally. describes configuration constants which affect when the scheduler will select a new task to run and when a tick interrupt will execute. - + --- ***Example 4.3*** *Experimenting with priorities* @@ -918,7 +918,7 @@ Figure 4.7 expands on the simplified state diagram to include all of the ***Figure 4.7*** *Full task state machine* *** - + --- ***Example 4.4*** *Using the *Blocked* state to create a delay @@ -1157,7 +1157,7 @@ void vTaskDelayUntil( TickType_t * pxPreviousWakeTime, be used to convert a time specified in milliseconds into a time specified in ticks. - + --- ***Example 4.5*** *Converting the example tasks to use vTaskDelayUntil()* @@ -1216,7 +1216,7 @@ void vTaskFunction( void * pvParameters ) The output produced by Example 4.5 is exactly as per that shown for Example 4.4 in Figure 4.8. - + --- ***Example 4.6*** *Combining blocking and non-blocking tasks* @@ -1445,7 +1445,7 @@ void vApplicationIdleHook( void ); ***Listing 4.18*** *The idle task hook function name and prototype* - + --- ***Example 4.7*** *Defining an idle task hook function @@ -1627,7 +1627,7 @@ UBaseType_t uxTaskPriorityGet( TaskHandle_t xTask ); The priority currently assigned to the task being queried. - + --- ***Example 4.8*** *Changing task priorities* @@ -1887,7 +1887,7 @@ void vTaskDelete( TaskHandle_t xTaskToDelete ); handle. - + --- ***Example 4.9*** *Deleting tasks* diff --git a/ch05.md b/ch05.md index 8a27000..4661d9a 100644 --- a/ch05.md +++ b/ch05.md @@ -408,7 +408,7 @@ UBaseType_t uxQueueMessagesWaiting( QueueHandle_t xQueue ); then the queue is empty. - + --- ***Example 5.1*** *Blocking when receiving from a queue* @@ -663,7 +663,7 @@ Chapter (RB-TBD) shows how to extend this design pattern such that the controller task can reply directly to the task that queued a structure. - + --- ***Example 5.2*** *Blocking when sending to a queue, and sending structures on a queue* @@ -1486,7 +1486,7 @@ QueueSetMemberHandle_t xQueueSelectFromSet( QueueSetHandle_t xQueueSet, in the set, but the block time expired before that happened. - + --- ***Example 5.3*** *Using a Queue Set diff --git a/ch06.md b/ch06.md index c0d0fb2..76969d6 100644 --- a/ch06.md +++ b/ch06.md @@ -578,7 +578,7 @@ BaseType_t xTimerStart( TimerHandle_t xTimer, TickType_t xTicksToWait ); specified block time expired before that happened. - + --- ***Example 6.1*** *Creating one-shot and auto-reload timers* @@ -782,7 +782,7 @@ void *pvTimerGetTimerID( const TimerHandle_t xTimer ); The ID of the software timer being queried. - + --- ***Example 6.2*** *Using the callback function parameter and the software timer ID* @@ -1173,7 +1173,7 @@ BaseType_t xTimerReset( TimerHandle_t xTimer, TickType_t xTicksToWait ); expired before that happened. - + --- ***Example 6.3*** *Resetting a software timer* diff --git a/ch07.md b/ch07.md index 98c8ebf..8f3690a 100644 --- a/ch07.md +++ b/ch07.md @@ -616,7 +616,7 @@ BaseType_t xSemaphoreGiveFromISR( SemaphoreHandle_t xSemaphore, `xSemaphoreGiveFromISR()` will return `pdFAIL`. - + --- ***Example 7.1*** *Using a binary semaphore to synchronize a task with an interrupt* @@ -1083,7 +1083,7 @@ SemaphoreHandle_t xSemaphoreCreateCounting( UBaseType_t uxMaxCount, to the created semaphore. - + --- ***Example 7.2*** *Using a counting semaphore to synchronize a task with an interrupt* @@ -1310,7 +1310,7 @@ void vPendableFunction( void *pvParameter1, uint32_t ulParameter2 ); command queue. - + --- ***Example 7.3*** *Centralized deferred interrupt processing* @@ -1583,7 +1583,7 @@ that are suitable for production code, include: than the raw data) to a task. This was previously demonstrated by Figure 5.4. - + --- ***Example 7.4*** *Sending and receiving on a queue from within an interrupt* diff --git a/ch08.md b/ch08.md index e79a996..80fec3c 100644 --- a/ch08.md +++ b/ch08.md @@ -513,7 +513,7 @@ SemaphoreHandle_t xSemaphoreCreateMutex( void ); created mutex. - + --- ***Example 8.1*** *Rewriting vPrintString() to use a semaphore* @@ -1139,7 +1139,7 @@ static void prvStdioGatekeeperTask( void *pvParameters ) ***Listing 8.18*** *The gatekeeper task* - + --- ***Example 8.2*** *The alternative implementation for print task* diff --git a/ch09.md b/ch09.md index 9f00719..591be39 100644 --- a/ch09.md +++ b/ch09.md @@ -520,7 +520,7 @@ StaticEventGroup_t ** ppxEventGroupBuffer ); - `pdFALSE` will be returned if the buffer was not successfully retrieved. - + --- ***Example 9.1*** *Experimenting with event groups* @@ -1034,7 +1034,7 @@ EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup, condition. - + --- ***Example 9.2*** *Synchronizing tasks* diff --git a/ch10.md b/ch10.md index 2514691..5f6f384 100644 --- a/ch10.md +++ b/ch10.md @@ -181,26 +181,26 @@ macros will be called functions throughout this book. #### 10.3.1.1 The complete list of API functions 27 -`xTaskNotifyGive` -`xTaskNotifyGiveIndexed` -`vTaskNotifyGiveFromISR` -`vTaskNotifyGiveIndexedFromISR` -`vTaskNotifyTake` -`vTaskNotifyTakeIndexed` -`xTaskNotify` -`xTaskNotifyIndexed` -`xTaskNotifyWait` -`xTaskNotifyWaitIndexed` -`xTaskNotifyStateClear` -`xTaskNotifyStateClearIndexed` -`ulTaskNotifyValueClear` -`ulTaskNotifyValueClearIndexed` -`xTaskNotifyAndQueryIndexedFromISR` -`xTaskNotifyAndQueryFromISR` -`xTaskNotifyFromISR` -`xTaskNotifyIndexedFromISR` -`xTaskNotifyAndQuery` -`xTaskNotifyAndQueryIndexed` +- `xTaskNotifyGive` +- `xTaskNotifyGiveIndexed` +- `vTaskNotifyGiveFromISR` +- `vTaskNotifyGiveIndexedFromISR` +- `vTaskNotifyTake` +- `vTaskNotifyTakeIndexed` +- `xTaskNotify` +- `xTaskNotifyIndexed` +- `xTaskNotifyWait` +- `xTaskNotifyWaitIndexed` +- `xTaskNotifyStateClear` +- `xTaskNotifyStateClearIndexed` +- `ulTaskNotifyValueClear` +- `ulTaskNotifyValueClearIndexed` +- `xTaskNotifyAndQueryIndexedFromISR` +- `xTaskNotifyAndQueryFromISR` +- `xTaskNotifyFromISR` +- `xTaskNotifyIndexedFromISR` +- `xTaskNotifyAndQuery` +- `xTaskNotifyAndQueryIndexed` *(27): These functions are actually implemented as macros.* @@ -359,7 +359,7 @@ xTicksToWait ); the specified block time expired before that happened. - + --- ***Example 10.1*** *Using a task notification in place of a semaphore, method 1* @@ -498,7 +498,7 @@ produced by the periodic task. Further explanation is provided in Figure 10.4. ***Figure 10.4*** *The sequence of execution when Example 10.1 is executed* * * * - + --- ***Example 10.2*** *Using a task notification in place of a semaphore, method 2* diff --git a/copyright.md b/copyright.md index 96d7d3a..53b79cb 100644 --- a/copyright.md +++ b/copyright.md @@ -22,6 +22,52 @@


+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + +
* * * > [!Note] @@ -30,3 +76,5 @@ * * *
+ + diff --git a/dedication.md b/dedication.md index ab35741..36b6f7f 100644 --- a/dedication.md +++ b/dedication.md @@ -1,2 +1,12 @@ +
+
+
+
+
+
+
+
+
> To Caroline, India and Max. - R.B. > Dedicated to the next generation of great systems powered by FreeRTOS. - J.J. +
\ No newline at end of file From a495b05b36b9b9e578397dd583cdf9394e54c773 Mon Sep 17 00:00:00 2001 From: kar-rahul-aws Date: Tue, 30 Jan 2024 00:49:49 +0530 Subject: [PATCH 2/9] Update Ch07.md --- ch07.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch07.md b/ch07.md index 8f3690a..ec643df 100644 --- a/ch07.md +++ b/ch07.md @@ -1075,7 +1075,7 @@ SemaphoreHandle_t xSemaphoreCreateCounting( UBaseType_t uxMaxCount, If NULL is returned, the semaphore cannot be created because there is insufficient heap memory available for FreeRTOS to allocate the - semaphore data structures. Chapter 2 provides more information on heap + semaphore data structures. Chapter 3 provides more information on heap memory management. If a non-NULL value is returned, it indicates that the semaphore has been From 7420f2c00fad7b8910c3768bb8f7470d1a2f2fb4 Mon Sep 17 00:00:00 2001 From: Nishant <114558872+sirnish@users.noreply.github.com> Date: Tue, 30 Jan 2024 01:27:18 +0530 Subject: [PATCH 3/9] Update booktitle.md --- booktitle.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/booktitle.md b/booktitle.md index 9b76b6b..354ecd4 100644 --- a/booktitle.md +++ b/booktitle.md @@ -63,7 +63,7 @@
-
+
[^1]: FreeRTOS™, FreeRTOS.org™ and the FreeRTOS logo are trademarks of Amazon Web Services. [^2]: OPEN**RTOS**® and SAFE**RTOS**® are trademarks of WITTENSTEIN High Integrity Systems Ltd. All other brands or product names are the property of their respective holders.
From 4154d0381c23ac15b30b9e6e5005c3dc66370d43 Mon Sep 17 00:00:00 2001 From: Nishant <114558872+sirnish@users.noreply.github.com> Date: Tue, 30 Jan 2024 01:32:52 +0530 Subject: [PATCH 4/9] Update booktitle.md --- booktitle.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/booktitle.md b/booktitle.md index 354ecd4..070dd8d 100644 --- a/booktitle.md +++ b/booktitle.md @@ -64,6 +64,8 @@
+ [^1]: FreeRTOS™, FreeRTOS.org™ and the FreeRTOS logo are trademarks of Amazon Web Services. [^2]: OPEN**RTOS**® and SAFE**RTOS**® are trademarks of WITTENSTEIN High Integrity Systems Ltd. All other brands or product names are the property of their respective holders. +
From dec07c040cc23e53828556fa340f1081f92d811d Mon Sep 17 00:00:00 2001 From: Nishant <114558872+sirnish@users.noreply.github.com> Date: Tue, 30 Jan 2024 01:35:11 +0530 Subject: [PATCH 5/9] Update booktitle.md --- booktitle.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/booktitle.md b/booktitle.md index 070dd8d..b28c4af 100644 --- a/booktitle.md +++ b/booktitle.md @@ -1,5 +1,8 @@
+
+
+ @@ -15,11 +18,10 @@


-
-
+


From 1d40fd027165ccb85ffc17af6e6911d1fe675690 Mon Sep 17 00:00:00 2001 From: Nishant <114558872+sirnish@users.noreply.github.com> Date: Tue, 30 Jan 2024 01:46:58 +0530 Subject: [PATCH 6/9] Update copyright.md --- copyright.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/copyright.md b/copyright.md index 53b79cb..e4ce23d 100644 --- a/copyright.md +++ b/copyright.md @@ -1,9 +1,11 @@
- -

+ + + +

@@ -71,10 +73,10 @@ * * * > [!Note] -> This text is provided for free. **In return we ask that you create a pull -> request to provide corrections**. Post feedback and comments to [https://forums.FreeRTOS.org](https://forums.FreeRTOS.org). +> This text is provided for free. **In return we ask that you create a pull request to provide corrections**. +> Post feedback and comments to [https://forums.FreeRTOS.org](https://forums.FreeRTOS.org). * * * -
+
From a4d0f41704cf6f16b1d28547f1418540b97208a7 Mon Sep 17 00:00:00 2001 From: Nishant <114558872+sirnish@users.noreply.github.com> Date: Tue, 30 Jan 2024 02:06:57 +0530 Subject: [PATCH 7/9] Update copyright.md --- copyright.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/copyright.md b/copyright.md index e4ce23d..ef50938 100644 --- a/copyright.md +++ b/copyright.md @@ -68,15 +68,15 @@
+
-
- -* * * -> [!Note] -> This text is provided for free. **In return we ask that you create a pull request to provide corrections**. -> Post feedback and comments to [https://forums.FreeRTOS.org](https://forums.FreeRTOS.org). * * * +*This text is provided for free. **In return we ask that you create a pull request to provide corrections**.* +
+*Post feedback and comments to [https://forums.FreeRTOS.org](https://forums.FreeRTOS.org).* +* * *
+ From e6d30f86718e05f775b2ddfacc98562a5f84ad3d Mon Sep 17 00:00:00 2001 From: Nishant <114558872+sirnish@users.noreply.github.com> Date: Tue, 30 Jan 2024 02:10:08 +0530 Subject: [PATCH 8/9] Update dedication.md --- dedication.md | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/dedication.md b/dedication.md index 36b6f7f..e421f46 100644 --- a/dedication.md +++ b/dedication.md @@ -7,6 +7,22 @@


-> To Caroline, India and Max. - R.B. -> Dedicated to the next generation of great systems powered by FreeRTOS. - J.J. -
\ No newline at end of file +
+
+ +***To Caroline, India and Max.*** - R.B. + +***Dedicated to the next generation of great systems powered by FreeRTOS.*** - J.J. + +
+
+
+
+
+
+
+
+
+
+ + From 1b966e4c0a9108d1ee6de3896edecb65cd9e6ff8 Mon Sep 17 00:00:00 2001 From: Nishant <114558872+sirnish@users.noreply.github.com> Date: Tue, 30 Jan 2024 02:13:56 +0530 Subject: [PATCH 9/9] Update dedication.md --- dedication.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dedication.md b/dedication.md index e421f46..a8d24af 100644 --- a/dedication.md +++ b/dedication.md @@ -10,9 +10,9 @@

-***To Caroline, India and Max.*** - R.B. +***To Caroline, India and Max.*** **- R.B.** -***Dedicated to the next generation of great systems powered by FreeRTOS.*** - J.J. +***Dedicated to the next generation of great systems powered by FreeRTOS.*** **- J.J.**