1 /* 2 * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /******************************************************************************* 8 * NOTICE 9 * The hal is not public api, don't use in application code. 10 * See readme.md in hal/include/hal/readme.md 11 ******************************************************************************/ 12 13 #pragma once 14 15 #include <stdint.h> 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 typedef struct parl_io_dev_t *parlio_soc_handle_t; // Parallel IO SOC layer handle 22 23 /** 24 * @brief HAL context type of Parallel IO driver 25 */ 26 typedef struct { 27 parlio_soc_handle_t regs; /*!< Parallel IO Register base address */ 28 } parlio_hal_context_t; 29 30 /** 31 * @brief Initialize the Parallel IO HAL driver 32 * 33 * @param hal: Parallel IO HAL context 34 */ 35 void parlio_hal_init(parlio_hal_context_t *hal); 36 37 /** 38 * @brief Deinitialize the Parallel IO HAL driver 39 * 40 * @param hal: Parallel IO HAL context 41 */ 42 void parlio_hal_deinit(parlio_hal_context_t *hal); 43 44 #ifdef __cplusplus 45 } 46 #endif 47