1 Star 0 Fork 321

Xavier/rt-fota

forked from SpunkyWX/rt-fota 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rtconfig.h 3.69 KB
一键复制 编辑 原始数据 按行查看 历史
SpunkyWX 提交于 2019-10-17 01:50 . 第一个正式版, 版本V1.0.0
/* RT-Thread config file */
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__
#define RT_THREAD_PRIORITY_MAX 8
#define RT_TICK_PER_SECOND 1000
#define RT_ALIGN_SIZE 4
#define RT_NAME_MAX 8
/* Kernel Device Object */
#define RT_USING_DEVICE
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 512
#define RT_CONSOLE_DEVICE_NAME "uart1"
#define RT_VER_NUM 0x30102
#define RT_USING_CPU_FFS
/* RT-Thread Components */
#define RT_USING_COMPONENTS_INIT
#define RT_USING_USER_MAIN
#define RT_DEBUG_INIT 0
#define RT_USING_OVERFLOW_CHECK
//#define RT_USING_HOOK
//#define RT_USING_IDLE_HOOK
/* Software timers Configuration */
#define RT_USING_TIMER_SOFT 0
#if RT_USING_TIMER_SOFT == 0
#undef RT_USING_TIMER_SOFT
#endif
#define RT_TIMER_THREAD_PRIO 4
#define RT_TIMER_THREAD_STACK_SIZE 512
#define RT_TIMER_TICK_PER_SECOND 100
/* IPC(Inter-process communication) Configuration */
#define RT_USING_SEMAPHORE
#define RT_USING_MUTEX
//#define RT_USING_EVENT
//#define RT_USING_MAILBOX
//#define RT_USING_MESSAGEQUEUE
/* Memory Management Configuration */
#define RT_USING_HEAP
//#define RT_USING_MEMPOOL
#define RT_USING_MEMHEAP
//#define RT_USING_MEMHEAP_AS_HEAP
#define RT_USING_SMALL_MEM
//#define RT_USING_TINY_SIZE
/* Finsh Configuration */
#define RT_USING_FINSH
#define FINSH_USING_MSH
#define FINSH_USING_MSH_ONLY
#define __FINSH_THREAD_PRIORITY 5
#define FINSH_THREAD_PRIORITY (RT_THREAD_PRIORITY_MAX / 8 * __FINSH_THREAD_PRIORITY + 1)
#define FINSH_THREAD_STACK_SIZE 2048
#define FINSH_USING_HISTORY
#define FINSH_HISTORY_LINES 5
#define FINSH_USING_SYMTAB
#define FINSH_USING_AUTH
#define FINSH_DEFAULT_PASSWORD "radiation"
#define FINSH_PASSWORD_MIN 6
#define FINSH_PASSWORD_MAX 16
/* Device Drivers */
#define RT_USING_PIN
#define RT_USING_SERIAL
//#define RT_SERIAL_USING_DMA
#define RT_USING_RTC
#define RT_USING_SPI
#define RT_USING_SFUD
#define RT_SFUD_USING_SFDP
#define RT_SFUD_USING_FLASH_INFO_TABLE
#define RT_USING_WDT
/* Utilities */
// #define RT_USING_ULOG
// #define ULOG_OUTPUT_LVL_D
// #define ULOG_OUTPUT_LVL 7
// #define ULOG_ASSERT_ENABLE
// #define ULOG_LINE_BUF_SIZE 128
/* log format */
// #define ULOG_USING_COLOR
// #define ULOG_OUTPUT_TIME
// #define ULOG_OUTPUT_LEVEL
// #define ULOG_OUTPUT_TAG
// #define ULOG_BACKEND_USING_CONSOLE
/* fal package */
#define PKG_USING_FAL
#define FAL_DEBUG_CONFIG
#define FAL_DEBUG 0
#define FAL_PART_HAS_TABLE_CFG
#define FAL_USING_SFUD_PORT
#define FAL_USING_NOR_FLASH_DEV_NAME "nor_flash0"
#define PKG_USING_FAL_LATEST_VERSION
#define PKG_FAL_VER_NUM 0x99999
/* Tinycrypt package */
#define TINY_CRYPT_AES
/* Compress package */
#define QLZ_COMPRESSION_LEVEL 3
/* Hardware Drivers Config */
#define SOC_FAMILY_STM32
#define SOC_SERIES_STM32F4
#define SOC_STM32F407ZE
/* On-chip Peripheral Drivers */
#define BSP_USING_GPIO
#define BSP_USING_ON_CHIP_FLASH
#define BSP_USING_ONCHIP_RTC
#define BSP_USING_UART
#define BSP_USING_UART1
#define BSP_USING_SPI
#define BSP_USING_SPI1
/* Onboard Peripheral Drivers */
#define BSP_DATAFALSH_CS_PIN 30
/* Board extended module Drivers */
#define BSP_RS485_DIR_PIN 52
/* RT-FOTA module define */
#define RT_FOTA_SW_VERSION "1.0.0"
/* Enable Ymodem OTA */
#define PKG_USING_YMODEM_OTA
/* FOTA application partition name */
#ifndef RT_FOTA_APP_PART_NAME
#define RT_FOTA_APP_PART_NAME "app"
#endif
/* FOTA download partition name */
#ifndef RT_FOTA_FM_PART_NAME
#define RT_FOTA_FM_PART_NAME "fm_area"
#endif
/* FOTA default partition name */
#ifndef RT_FOTA_DF_PART_NAME
#define RT_FOTA_DF_PART_NAME "df_area"
#endif
/* AES256 encryption algorithm option */
#define RT_FOTA_ALGO_AES_IV "0123456789ABCDEF"
#define RT_FOTA_ALGO_AES_KEY "0123456789ABCDEF0123456789ABCDEF"
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/peachswk/rt-fota.git
git@gitee.com:peachswk/rt-fota.git
peachswk
rt-fota
rt-fota
master

搜索帮助