Other Parts Discussed in Thread: SYSCONFIG, SYSBIOS
我在ccs导入了CC26X2R1_LAUNCHXL的ble5stack 的simple_peripheral例程,之后我想添加一个简单的驱动开发板上led的app该如何操作,我在application文件夹下添加了.c文件和.h文件,能够成功built,但是这些文件好像并没有被load到开发板上
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好,
为您提供一个关于CCS配置和构建项目的文档,您可以查阅一下其中的第六章节
https://software-dl.ti.com/ccs/esd/documents/users_guide/index_project-management.html
希望对您有所帮助
您好,我在 ble5stack的simple_peripheral例程下添加了以下文件,用了sysconfig tool, 但是开发板上的led仍然没有工作,麻烦您看一下哪里有问题
blink。h
#ifndef BLINK_H
#define BLINK_H
#ifdef __cplusplus
extern "C"
{
#endif
extern void blinkled_createTask(void);
/*********************************************************************
*********************************************************************/
#ifdef __cplusplus
}
#endif
#endif
blink.c
#include <string.h>
#include <ti/sysbios/knl/Task.h>
#include <ti/sysbios/knl/Clock.h>
#include <ti/sysbios/knl/Event.h>
#include <ti/sysbios/knl/Queue.h>
#include <ti/drivers/GPIO.h>
#include "ti_drivers_config.h"
#include "blink.h"
// Task configuration
#define BLK_TASK_PRIORITY 1
#ifndef BLK_TASK_STACK_SIZE
#define BLK_TASK_STACK_SIZE 128
#endif
// Task configuration
Task_Struct blkTask;
Char blkTaskStack[BLK_TASK_STACK_SIZE];
static void blinkled_taskFxn(UArg a0, UArg a1);
void blinkled_createTask(void)
{
Task_Params taskParams;
// Configure task
Task_Params_init(&taskParams);
taskParams.stack = blkTaskStack;
taskParams.stackSize = BLK_TASK_STACK_SIZE;
taskParams.priority = BLK_TASK_PRIORITY;
Task_construct(&blkTask, blinkled_taskFxn, &taskParams, NULL);
}
static void blinkled_taskFxn(UArg a0, UArg a1)
{
// Testing Codes
GPIO_init();
GPIO_write(led, CONFIG_GPIO_LED_ON);
}