VSF Documented
vsf_sdmmc_mal.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_SDMMC_MAL_H__
19#define __VSF_SDMMC_MAL_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "../../vsf_mal_cfg.h"
24
25#if VSF_USE_MAL == ENABLED && VSF_MAL_USE_SDMMC_MAL == ENABLED && VSF_HAL_USE_SDIO == ENABLED
26
27#include "hal/vsf_hal.h"
28#include "kernel/vsf_kernel.h"
29
30#if defined(__VSF_SDMMC_MAL_CLASS_IMPLEMENT)
31# undef __VSF_SDMMC_MAL_CLASS_IMPLEMENT
32# define __VSF_CLASS_IMPLEMENT__
33#endif
34
35#include "utilities/ooc_class.h"
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41/*============================ MACROS ========================================*/
42
43#if VSF_KERNEL_CFG_SUPPORT_CALLBACK_TIMER != ENABLED
44# error Please enable VSF_KERNEL_CFG_SUPPORT_CALLBACK_TIMER
45#endif
46
47/*============================ MACROFIED FUNCTIONS ===========================*/
48/*============================ TYPES =========================================*/
49
51 public_member(
52 implement(vk_mal_t)
53 vsf_sdio_t *sdio;
54 vsf_arch_prio_t hw_priority;
55 implement(vsf_sdio_probe_t)
56 )
57 private_member(
59 vsf_eda_t *eda;
60 bool is_probing;
61 bool is_stopping;
62 )
63};
64
65/*============================ GLOBAL VARIABLES ==============================*/
66
68
69/*============================ PROTOTYPES ====================================*/
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif // VSF_USE_MAL && VSF_MAL_USE_SDMMC_MAL && VSF_HAL_USE_SDIO
76#endif // __VSF_SDMMC_MAL_H__
mal driver
Definition vsf_mal.h:98
mal class
Definition vsf_mal.h:154
Definition vsf_sdmmc_mal.h:50
Definition vsf_eda.h:848
Definition vsf_eda.h:766
Definition sdio_probe.h:46
vsf_arch_prio_t
Definition cortex_a_generic.h:88
#define vsf_class(__name)
Definition ooc_class.h:48
Definition vsf_template_sdio.h:734
const vk_mal_drv_t vk_sdmmc_mal_drv