93 lines
2.6 KiB
C
93 lines
2.6 KiB
C
/*
|
|
* @Descripttion:
|
|
* @version:
|
|
* @Author: sueRimn
|
|
* @Date: 2023-12-12 14:23:55
|
|
* @LastEditors: sueRimn
|
|
* @LastEditTime: 2024-06-07 13:46:09
|
|
*/
|
|
/*!
|
|
* \file main.h
|
|
*
|
|
* \brief The head file of main.c
|
|
*
|
|
* \copyright Revised BSD License, see section \ref LICENSE.
|
|
*
|
|
* \code
|
|
*
|
|
* _ __ _ ________ _
|
|
* | |/ /(_)___ / ____/ /_ (_)___
|
|
* | // / __ \/ / / __ \/ / __ \
|
|
* / |/ / / / / /___/ / / / / /_/ /
|
|
* /_/|_/_/_/ /_/\____/_/ /_/_/ .___/
|
|
* /_/
|
|
* (C) 2022-2025 XinChip
|
|
*
|
|
* \endcode
|
|
*
|
|
* \author ( XinChip ) Alex-J
|
|
*
|
|
* \author ( XinChip )
|
|
*/
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef __MAIN_H__
|
|
#define __MAIN_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
/*-----------------------------------------------------------------------------------
|
|
INCLUDE HEADE FILES
|
|
------------------------------------------------------------------------------------*/
|
|
#include "rf_config.h"
|
|
#include "xc6xxx.h"
|
|
#include "xc6xxx_rf_2_4g.h"
|
|
#include "xc6xxx_rf_ADV.h"
|
|
#include "rf_compatible_normal.h"
|
|
#include "rf_adv_config.h"
|
|
/*------------------------------------------------------------------------------------
|
|
Macros
|
|
-------------------------------------------------------------------------------------*/
|
|
#define ADV_BUFF_LEN XINCX_ADV_PIPE0_LEN
|
|
|
|
#define DEBUG_LOG
|
|
|
|
|
|
#define RF_TX_TIMERx TIMER0_IDX
|
|
#define RF_RX_TIMERx TIMER0_IDX
|
|
|
|
#define GPIO_TEST 1
|
|
#define TEST_GPIO_1 GPIO_1
|
|
#if XC62XX
|
|
#define TEST_GPIO_2 GPIO_0
|
|
#else
|
|
#define TEST_GPIO_2 GPIO_21
|
|
#endif
|
|
/*------------------------------------------------------------------------------------
|
|
TypeDef
|
|
-------------------------------------------------------------------------------------*/
|
|
|
|
/*------------------------------------------------------------------------------------
|
|
Global Variables
|
|
-------------------------------------------------------------------------------------*/
|
|
|
|
extern bool rf_send_timer_flag;
|
|
/*------------------------------------------------------------------------------------
|
|
Exported Functions
|
|
-------------------------------------------------------------------------------------*/
|
|
|
|
|
|
void rf_buff_info(uint8_t *buff, uint16_t len);
|
|
void rf_2M_reg_info(void);
|
|
void rf_dump_log(void);
|
|
uint8_t rf_data_config(uint8_t *buff, uint16_t len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MAIN_H__ */
|