---
title: "FreeRTOS™ Code Revisions - Background Worker Edition"
canonical_url: https://developer.repebble.com/blog/2014/10/10/FreeRTOS-Modifications-From-Pebble-v2/
last_updated: 2025-02-25
sdk_version: 4.33.1
---
# FreeRTOS™ Code Revisions - Background Worker Edition

Source: https://developer.repebble.com/blog/2014/10/10/FreeRTOS-Modifications-From-Pebble-v2/

This is the Pebble Developer Blog. For general Pebble news and announcements, visit the main blog at [repebble.com/blog](https://repebble.com/blog).

- 10 October 2014
- [Brad Murray](https://developer.repebble.com/blog/authors/brad/)
- [Down the Rabbit Hole](https://developer.repebble.com/blog/tags/down-the-rabbit-hole/)
- [Comments](https://developer.repebble.com/blog/2014/10/10/FreeRTOS-Modifications-From-Pebble-v2.md#comments)

As part of our commitment to the open source community, Pebble is releasing its recent modifications to the FreeRTOS project. Pebble has made a few minor changes to FreeRTOS to enable Background Workers for PebbleOS 2.6 as well as to make Pebble easier to monitor and debug.

The changes are available [as a tarball](http://assets.getpebble.com.s3-website-us-east-1.amazonaws.com/dev-portal/FreeRTOS-8.0.0-Pebble.2.tar.gz).

Below is a changelog of the modifications since the last time we released our fork of the FreeRTOS code back in May.

- Added `UBaseType_t uxQueueGetRecursiveCallCount( QueueHandle_t xMutex ) PRIVILEGED_FUNCTION;` to queue.h

- Added `configASSERT_SAFE_TO_CALL_FREERTOS_API();`

- Added `configASSERT_SAFE_TO_CALL_FREERTOS_FROMISR_API();`

- Added `uintptr_t ulTaskGetStackStart( xTaskHandle xTask );` to task.h

- Added `bool vPortInCritical( void );` to port.c

- Fixed an issue with vPortStoreTaskMPUSettings that occurred when more than one task wanted to configure MPU regions

Pebble would like to again extend its thanks to FreeRTOS and its community. We'll be releasing additional updates as we continue to modify FreeRTOS in the future. If you have any questions, don’t hesitate to [contact us](https://developer.repebble.com/contact.md).

* * *
