VSF Documented
vsf_wifi_rt28xx.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_WIFI_RT28XX_H__
19#define __VSF_WIFI_RT28XX_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "../../vsf_wifi_cfg.h"
24
25#if VSF_WIFI_USE_RT28XX == ENABLED
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31/*============================ GLOBAL VARIABLES ==============================*/
32
33/*
34 * Firmware blob declared by chip/rt28xx/vsf_wifi_rt2870_firmware.c (weak
35 * stub). Link a strong override to ship the real rt2870.bin; the rt28xx
36 * chip driver uses size > 0 as the trigger to invoke run_blob during
37 * firmware_load.
38 */
39extern const uint8_t __rt2870_firmware_data[];
41
42/*============================ LOGGING HELPERS ===============================*/
43
44#if VSF_WIFI_CFG_CHIP_RT28XX_LOG_LEVEL >= 1
45# define vsf_wifi_chip_rt28xx_trace_error(...) vsf_trace_error(__VA_ARGS__)
46#else
47# define vsf_wifi_chip_rt28xx_trace_error(...) ((void)0)
48#endif
49
50#if VSF_WIFI_CFG_CHIP_RT28XX_LOG_LEVEL >= 2
51# define vsf_wifi_chip_rt28xx_trace_info(...) vsf_trace_info(__VA_ARGS__)
52#else
53# define vsf_wifi_chip_rt28xx_trace_info(...) ((void)0)
54#endif
55
56#if VSF_WIFI_CFG_CHIP_RT28XX_LOG_LEVEL >= 4
57# define vsf_wifi_chip_rt28xx_trace_debug(...) vsf_trace_info(__VA_ARGS__)
58#else
59# define vsf_wifi_chip_rt28xx_trace_debug(...) ((void)0)
60#endif
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif // VSF_WIFI_USE_RT28XX
67#endif // __VSF_WIFI_RT28XX_H__
unsigned uint32_t
Definition stdint.h:9
unsigned char uint8_t
Definition stdint.h:5
const uint8_t __rt2870_firmware_data[]
Definition vsf_wifi_rt2870_firmware.c:64
const uint32_t __rt2870_firmware_size
Definition vsf_wifi_rt2870_firmware.c:67
Generated from commit: vsfteam/vsf@d3b40b2