SW4STM32 全局宏定义

/************************************************************************************
 *                            SW4STM32 全局宏定义
 * 说明:
 *     在解读B-L475E-IOT01程序的时候找不到USE_WIFI的宏定义,于是想应该是在哪里进行了宏
 * 定义,最终通过grep匹配出gcc编译的时候带了宏定义的参数-DUSER_WIFI。
 *
 *                                            2017-12-28 深圳 宝安西乡 曾剑锋
 ***********************************************************************************/

一、编译输出信息:
    Projects/B-L475E-IOT01/Applications/Cloud/Baidu/SW4STM32/B-L475E-IOT01/Debug/Middlewares/mbedTLS/subdir.mk:     arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DSTM32L475xx -DBAIDU -DUSE_HAL_DRIVER '-DEINVAL=-1' '-DENOMEM=EINVAL' '-DREFCOUNT_ATOMIC_DONTCARE=1' '-DMBEDTLS_CONFIG_FILE=<az_mbedtls_config.h>' -DENABLE_IOT_ERROR -DENABLE_IOT_INFO -DENABLE_IOT_WARNING -DSENSOR -DUSE_MBED_TLS -DUSE_WIFI -DAZURE -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Drivers/CMSIS/Device/ST/STM32L4xx/Include" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Drivers/STM32L4xx_HAL_Driver/Inc" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Drivers/BSP/B-L475E-IOT01" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Drivers/BSP/Components/Common" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Drivers/BSP/Components/hts221" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Drivers/BSP/Components/lis3mdl" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Drivers/BSP/Components/lps22hb" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Drivers/BSP/Components/lsm6dsl" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Projects/B-L475E-IOT01/Applications/WiFi/Inc" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Drivers/BSP/Components/es_wifi" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Middlewares/Third_Party/baidu/umqtt/inc" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Middlewares/Third_Party/baidu/c-utility/inc" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Middlewares/Third_Party/baidu/serializer/inc" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Middlewares/Third_Party/baidu/parson" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Middlewares/Third_Party/mbedTLS/include" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Projects/B-L475E-IOT01/Applications/Cloud/Baidu/Inc" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Projects/Common/AWS/Inc" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Drivers/BSP/Components/vl53l0x" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Projects/Common/Baidu/Inc" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Drivers/CMSIS/Include" -I"D:/zengjf/SourceCode/STM32/iot-edge-sdk-samples/STM32/B-L475E-IOT01/Middlewares/Third_Party/baidu/iothub_client/inc"  -Os -g3 -Wall -fmessage-length=0 -Wno-unused-variable -Wno-unused-function -Wno-maybe-uninitialized -Wno-incompatible-pointer-types -Wno-enum-compare -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"

二、查看宏定义:
    Project --> C/C++ General --> Paths and Symbols --> Symbols

 

posted on 2017-12-29 08:20  zengjf  阅读(1434)  评论(0编辑  收藏  举报

导航