1 Star 0 Fork 0

tiangaomingjing/freq-led-ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sys_config.h 2.66 KB
一键复制 编辑 原始数据 按行查看 历史
tiangaomingjing 提交于 2024-03-01 08:32 . test jump to function ok
/**
* @file sys_config.h
* @brief description
*
* detail description
*
* @Author: chao
* @version: V1.0.0
* @date: May 28, 2020
* @par Copyright(c)
*
* SZU
*
* @par History
*
* Date Author Notes
* May 28, 2020 chao create first version
**/
#ifndef SYS_CONFIG_H_
#define SYS_CONFIG_H_
#define RTTHREAD
#if defined(FREERTOS)
#include <FreeRTOSConfig.h>
#define THREAD_STACK_MIN_SIZE configMINIMAL_STACK_SIZE
#define THREAD_PRIORITY_DEFAULT configMAX_PRIORITIES/2
#define THREAD_NAME_ROBOTICS_COM_UART "rob.com.uart"
#define THREAD_STACK_SIZE_ROBOTICS_COM_UART THREAD_STACK_MIN_SIZE
#define THREAD_PRIORITY_ROBOTICS_COM_UART 3
#elif defined(LINUX)
#define THREAD_STACK_MIN_SIZE 8*1024*1024
#define THREAD_PRIORITY_DEFAULT 50
#elif defined(RTTHREAD)
#include <rtthread.h>
#define LOOP_WORK_PERIOD_MS (2)
#define BSP_ADC_CHL_SIZE 4
#define BSP_ADC_QUEUE_SIZE 24
//---------------------buf size----------------------
#define BSP_UART1_DMA_RXBUF_SIZE (256)
#define BSP_UART1_RB_RXBUF_SIZE (BSP_UART1_DMA_RXBUF_SIZE * 2)
//---------------------USING--------------------------
//#define USING_UART1_TX_DMA
#define BSP_UART1_DMA_TXBUF_RBB_NUM (5)
#define BSP_UART1_DMA_TXBUF_RBB_BLK_SIZE (128)
#define FSCAN_QUEUE_ADC_CUR_WIN_SIZE (128)
#define INT_PRIORIITY_FO 0
#define INT_PRIORIITY_OC 1
#define INT_PRIORIITY_TIM_UPDATE 2
#define INT_PRIORITY_UART1_RX_IDLE 3
//#define INT_PRIORIITY_TIM_CAPTURE 3
#define INT_PRIORIITY_ADC_DMA_TC 4
//#define INT_PRIORIITY_TIM3_UPDATE 5
#define INT_PRIORITY_UART1_TX_DMA_DONE 7
//isr attach task 0
//soft timer 1
//main task priority 2
//finsh 6
//idle/led 7
//总共8个优先级
#define TASK_PRIORITY_MAX (RT_THREAD_PRIORITY_MAX-1)
#define TASK_STACK_MIN_SIZE 256
#define TASK_NAME_HLINK "hlink"
#define TASK_STACK_SIZE_HLINK 4*TASK_STACK_MIN_SIZE
#define TASK_PRIORITY_HLINK 2
#define TASK_TIME_SLICE_HLINK 20
#define TASK_NAME_LED "led"
#define TASK_STACK_SIZE_LED 2*TASK_STACK_MIN_SIZE
#define TASK_PRIORITY_LED 3
#define TASK_TIME_SLICE_LED 20
#define TASK_NAME_BTN "btn"
#define TASK_STACK_SIZE_BTN 4*TASK_STACK_MIN_SIZE
#define TASK_PRIORITY_BTN 4
#define TASK_TIME_SLICE_BTN 20
#endif
#define MAIN_TASK_LOOP_MS (2)
#endif /* SYS_CONFIG_H_ */
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/chenchao_szu/freq-led-ui.git
git@gitee.com:chenchao_szu/freq-led-ui.git
chenchao_szu
freq-led-ui
freq-led-ui
master

搜索帮助