surenyi
6 years ago
7 changed files with 57 additions and 40 deletions
@ -0,0 +1,57 @@ |
|||
#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 |
|||
|
|||
#ifdef __cplusplus |
|||
} |
|||
#endif |
|||
#endif |
|||
|
Loading…
Reference in new issue