| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- // #ifndef _PROJ_CONFIG_H_
- // #define _PROJ_CONFIG_H_
- // #define DISABLE (0)
- // #define ENABLE (1)
- // /*
- // * Clock settings section
- // * Note:
- // *
- // */
- // #define XTAL_CLOCK (40000000)
- // #define RCO_CLOCK (32000)
- // #define PLL_CLOCK (160000000)
- // //TODO: SystemCoreClock
- // #define SYSTEM_CLOCK (160000000)
- // /*
- // * Module enable/disable control
- // */
- // #define FULL_ASSERT DISABLE
- // #define PRINTF_OMIT DISABLE // when release software, set 1 to omit all printf logs
- // #define PRINT_TO_RTT DISABLE // 1: print to segger rtt 0: print to uart1
- // #define FLASH_XIP ENABLE
- // /*
- // * flash image settings
- // */
- // #define FLASH_IMAGE_VER_MAJOR 1
- // #define FLASH_IMAGE_VER_MINOR 1
- // #define SOC_CRP_FLAG 0
- // /*
- // * Hardware config
- // */
- // #define CFG_UART0_TX_BUF_SIZE 256
- // #define CFG_UART0_RX_BUF_SIZE 512
- // #define CFG_UART_BAUDRATE_LOG 115200
- // #endif /* _PROJ_CONFIG_H_ */
- #ifndef _PROJ_CONFIG_H_
- #define _PROJ_CONFIG_H_
- #define DISABLE (0)
- #define ENABLE (1)
- #define __CONFIG_OS_KERNEL RTOS_FREERTOS
- #define INCLUDE_xTaskGetHandle 1
- #define INCLUDE_uxTaskGetStackHighWaterMark 1
- /*
- * Clock settings section
- * Note:
- *
- */
- #define XTAL_CLOCK (40000000)
- #define RCO_CLOCK (32000)
- #define PLL_CLOCK (160000000)
- //TODO: SystemCoreClock
- #define SYSTEM_CLOCK (160000000)
- /*
- * Module enable/disable control
- */
- #define FLASH_XIP ENABLE
- #define LN_ASSERT_EN ENABLE
- #define HAL_ASSERT_EN ENABLE
- #define PRINTF_OMIT DISABLE // when release software, set 1 to omit all printf logs
- #define OS_TICK_COMPENSATE
- //Check big and endian mode
- #if defined ( __CC_ARM )
- #if defined (__BIG_ENDIAN)
- #error "Please set the compiler to little-endian mode"
- #endif
- #elif defined ( __GNUC__ )
- #if (__BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__)
- #error "Please set the compiler to little-endian mode"
- #endif // __BYTE_ORDER__
- #else
- #error "Unsupported compiler"
- #endif
- #ifndef LITTLE_ENDIAN
- #define LITTLE_ENDIAN 1234
- #endif
- /*
- * flash image settings
- */
- #define FLASH_IMAGE_VER_MAJOR 0
- #define FLASH_IMAGE_VER_MINOR 1
- #define SOC_CRP_FLAG 0
- /*
- * Hardware config
- */
- #define CFG_UART0_TX_BUF_SIZE 256
- #define CFG_UART0_RX_BUF_SIZE 256
- #define CFG_UART1_TX_BUF_SIZE 128
- #define CFG_UART1_RX_BUF_SIZE 256
- #define CFG_UART2_TX_BUF_SIZE 128
- #define CFG_UART2_RX_BUF_SIZE 256
- #define CFG_UART_BAUDRATE_LOG 921600
- #define CFG_UART_BAUDRATE_CONSOLE 115200
- #endif /* _PROJ_CONFIG_H_ */
|