代码拉取完成,页面将自动刷新
/**
* @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_ */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。