352 lines
8.2 KiB
C
352 lines
8.2 KiB
C
#ifndef RT_CONFIG_H__
|
||
#define RT_CONFIG_H__
|
||
|
||
/* Automatically generated file; DO NOT EDIT. */
|
||
/* RT-Thread Configuration */
|
||
|
||
/* RT-Thread Kernel */
|
||
|
||
#define RT_NAME_MAX 8
|
||
#define RT_ALIGN_SIZE 4
|
||
#define RT_THREAD_PRIORITY_32
|
||
#define RT_THREAD_PRIORITY_MAX 32
|
||
#define RT_TICK_PER_SECOND 1000
|
||
#define RT_DEBUG
|
||
#define RT_USING_OVERFLOW_CHECK
|
||
#define RT_DEBUG_INIT 0
|
||
#define RT_DEBUG_THREAD 0
|
||
#define RT_USING_HOOK
|
||
#define IDLE_THREAD_STACK_SIZE 512
|
||
#define RT_USING_TIMER_SOFT
|
||
#define RT_TIMER_THREAD_PRIO 6/*4*/
|
||
#define RT_TIMER_THREAD_STACK_SIZE 4096
|
||
|
||
/* Inter-Thread communication */
|
||
|
||
#define RT_USING_SEMAPHORE
|
||
#define RT_USING_MUTEX
|
||
#define RT_USING_EVENT
|
||
#define RT_USING_MAILBOX
|
||
#define RT_USING_MESSAGEQUEUE
|
||
|
||
/* Memory Management */
|
||
|
||
#define RT_USING_MEMPOOL
|
||
#define RT_USING_MEMHEAP
|
||
#define RT_USING_MEMHEAP_AS_HEAP
|
||
#define RT_USING_HEAP
|
||
|
||
/* Kernel Device Object */
|
||
|
||
#define RT_USING_DEVICE
|
||
#define RT_USING_DEVICE_OPS
|
||
#define RT_USING_CONSOLE
|
||
#define RT_CONSOLEBUF_SIZE 128
|
||
#define RT_CONSOLE_DEVICE_NAME "uart1"
|
||
|
||
/* RT-Thread Components */
|
||
|
||
#define RT_USING_COMPONENTS_INIT
|
||
#define RT_USING_USER_MAIN
|
||
#define RT_MAIN_THREAD_STACK_SIZE 4096
|
||
|
||
/* Command shell */
|
||
|
||
#define RT_USING_FINSH
|
||
#define FINSH_THREAD_NAME "tshell"
|
||
#define FINSH_USING_HISTORY
|
||
#define FINSH_HISTORY_LINES 5
|
||
#define FINSH_USING_SYMTAB
|
||
#define FINSH_USING_DESCRIPTION
|
||
#define FINSH_THREAD_PRIORITY 20
|
||
#define FINSH_THREAD_STACK_SIZE 8192
|
||
#define FINSH_CMD_SIZE 256
|
||
#define FINSH_USING_MSH
|
||
#define FINSH_USING_MSH_DEFAULT
|
||
#define FINSH_USING_MSH_ONLY
|
||
#define FINSH_ARG_MAX 16
|
||
|
||
/* Device virtual file system */
|
||
#define RT_USING_DFS
|
||
#define DFS_USING_WORKDIR
|
||
#define DFS_FILESYSTEMS_MAX 4
|
||
#define DFS_FILESYSTEM_TYPES_MAX 4
|
||
#define DFS_FD_MAX 16
|
||
#define RT_USING_DFS_ELMFAT
|
||
|
||
/* elm-chan's FatFs, Generic FAT Filesystem Module */
|
||
|
||
#define RT_DFS_ELM_CODE_PAGE 437
|
||
#define RT_DFS_ELM_WORD_ACCESS
|
||
#define RT_DFS_ELM_USE_LFN_3
|
||
#define RT_DFS_ELM_USE_LFN 3
|
||
#define RT_DFS_ELM_MAX_LFN 255
|
||
#define RT_DFS_ELM_DRIVES 2
|
||
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
|
||
#define RT_DFS_ELM_REENTRANT
|
||
#define RT_USING_DFS_DEVFS
|
||
#define RT_USING_DFS_NET
|
||
#define RT_USING_DFS_ROMFS
|
||
|
||
/* Device Drivers */
|
||
#define BEKEN_USING_IIC
|
||
#define RT_USING_DEVICE_IPC
|
||
#define RT_USING_SERIAL
|
||
#define RT_USING_I2C
|
||
#define RT_USING_I2C_BITOPS
|
||
#define RT_USING_PIN
|
||
#define RT_USING_RTC
|
||
#define RT_USING_SOFT_RTC
|
||
#define RTC_SYNC_USING_NTP
|
||
#define RTC_NTP_FIRST_SYNC_DELAY 30
|
||
#define RTC_NTP_SYNC_PERIOD 3600
|
||
#define RT_USING_WDT
|
||
#define RT_USING_WIFI
|
||
#define RT_USING_WLAN_STA
|
||
#define RT_USING_WLAN_AP
|
||
#define WIFI_DEVICE_STA_NAME "w0"
|
||
#define WIFI_DEVICE_AP_NAME "ap"
|
||
#define RT_USING_AUDIO
|
||
#define RT_USING_SPI
|
||
#define RT_USING_I2S
|
||
|
||
/* Using USB */
|
||
|
||
|
||
/* POSIX layer and C standard library */
|
||
|
||
#define RT_USING_LIBC
|
||
#define RT_USING_POSIX
|
||
|
||
/* Network stack */
|
||
|
||
/* light weight TCP/IP stack */
|
||
|
||
#define RT_USING_LWIP
|
||
#define RT_USING_LWIP202
|
||
#define RT_LWIP_IGMP
|
||
#define RT_LWIP_ICMP
|
||
#define RT_LWIP_DNS
|
||
#define RT_LWIP_DHCP
|
||
#define IP_SOF_BROADCAST 1
|
||
#define IP_SOF_BROADCAST_RECV 1
|
||
|
||
/* Static IPv4 Address */
|
||
|
||
#define RT_LWIP_IPADDR "192.168.1.30"
|
||
#define RT_LWIP_GWADDR "192.168.1.1"
|
||
#define RT_LWIP_MSKADDR "255.255.255.0"
|
||
#define RT_LWIP_UDP
|
||
#define RT_LWIP_TCP
|
||
#define RT_LWIP_RAW
|
||
#define RT_MEMP_NUM_NETCONN 12
|
||
#define RT_LWIP_PBUF_NUM 14
|
||
#define RT_LWIP_RAW_PCB_NUM 2
|
||
#define RT_LWIP_UDP_PCB_NUM 6
|
||
#define RT_LWIP_TCP_PCB_NUM 8
|
||
#define RT_LWIP_TCP_SEG_NUM 40
|
||
#define RT_LWIP_TCP_SND_BUF 4380
|
||
#define RT_LWIP_TCP_WND 4380
|
||
#define RT_LWIP_TCPTHREAD_PRIORITY 4
|
||
#define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
|
||
#define RT_LWIP_TCPTHREAD_STACKSIZE 2048
|
||
#define LWIP_NO_RX_THREAD
|
||
#define LWIP_NO_TX_THREAD
|
||
#define RT_LWIP_ETHTHREAD_PRIORITY 12
|
||
#define RT_LWIP_ETHTHREAD_STACKSIZE 512
|
||
#define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
|
||
#define LWIP_NETIF_STATUS_CALLBACK 1
|
||
#define SO_REUSE 1
|
||
#define LWIP_SO_RCVTIMEO 1
|
||
#define LWIP_SO_SNDTIMEO 1
|
||
#define LWIP_SO_RCVBUF 1
|
||
#define LWIP_NETIF_LOOPBACK 0
|
||
|
||
/* Modbus master and slave stack */
|
||
|
||
#define LWIP_USING_DHCPD
|
||
#define DHCPD_SERVER_IP "192.168.169.1"
|
||
#define DHCPD_USING_ROUTER
|
||
|
||
/* VBUS(Virtual Software BUS) */
|
||
|
||
|
||
/* Utilities */
|
||
|
||
|
||
/* RT-Thread online packages */
|
||
|
||
/* IoT - internet of things */
|
||
|
||
#define PKG_USING_PAHOMQTT
|
||
#define PAHOMQTT_PIPE_MODE
|
||
#define PKG_USING_PAHOMQTT_EXAMPLE
|
||
#define RT_PKG_MQTT_THREAD_STACK_SIZE 4096
|
||
#define PKG_PAHOMQTT_SUBSCRIBE_HANDLERS 1
|
||
#define MQTT_DEBUG
|
||
#define PKG_USING_PAHOMQTT_LATEST
|
||
#define PKG_USING_WEBCLIENT
|
||
#define WEBCLIENT_HEADER_BUFSZ 4096
|
||
#define WEBCLIENT_RESPONSE_BUFSZ 4096
|
||
#define PKG_USING_WEBCLIENT_LATEST_VERSION
|
||
//#define PKG_USING_CJSON
|
||
#define PKG_USING_CJSON_V102
|
||
|
||
/* Wi-Fi */
|
||
|
||
/* Marvell WiFi */
|
||
|
||
|
||
/* Wiced WiFi */
|
||
|
||
#define PKG_USING_NETUTILS
|
||
#define PKG_NETUTILS_PING
|
||
#define PKG_NETUTILS_NETIO
|
||
#define PKG_NETUTILS_NTP
|
||
#define NETUTILS_NTP_TIMEZONE 8
|
||
#define NETUTILS_NTP_HOSTNAME "cn.ntp.org.cn"
|
||
#define PKG_USING_NETUTILS_LATEST_VERSION
|
||
|
||
/* IoT Cloud */
|
||
|
||
|
||
/* security packages */
|
||
//#define PKG_USING_TINYCRYPT
|
||
#define TINY_CRYPT_MD5
|
||
#define TINY_CRYPT_AES
|
||
#define TINY_CRYPT_AES_ROM_TABLES
|
||
//#define TINY_CRYPT_BASE64
|
||
|
||
/* language packages */
|
||
|
||
|
||
/* multimedia packages */
|
||
|
||
|
||
/* tools packages */
|
||
|
||
|
||
/* system packages */
|
||
#define CONFIG_SOUND_MIXER 0
|
||
|
||
#define PKG_USING_FAL
|
||
#define FAL_DEBUG_CONFIG
|
||
#define FAL_DEBUG 1
|
||
#define PKG_USING_FAL_LATEST_VERSION
|
||
#define FAL_PART_TABLE_END_OFFSET (60 * 1024UL) //speed up if need change to 64k
|
||
#define FAL_PART_TABLE_FLASH_DEV_NAME "beken_onchip_crc"
|
||
|
||
/* peripheral libraries and drivers */
|
||
|
||
|
||
/* miscellaneous packages */
|
||
|
||
#define PKG_USING_OPTPARSE
|
||
#define PKG_USING_OPTPARSE_V100
|
||
//#define PKG_USING_MULTIBUTTON
|
||
//#define PKG_USING_MULTIBUTTON_V102
|
||
//#define PKG_USING_ZLIB
|
||
|
||
/* MultiButton Options */
|
||
|
||
|
||
/* sample package */
|
||
|
||
|
||
/* example package: hello */
|
||
|
||
|
||
/* Privated Packages of RealThread */
|
||
|
||
|
||
/* Network Utilities */
|
||
//#define PKG_NETUTILS_IPERF
|
||
|
||
/* RT-Thread Senior Membership Packages */
|
||
|
||
/* system packages */
|
||
|
||
|
||
/* IoT - internet of things */
|
||
//#define RT_USING_AIRKISS
|
||
|
||
/* Webnet: A web server package for rt-thread */
|
||
//#define PKG_USING_WEBNET
|
||
//#define WEBNET_USING_CGI
|
||
|
||
/* Hardware Drivers Config */
|
||
#define BEKEN_USING_UART1
|
||
#define BEKEN_USING_UART2
|
||
#define BEKEN_USING_WDT
|
||
#define BEKEN_USING_FLASH
|
||
#define BEKEN_USING_PWM
|
||
#define BEKEN_USING_GPIO
|
||
#define BEKEN_USING_WLAN
|
||
#define LWIP_NETIF_HOSTNAME 1
|
||
#define BEKEN_USING_WLAN_STA
|
||
#define RT_USING_CPU_FFS
|
||
//#define BEKEN_USING_SPI_FLASH
|
||
//#define BEKEN_USING_SPI_PSRAM
|
||
//#define BEKEN_USING_SPI_HSLAVE
|
||
#define RT_USING_BLE
|
||
|
||
/* Player Config */
|
||
|
||
/* PLAYER 1.2.7 ************************************************************************** */
|
||
#define PKG_USING_PLAYER
|
||
#define PKG_USING_PLAYER_V127
|
||
#define PLAYER_DEVICE "sound"
|
||
#define PLAYER_DEFAULT_VOLUME 65
|
||
|
||
/* PLAYER <20>ڲ<EFBFBD>֧<EFBFBD><D6A7> CODEC */
|
||
//#define PLAYER_ENABLE_CODEC_PCM /* PCM<43><4D><EFBFBD><EFBFBD> */
|
||
//#define PLAYER_ENABLE_CODEC_WAV /* WAV<41><56><EFBFBD><EFBFBD> */
|
||
// #define PLAYER_ENABLE_FORMAT_TS /* MPEG-TS<54><53><EFBFBD><EFBFBD> */
|
||
|
||
/* PLAYER <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
||
//#define PLAYER_ENABLE_NET_STREAM /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD>֧<EFBFBD><D6A7> */
|
||
//#define PLAYER_ENABLE_HTTP_STREAM /* HTTP<54><50><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD>֧<EFBFBD><D6A7> */
|
||
//#define PLAYER_ENABLE_HTTPS_STREAM /* HTTPS<50><53><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD>֧<EFBFBD><D6A7> */
|
||
//#define PLAYER_ENABLE_TTS_STREAM /* TTS<54><53><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD>֧<EFBFBD><D6A7> */
|
||
// #define PLAYER_ENABLE_HLS_STREAM /* HLS<4C><53><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD>֧<EFBFBD><D6A7> */
|
||
// #define PLAYER_ENABLE_HLS_ACCELERATE /* HLS TLS<4C><53><EFBFBD><EFBFBD> */
|
||
// #define PLAYER_ENABLE_PLS_STREAM /* PLS<4C><53><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD>֧<EFBFBD><D6A7> */
|
||
|
||
#define PLAYER_USING_NETSTREAM_BUFSZ 96 /* <20><><EFBFBD>绺<EFBFBD><E7BBBA> */
|
||
|
||
/* PLAYER <20><>־ */
|
||
#define PLAYER_USING_DEBUG 0 /* 0:<3A><><EFBFBD><EFBFBD><EFBFBD>汾, 1:<3A><><EFBFBD>汾 */
|
||
|
||
/* PLAYER Example */
|
||
//#define PLAYER_USING_EXAMPLE00
|
||
//#define PLAYER_USING_EXAMPLE02
|
||
//#define PLAYER_USING_EXAMPLE03
|
||
/* PLAYER END **************************************************************************** */
|
||
/* Application Samples Config */
|
||
|
||
|
||
/* Test samples */
|
||
|
||
//#define PKG_USING_RT_OTA
|
||
|
||
#define RT_USING_PTHREADS
|
||
|
||
/* voice changer */
|
||
#define CONFIG_VOICE_CHANGER 0
|
||
|
||
/* tools packages */
|
||
#define PKG_USING_EASYFLASH
|
||
|
||
//#define PKG_USING_MP3PLAYER
|
||
//#define PKG_USING_LITTLEFS
|
||
//#define RT_USING_MTD_NOR
|
||
|
||
/*xiaoya */
|
||
//#define XIAOYA_OS
|
||
#ifdef XIAOYA_OS
|
||
#define PKG_USING_MBEDTLS
|
||
#endif
|
||
|
||
#define RT_USING_MEMTRACE
|
||
#endif
|