feilipu / Arduino_FreeRTOS_Library

A FreeRTOS Library for all Arduino ATmega Devices (Uno R3, Leonardo, Mega, etc).
MIT License
841 stars 204 forks source link

Allow disable idle hook without modify code. #72

Closed hectorespert closed 4 years ago

hectorespert commented 4 years ago

It allows to assign a value for configUSE_IDLE_HOOK property to disable idle hook if don't use it. For example, using Platform.io project configuration.

[env:uno]
platform = atmelavr
board = uno
framework = arduino

build_flags =
  -DconfigUSE_IDLE_HOOK=0