]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/lx-dad.git/blob - sw/app/lx_dad/appl_actions.c
Prepare build-able skeleton for LX_DAD application.
[fpga/lx-cpu1/lx-dad.git] / sw / app / lx_dad / appl_actions.c
1 #include "appl_defs.h"
2 #include <string.h>
3 #include <ul_log.h>
4
5 UL_LOG_CUST(ulogd_dad)
6
7 void appl_global_action_store_user_heper()
8 {
9  #ifdef APPL_WITH_DISTORE_EEPROM_USER
10   appl_distore_user_set_check4change();
11   appl_distore_user_change_check();
12  #endif /*APPL_WITH_DISTORE_EEPROM_USER*/
13 }
14
15 int appl_global_action(int action_code)
16 {
17   int res;
18
19   switch(action_code) {
20
21     case APPL_ACT_ERRCLR:
22       return 0;
23
24     case APPL_ACT_SETUP_SAVE:
25       appl_global_action_store_user_heper();
26       break;
27
28     case APPL_ACT_SERVICE_SAVE:
29      #ifdef APPL_WITH_DISTORE_KEYVAL_SERVICE
30       setup_distore_store();
31      #endif /*APPL_WITH_DISTORE_KEYVAL_SERVICE*/
32       break;
33
34   }
35   return 0;
36 }