comparison src/cs/drivers/drv_app/r2d/r2d_onoff.c @ 217:6541e43f88e5

R2D display on/off control implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 24 Apr 2021 23:38:18 +0000
parents
children 0196b6bf633c
comparison
equal deleted inserted replaced
216:777698cf6583 217:6541e43f88e5
1 /*
2 * This FreeCalypso-added R2D module implements on/off control
3 * for BLRR (backlight required for readability) displays.
4 */
5
6 #include "rv/rv_general.h"
7 #include "r2d/r2d_config.h"
8 #include "r2d/r2d_messages.h"
9 #include "r2d/r2d_blrr_api.h"
10
11 #ifdef CONFIG_TARGET_LUNA
12 #include "r2d/lcds/luna/r2d_onoff_i.c"
13 #elif defined(CONFIG_TARGET_C139)
14 #include "r2d/lcds/c139/r2d_onoff_i.c"
15 #else
16 #error "R2D on/off module selection: unsupported target"
17 #endif
18
19 void r2d_process_onoff_message(T_R2D_EVT *msg)
20 {
21 r2d_onoff_action(msg->status);
22 }