基于MDKK70-EK_T7硬件平台
关键词: Freescale 飞思卡尔 Kinetis MQX Cortex-M4 K70 MDKK70 核心板 开发板 例程 demo sci uart
程序很简单,就是一个打印HelloWorld的例子,可作为模板
/* Task IDs */
#define HELLO_TASK 5
extern void hello_task(uint_32);
const TASK_TEMPLATE_STRUCT MQX_template_list[] =
{
/* Task Index, Function, Stack, Priority, Name, Attributes, Param, Time Slice */
{ HELLO_TASK, hello_task, 1500, 8, "hello", MQX_AUTO_START_TASK, 0, 0 },
{ 0 }
};
/*TASK*-----------------------------------------------------
*
* Task Name : hello_task
* Comments :
* This task prints " Hello World "
*
*END*-----------------------------------------------------*/
void hello_task
(
uint_32 initial_data
)
{
printf("Hello World\n");
_task_block();
}
关键词: Freescale 飞思卡尔 Kinetis MQX Cortex-M4 K70 MDKK70 核心板 开发板 例程 demo sci uart
程序很简单,就是一个打印HelloWorld的例子,可作为模板
/* Task IDs */
#define HELLO_TASK 5
extern void hello_task(uint_32);
const TASK_TEMPLATE_STRUCT MQX_template_list[] =
{
/* Task Index, Function, Stack, Priority, Name, Attributes, Param, Time Slice */
{ HELLO_TASK, hello_task, 1500, 8, "hello", MQX_AUTO_START_TASK, 0, 0 },
{ 0 }
};
/*TASK*-----------------------------------------------------
*
* Task Name : hello_task
* Comments :
* This task prints " Hello World "
*
*END*-----------------------------------------------------*/
void hello_task
(
uint_32 initial_data
)
{
printf("Hello World\n");
_task_block();
}
串口输出:
![](https://i-blog.csdnimg.cn/blog_migrate/3a85e9f281b5204bcd786ab9d6597b6f.jpeg)