FreeCalypso > hg > fc-tourmaline
view src/cs/drivers/drv_app/r2d/r2d_onoff.c @ 266:160a5b3a076c
new ABB_SLEEP_RESTRICTION definition in fc-target.h
When we first introduced the mechanism to suppress ABB superdeep sleep
on targets with LCDs powered from Iota VRIO, we made it conditional on
CONFIG_TARGET_LUNA. This conditional is now being generalized: the
feature in question is now conditionalized on the new ABB_SLEEP_RESTRICTION
preprocessor symbol, to be defined in targets/*.h for those targets
that need it. The new ABB_SLEEP_RESTRICTION definition is being added
to targets/luna[12].h to keep the actual logic unchanged.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 02 Jun 2021 02:12:14 +0000 |
parents | 6541e43f88e5 |
children | 0196b6bf633c |
line wrap: on
line source
/* * This FreeCalypso-added R2D module implements on/off control * for BLRR (backlight required for readability) displays. */ #include "rv/rv_general.h" #include "r2d/r2d_config.h" #include "r2d/r2d_messages.h" #include "r2d/r2d_blrr_api.h" #ifdef CONFIG_TARGET_LUNA #include "r2d/lcds/luna/r2d_onoff_i.c" #elif defined(CONFIG_TARGET_C139) #include "r2d/lcds/c139/r2d_onoff_i.c" #else #error "R2D on/off module selection: unsupported target" #endif void r2d_process_onoff_message(T_R2D_EVT *msg) { r2d_onoff_action(msg->status); }