[feat][mac154] add mac154 component

This commit is contained in:
jzlv 2022-01-13 16:42:50 +08:00
parent b25a219f83
commit d02d405d54
5 changed files with 1086 additions and 0 deletions

View File

@ -0,0 +1,42 @@
################# Add global include #################
list(APPEND ADD_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/bl702_rf/include")
list(APPEND ADD_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/lmac154/include")
#######################################################
################# Add private include #################
# list(APPEND ADD_PRIVATE_INCLUDE
# )
#######################################################
############## Add current dir source files ###########
add_library(lmac154 STATIC IMPORTED)
set_target_properties(lmac154 PROPERTIES
IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/components/mac154/lmac154/lib/liblmac154.a"
INTERFACE_LINK_LIBRARIES "${CMAKE_SOURCE_DIR}/components/mac154/bl702_rf/lib/libbl702_rf.a")
#######################################################
########### Add required/dependent components #########
list(APPEND ADD_REQUIREMENTS lmac154)
#######################################################
############ Add static libs ##########################
# list(APPEND ADD_STATIC_LIB "${CMAKE_CURRENT_SOURCE_DIR}/bl702_rf/lib/libbl702_rf.a")
# list(APPEND ADD_STATIC_LIB "${CMAKE_CURRENT_SOURCE_DIR}/lmac154/lib/liblmac154.a")
#######################################################
############ Add dynamic libs #########################
# list(APPEND ADD_DYNAMIC_LIB "libxxx.so"
# )
#######################################################
############ Add global compile option ################
#add components denpend on this component
# list(APPEND ADD_DEFINITIONS -Dxxx)
#######################################################
############ Add private compile option ################
#add compile option for this component that won't affect other modules
# list(APPEND ADD_PRIVATE_DEFINITIONS -Dxxx)
#######################################################
generate_library()

View File

@ -0,0 +1,15 @@
#ifndef _BL702_RF_PUBLIC_H_
#define _BL702_RF_PUBLIC_H_
#include <stdint.h>
uint32_t rf702_set_init_tsen_value(int16_t tsen_value);
uint32_t rf702_inc_cal_tsen_based(int16_t tsen_value);
// callback function, should be implemented by user
void rf_reset_done_callback(void);
#endif

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.