Cover image
Try Now
2021-09-09

Emballage Freertos dans les classes C ++ modernes

3 years

Works with Finder

4

Github Watches

8

Github Forks

35

Github Stars

FreeRTOS Modern C++ Wrappers

License

freertos-mcpp is a C++ wrapper library that allows developers to use the ubiquitous FreeRTOS kernel while simplifying its use by a new API that closely follows the C++ standard classes.

Features

  • No virtual classes, the wrapper classes accurately encapsulate the underlying data structures
  • Promotes static allocation, optimizing RAM use and reducing heap fragmentation risks
  • Public API closely matches the standard C++ thread support library
  • The API selects the threading or interrupt service routine (xFromISR) FreeRTOS API calls by detecting ISR context

Compatibility

  • C++11 and above
  • Tested with FreeRTOS 10, its public API is stable enough to enable the use on a wide range of versions
  • Only works with FreeRTOS ports that have xPortIsInsideInterrupt() call implemented

Porting

This library requires certain configuration values to be set for correct operation. Consider the recommended settings for FreeRTOSConfig.h:

// required globally
#define configSUPPORT_STATIC_ALLOCATION         1

// required to allow termination of threads and automatic resource freeing (see thread documentation)
// and for thread_owner that builds on it
#define configSUPPORT_DYNAMIC_ALLOCATION        1
    extern void vTaskExitHandler(void);
#define configTASK_RETURN_ADDRESS               vTaskExitHandler

// required for thread termination signalling, used by thread::join
// configNUM_THREAD_LOCAL_STORAGE_POINTERS must be higher than configTHREAD_EXIT_CONDITION_INDEX
#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 1
#define configTHREAD_EXIT_CONDITION_INDEX       0

// required to support mutex, timed_mutex
#define configUSE_MUTEXES                       1

// required to support recursive_mutex, recursive_timed_mutex
#define configUSE_RECURSIVE_MUTEXES             1

// required to support counting_semaphore
#define configUSE_COUNTING_SEMAPHORES           1


// recommended to use on Cortex Mx architectures (see src/helpers/runtime_stats_timer.c)
#define configGENERATE_RUN_TIME_STATS           1
    extern void ConfigureTimerForRunTimeStats(void);
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()    ConfigureTimerForRunTimeStats()
    extern uint32_t GetRuntimeCounterValueFromISR(void);
#define portGET_RUN_TIME_COUNTER_VALUE()            GetRuntimeCounterValueFromISR()

In addition to the C++ wrappers, there are helper files located in src/helpers for some common use-cases:

  1. tasks_static.c is required as source to support static allocation of kernel objects
  2. runtime_stats_timer.c is a zero-cost runtime statistics timer for Cortex Mx architectures
  3. malloc_free.c and new_delete_ops.cpp redirect heap allocation to FreeRTOS's heap management

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • jae-jae
  • MCP Server pour récupérer le contenu de la page Web à l'aide du navigateur sans tête du dramwright.

  • ravitemer
  • Un puissant plugin Neovim pour gérer les serveurs MCP (Protocole de contexte modèle)

  • patruff
  • Pont entre les serveurs Olllama et MCP, permettant aux LLM locaux d'utiliser des outils de protocole de contexte de modèle

  • pontusab
  • La communauté du curseur et de la planche à voile, recherchez des règles et des MCP

  • av
  • Exécutez sans effort LLM Backends, API, Frontends et Services avec une seule commande.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.

  • Mintplex-Labs
  • L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.

  • appcypher
  • Serveurs MCP géniaux - une liste organisée de serveurs de protocole de contexte de modèle

    Reviews

    2 (1)
    Avatar
    user_nafTJBTT
    2025-04-17

    I have been using the freertos-mcpp from IntergatedCircuits, and I am thoroughly impressed with its capabilities. This tool synergizes FreeRTOS with MCP perfectly, enhancing performance while keeping the complexity minimal. The repository is well-documented, making the integration process straightforward. Highly recommended for anyone looking to optimize their real-time operating systems with practical and efficient solutions.