• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Chipsea Technologies (Shenzhen) Corp., Ltd. All rights reserved.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #include "cs_target_config.h"
16 #if APP_SUPPORT_HID == 1
17 #include "cs_adp_api.h"
18 #include "al_rtos.h"
19 #include "app_bt.h"
20 
app_hid_key_handle(uint32_t key)21 BOOL app_hid_key_handle(uint32_t key)
22 {
23     BOOL ret = FALSE;
24 
25     switch(key){
26         case APP_KEY_VOLSUB|APP_KEY_PRESS:
27             break;
28         case APP_KEY_VOLADD|APP_KEY_DOUBLE_CLICK:
29             break;
30         default:
31             break;
32     }
33     return ret;
34 }
35 
app_hid_msg_handle(CS_EVENT * event)36 void app_hid_msg_handle(CS_EVENT *event)
37 {
38     CS_ADP_HID_EVENT *cs_hid_msg = (CS_ADP_HID_EVENT *)event->Param;
39 
40     TRACE("APP:app_hid_msg_handle\n");
41 
42     switch(event->EventId){
43         case CS_ADP_HID_CONNECTED:
44 
45         break;
46         case CS_ADP_HID_DISCONNECTED:
47 
48         break;
49     }
50 }
51 
52 
53 #endif
54