资源简介
添加一个任务 LED灯定时闪烁的任务:
现象: 在连接上蓝牙后, 大概等待5~6秒后, LED开始闪烁
代码片段和文件信息
/**
****************************************************************************************
*
* @file user_all_in_one.c
*
* @brief All in one project source code.
*
* Copyright (C) 2015. Dialog Semiconductor Ltd unpublished work. This computer
* program includes Confidential Proprietary Information and is a Trade Secret of
* Dialog Semiconductor Ltd. All use disclosure and/or reproduction is prohibited
* unless authorized in writing. All Rights Reserved.
*
* and contributors.
*
****************************************************************************************
*/
/**
****************************************************************************************
* @addtogroup APP
* @{
****************************************************************************************
*/
/*
* INCLUDE FILES
****************************************************************************************
*/
#include “rwip_config.h“
#include “arch_api.h“
#include “app_bond_db.h“
#include “app_prf_perm_types.h“
#include “gap.h“
#include “gpio.h“
#include “user_all_in_one.h“
#include “user_custs1_def.h“
#include “user_custs1_impl.h“
#include “user_periph_setup.h“
#include “wkupct_quadec.h“
#include “app_easy_security.h“
#include “app_task.h“
#if (BLE_SPOTA_RECEIVER)
#include “app_spotar.h“
#if defined(__DA14583__) && (!SPOTAR_SPI_DISABLE)
#include “spi_flash.h“
#endif
#endif
/*
* TYPE DEFINITIONS
****************************************************************************************
*/
// Manufacturer Specific Data ADV structure type
struct mnf_specific_data_ad_structure
{
uint8_t ad_structure_size;
uint8_t ad_structure_type;
uint8_t company_id[APP_AD_MSD_COMPANY_ID_LEN];
uint8_t proprietary_data[APP_AD_MSD_DATA_LEN];
};
/*
* GLOBAL VARIABLE DEFINITIONS
****************************************************************************************
*/
uint8_t app_connection_idx __attribute__((section(“retention_mem_area0“)zero_init)); // @RETENTION MEMORY
timer_hnd app_adv_data_update_timer_used __attribute__((section(“retention_mem_area0“)zero_init)); // @RETENTION MEMORY
timer_hnd app_param_update_request_timer_used __attribute__((section(“retention_mem_area0“)zero_init)); // @RETENTION MEMORY
// Manufacturer Specific Data
struct mnf_specific_data_ad_structure mnf_data __attribute__((section(“retention_mem_area0“)zero_init)); // @RETENTION MEMORY
// Stored static random address
struct gap_bdaddr stored_addr __attribute__((section(“retention_mem_area0“)zero_init)); // @RETENTION MEMORY
/*
* FUNCTION DEFINITIONS
****************************************************************************************
*/
/**
****************************************************************************************
* @brief Initialize Manufacturer Specific Data
* @return void
************************************************************************************
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 63513 2016-07-27 17:55 TASK_LED\binaries\da1458x\prod_test\prod_test_580.hex
文件 54116 2016-07-27 17:55 TASK_LED\binaries\da1458x\prod_test\prod_test_581.hex
文件 63513 2016-07-27 17:55 TASK_LED\binaries\da1458x\prod_test\prod_test_583.hex
文件 19456 2016-07-27 17:56 TASK_LED\binaries\host\windows\mkimage\mkimage.exe
文件 27136 2016-07-27 17:56 TASK_LED\binaries\host\windows\prod_test_cmds\prodtest.exe
文件 26624 2016-07-27 17:56 TASK_LED\binaries\host\windows\proximity\monitor\host_proxm_sdk.exe
文件 26624 2016-07-27 17:56 TASK_LED\binaries\host\windows\proximity\monitor\host_proxm_sdk_581.exe
文件 23552 2016-07-27 17:56 TASK_LED\binaries\host\windows\proximity\reporter\host_proxr_sdk.exe
文件 23552 2016-07-27 17:56 TASK_LED\binaries\host\windows\proximity\reporter\host_proxr_sdk_581.exe
文件 22528 2016-07-27 17:56 TASK_LED\binaries\host\windows\spota\initiator\host_spotai.exe
文件 22528 2016-07-27 17:56 TASK_LED\binaries\host\windows\spota\initiator\host_spotai_581.exe
文件 25088 2016-07-27 17:56 TASK_LED\binaries\host\windows\suota\initiator\host_suotai.exe
文件 25088 2016-07-27 17:56 TASK_LED\binaries\host\windows\suota\initiator\host_suotai_581.exe
文件 29860 2016-07-27 17:52 TASK_LED\config\creator\config.json
文件 16950 2016-07-27 17:52 TASK_LED\config\creator\config.schema
文件 6785 2016-07-27 17:52 TASK_LED\config\creator\messages.json
文件 173836 2016-07-27 17:52 TASK_LED\config\creator\profileconfiguration.json
文件 18865 2016-07-27 17:52 TASK_LED\config\creator\project.schema
文件 8007 2016-07-27 17:52 TASK_LED\config\DA1458x_5.0.4_SDK_config.xm
文件 542 2016-07-27 17:52 TASK_LED\doc\dialog_license.txt
文件 4031 2016-07-27 17:52 TASK_LED\doc\licensing.txt
....... 192553 2018-12-07 00:37 TASK_LED\projects\target_apps\ble_examples\ble_app_all_in_one\Keil_5\ble_app_all_in_one.uvguix.JC
....... 69100 2018-12-07 00:28 TASK_LED\projects\target_apps\ble_examples\ble_app_all_in_one\Keil_5\ble_app_all_in_one.uvoptx
....... 153660 2018-12-06 23:17 TASK_LED\projects\target_apps\ble_examples\ble_app_all_in_one\Keil_5\ble_app_all_in_one.uvprojx
文件 339 2018-12-07 00:32 TASK_LED\projects\target_apps\ble_examples\ble_app_all_in_one\Keil_5\EventRecorderStub.scvd
文件 215537 2018-12-07 00:37 TASK_LED\projects\target_apps\ble_examples\ble_app_all_in_one\Keil_5\Jli
文件 755 2018-12-06 20:59 TASK_LED\projects\target_apps\ble_examples\ble_app_all_in_one\Keil_5\Jli
文件 340945 2018-12-07 00:29 TASK_LED\projects\target_apps\ble_examples\ble_app_all_in_one\Keil_5\out_580\adc.crf
文件 4516 2018-12-07 00:29 TASK_LED\projects\target_apps\ble_examples\ble_app_all_in_one\Keil_5\out_580\adc.d
文件 324596 2018-12-07 00:29 TASK_LED\projects\target_apps\ble_examples\ble_app_all_in_one\Keil_5\out_580\adc.o
............此处省略2204个文件信息
相关资源
- HyperWorks分析应用+光盘
- HyperWorks分析应用实例(书+模型)16
- 完整的多媒体Authorware作品_周杰伦含素
- Authorware课件《春风吹》源文件及素材
- openconnect-gui-1.5.1-darwin.dmg
- Solarwinds NetFlow Traffic Analyzer-NTA-v3.5-F
- Forward.NET测井解释平台SDK 2.7+2.8+manua
- Authorware案例集11篇绝对自创
- Authorware期末考试作品
- powerworld 12.0
- BestFitGridViewIndicatorWidth.zip
- DarwinStreamingSrvr6.0.3-Source.tar+dss-6.0.3.
- Authorware学生作品
- authorware 作业 魔兽世界
- Physics For Scientists And Engineers 6E By Ser
- Solarwinds IPmonitor v9.0专业破解注册版
- 静夜思Authorware课件
- authorware课件作品含源文件素材
- authorware课件之雨巷戴望舒
- underwater acoustic modeling and simulation
- hyperledger-fabric-ca-darwin-amd64-1.4.4.tar
- HyperWorks分析应用(书+模型)
- erwin4.1.4.3643
- 使用Authorware制作复杂多媒体课件简单
- authorware课件《海洋世界》(含源文件
- authorware期末作品1
- LuaForWindows_v5.1.5-52编译器
- starwindconverter 2018版
- Unity3D海底模型
- SuperWRT615v3编程固件.bin
评论
共有 条评论