1 /* 2 * Copyright (C) 2022 Beken Corporation 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 16 #include "bk_cli.h" 17 #include <common/sys_config.h> 18 19 #define BLE_CMD_CNT (sizeof(s_ble_commands) / sizeof(struct cli_command)) 20 21 static const struct cli_command s_ble_commands[] = { 22 #if (CONFIG_BLE == 1) 23 {"ble", "ble arg1 arg2", ble_command}, 24 #endif 25 }; 26 cli_ble_init(void)27int cli_ble_init(void) 28 { 29 return cli_register_commands(s_ble_commands, BLE_CMD_CNT); 30 } 31