Files
TC264_Library_seekfree/Seekfree_TC264_Opensource_Library/USER/Cpu1_Main.c
SEEKFREE_Kang b315544c4b V1.1.8
将isr_config.h中 INT_SERVICE设置改为使用枚举值进行设置
    更改illd文件夹名称为infineon_libraries
    在TC264配置文件中,增加频率设置选项
    增加main等待,等待所有核心初始化完毕才开始运行
    修改CLK_FREQ宏定义名称为CMU_CLK_FREQ
    DMA所需的数组地址通过指针进行传递,这样可以避免在不调用摄像头的时候,相关的数组不会占用RAM
    将总钻风pclk改为下降沿触发
    将无线转串口的RTS引脚配置参数修改为下拉
2021-01-04 18:14:51 +08:00

50 lines
1.2 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*********************************************************************************************************************
* COPYRIGHT NOTICE
* Copyright (c) 2020,逐飞科技
* All rights reserved.
* 技术讨论QQ群三群824575535
*
* 以下所有内容版权均属逐飞科技所有,未经允许不得用于商业用途,
* 欢迎各位使用并传播本程序,修改内容时必须保留逐飞科技的版权声明。
*
* @file main
* @company 成都逐飞科技有限公司
* @author 逐飞科技(QQ3184284598)
* @version 查看doc内version文件 版本说明
* @Software ADS v1.2.2
* @Target core TC264D
* @Taobao https://seekfree.taobao.com/
* @date 2020-3-23
********************************************************************************************************************/
#include "headfile.h"
#pragma section all "cpu1_dsram"
//将本语句与#pragma section all restore语句之间的全局变量都放在CPU1的RAM中
void core1_main(void)
{
disableInterrupts();
IfxScuWdt_disableCpuWatchdog(IfxScuWdt_getCpuWatchdogPassword());
//用户在此处调用各种初始化函数等
//等待所有核心初始化完毕
IfxCpu_emitEvent(&g_cpuSyncEvent);
IfxCpu_waitEvent(&g_cpuSyncEvent, 0xFFFF);
enableInterrupts();
while (TRUE)
{
//用户在此处编写任务代码
}
}
#pragma section all restore