STM32 core 3.0.1-dev
Arduino core for STM32 based boards: API reference
← STM32duino documentation
Loading...
Searching...
No Matches
hooks.c File Reference

Weak hooks overridable by libraries or sketches: yield() and dtr_togglingHook(). More...

#include <stdint.h>

Functions

static void __empty ()
 Empty yield() hook.
 
void yield (void)
 

Detailed Description

Weak hooks overridable by libraries or sketches: yield() and dtr_togglingHook().

Function Documentation

◆ __empty()

static void __empty ( )
static

Empty yield() hook.

This function is intended to be used by library writers to build libraries or sketches that support cooperative threads.

It is defined as a weak symbol and it can be redefined to implement a real cooperative scheduler.