stm32f103
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
test_config.h
Go to the documentation of this file.
1 // Board Identification: MainBoard_Ver4_2
2 // Board Designer: Chan Tsz Ho
3 // MCU: STM32F103VCT6
4 
5 #ifndef STM32F103_CONFIG_TEST_CONFIG_H_
6 #define STM32F103_CONFIG_TEST_CONFIG_H_
7 
8 #include "stm32f10x.h"
9 #include "stm32f10x_gpio.h"
10 
11 #define LIB_USE_LED 3
12 #define LIB_LED1_PINOUT {GPIOB, GPIO_Pin_12}
13 #define LIB_LED2_PINOUT {GPIOB, GPIO_Pin_13}
14 #define LIB_LED3_PINOUT {GPIOB, GPIO_Pin_14}
15 
16 #define LIB_USE_BUTTON 2
17 #define LIB_BUTTON1_PINOUT {GPIOB, GPIO_Pin_6}
18 #define LIB_BUTTON2_PINOUT {GPIOB, GPIO_Pin_7}
19 
20 #define LIB_USE_BUZZER 1
21 #define LIB_BUZZER1_PINOUT {GPIOB, GPIO_Pin_0}
22 
23 #define LIB_USE_UART 1
24 #define LIB_UART1_TX_PINOUT {GPIOA, GPIO_Pin_9}
25 #define LIB_UART1_RX_PINOUT {GPIOA, GPIO_Pin_10}
26 
27 #define LIB_USE_TFT 1
28 #define LIB_TFT1_SCK_PINOUT {GPIOA, GPIO_Pin_5}
29 #define LIB_TFT1_MISO_PINOUT {GPIOA, GPIO_Pin_6}
30 #define LIB_TFT1_MOSI_PINOUT {GPIOA, GPIO_Pin_7}
31 #define LIB_TFT1_SS_PINOUT {GPIOA, GPIO_Pin_4}
32 #define LIB_TFT1_DEPS {TFT1, RCC_APB2Periph_TFT1, LIB_TFT1_SCK_PINOUT, LIB_TFT1_MISO_PINOUT, LIB_TFT1_MOSI_PINOUT, LIB_TFT1_SS_PINOUT}
33 
34 #endif // STM32F103_CONFIG_TEST_CONFIG_H_