1 /* 2 * Copyright (c) 2022 Winner Microelectronics Co., 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 16 #ifndef WM_AT_RI_H 17 #define WM_AT_RI_H 18 19 /** 20 * @defgroup APP_APIs APP APIs 21 * @brief APP APIs 22 */ 23 24 /** 25 * @addtogroup APP_APIs 26 * @{ 27 */ 28 29 /** 30 * @defgroup AT_RI_APIs AT_RI APIs 31 * @brief AT_RI command APIs 32 */ 33 34 /** 35 * @addtogroup AT_RI_APIs 36 * @{ 37 */ 38 39 /** 40 * @brief This function is used to initialize hostif task 41 used by AT&RI Command 42 * 43 * @param None 44 * 45 * @retval 0 success 46 * @retval other failed 47 * 48 * @note Usually the system will call this api at power on. 49 */ 50 int tls_hostif_init(void); 51 52 /** 53 * @} 54 */ 55 56 /** 57 * @} 58 */ 59 60 /** 61 * @brief This function is used to initialize high speed SPI 62 * 63 * @param None 64 * 65 * @retval 0 success 66 * @retval other failed 67 * 68 * @note Users can decide to call this api or not according to his application. 69 */ 70 int tls_hspi_init(void); 71 72 /** 73 * @brief This function is used to initialize UART 74 * 75 * @param None 76 * 77 * @return None 78 * 79 * @note Usually the system will call this api at power on. 80 */ 81 void tls_uart_init(void); 82 83 #endif /* WM_AT_RI_H */ 84 85