[feat][mac154] add mac154 component
This commit is contained in:
parent
b25a219f83
commit
d02d405d54
42
components/mac154/CMakeLists.txt
Normal file
42
components/mac154/CMakeLists.txt
Normal 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()
|
15
components/mac154/bl702_rf/include/bl702_rf_public.h
Normal file
15
components/mac154/bl702_rf/include/bl702_rf_public.h
Normal 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
|
BIN
components/mac154/bl702_rf/lib/libbl702_rf.a
Normal file
BIN
components/mac154/bl702_rf/lib/libbl702_rf.a
Normal file
Binary file not shown.
1029
components/mac154/lmac154/include/lmac154.h
Normal file
1029
components/mac154/lmac154/include/lmac154.h
Normal file
File diff suppressed because it is too large
Load Diff
BIN
components/mac154/lmac154/lib/liblmac154.a
Normal file
BIN
components/mac154/lmac154/lib/liblmac154.a
Normal file
Binary file not shown.
Reference in New Issue
Block a user