1 Star 0 Fork 2

Bluejeams/audio_demo

forked from AliOS Things/audio_demo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
maintask.c 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
hongye.jhy 提交于 2021-04-02 19:40 . init version
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <aos/kernel.h>
#include "aos/init.h"
#include "board.h"
#include <k_api.h>
#ifndef AOS_BINS
extern int application_start(int argc, char *argv[]);
#endif
/*
* If board have no component for example board_xx_init, it indicates that this
* app does not support this board.
* Set the correspondence in file platform\board\aaboard_demo\ucube.py.
*/
extern void board_tick_init(void);
extern void board_stduart_init(void);
extern void board_dma_init(void);
extern void board_gpio_init(void);
extern void board_kinit_init(kinit_t *init_args);
/*
* For user config
* kinit.argc = 0;
* kinit.argv = NULL;
* kinit.cli_enable = 1;
*/
static kinit_t kinit = {0, NULL, 1};
/*
* @brief Board Initialization Function
* @param None
* @retval None
*/
void board_init(void)
{
board_tick_init();
board_stduart_init();
board_dma_init();
board_gpio_init();
}
void aos_maintask(void *arg)
{
board_init();
board_kinit_init(&kinit);
aos_components_init(&kinit);
#ifndef AOS_BINS
application_start(kinit.argc, kinit.argv); /* jump to app entry */
#endif
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Bluejeams/audio_demo.git
git@gitee.com:Bluejeams/audio_demo.git
Bluejeams
audio_demo
audio_demo
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385