You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

138 lines
2.1 KiB

#ifndef __CONFIG_H__
#define __CONFIG_H__
#ifdef __cplusplus
extern "C" {
#endif
/* include each target's configuration */
#include "target.h"
/* serial config */
#ifndef TARGET_HAS_USART1
#define TARGET_HAS_USART1 0
#endif
#ifndef TARGET_HAS_USART2
#define TARGET_HAS_USART2 0
#endif
#ifndef TARGET_HAS_USART3
#define TARGET_HAS_USART3 0
#endif
#ifndef TARGET_HAS_USART4
#define TARGET_HAS_USART4 0
#endif
#ifndef TARGET_HAS_USART5
#define TARGET_HAS_USART5 0
#endif
#ifndef TARGET_HAS_USART6
#define TARGET_HAS_USART6 0
#endif
#ifndef TARGET_HAS_USART7
#define TARGET_HAS_USART7 0
#endif
/* I2C */
#ifndef TARGET_HAS_I2C1
#define TARGET_HAS_I2C1 0
#endif
#ifndef TARGET_HAS_I2C3
#define TARGET_HAS_I2C3 0
#endif
/* I2S */
#ifndef TARGET_HAS_I2S0
#define TARGET_HAS_I2S0 0
#endif
#ifndef TARGET_HEAP_SIZE
#define TARGET_HEAP_SIZE (4096)
#endif
#ifndef TARGET_HAS_SPI1
#define TARGET_HAS_SPI1 0
#endif
#ifndef TARGET_HAS_SPI2
#define TARGET_HAS_SPI2 0
#endif
#ifndef TARGET_SPI_FLASH_PAGE_SIZE
#define TARGET_SPI_FLASH_PAGE_SIZE (4096)
#endif
#ifndef TARGET_HAS_TIM1
#define TARGET_HAS_TIM1 0
#endif
#ifndef TARGET_HAS_TIM2
#define TARGET_HAS_TIM2 0
#endif
#ifndef TARGET_HAS_TIM3
#define TARGET_HAS_TIM3 0
#endif
#ifndef TARGET_HAS_TIM4
#define TARGET_HAS_TIM4 0
#endif
#ifndef TARGET_HAS_TIM5
#define TARGET_HAS_TIM5 0
#endif
#ifndef TARGET_HAS_TIM6
#define TARGET_HAS_TIM6 0
#endif
#ifndef TARGET_HAS_TIM7
#define TARGET_HAS_TIM7 0
#endif
/* for command handler */
#ifndef TARGET_CMD_BUFSIZE
#define TARGET_CMD_BUFSIZE (256)
#endif
#ifndef TARGET_CMD_MULTIMODE
#define TARGET_CMD_MULTIMODE 0
#endif
#ifndef TARGET_CMD_HISTORY
#define TARGET_CMD_HISTORY (8)
#endif
#ifndef TARGET_CMD_MAXARGS
#define TARGET_CMD_MAXARGS (8)
#endif
#ifndef TARGET_HAS_CAN0
#define TARGET_HAS_CAN0 0
#endif
#ifndef TARGET_CAN0_FIFO
#define TARGET_CAN0_FIFO 0
#endif
#ifndef TARGET_HAS_CAN1
#define TARGET_HAS_CAN1 0
#endif
#ifndef TARGET_CAN1_FIFO
#define TARGET_CAN1_FIFO 1
#endif
#ifndef TARGET_EFS_SINGLETON
#define TARGET_EFS_SINGLETON 1
#endif
#ifdef __cplusplus
}
#endif
#endif