RTLib
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
mainboard_ver4_2.h
Go to the documentation of this file.
1 
20 /*
21  * This file is part of RTLib.
22  *
23  * Copyright (C) 2017-2018 Derppening <david.18.19.21@gmail.com>
24  *
25  * RTLib is free software: you can redistribute it and/or modify
26  * it under the terms of the GNU Lesser General Public License as published by
27  * the Free Software Foundation, either version 3 of the License, or
28  * (at your option) any later version.
29  *
30  * RTLib is distributed in the hope that it will be useful,
31  * but WITHOUT ANY WARRANTY; without even the implied warranty of
32  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33  * GNU Lesser General Public License for more details.
34  *
35  * You should have received a copy of the GNU Lesser General Public License
36  * along with RTLib. If not, see <http://www.gnu.org/licenses/>.
37  */
38 
39 #ifndef RTLIB_CONFIG_MAINBOARD_VER4_2_H_
40 #define RTLIB_CONFIG_MAINBOARD_VER4_2_H_
41 
42 #if !defined(STM32F103VCT6)
43 #error "This configuration is designed for a STM32F103VCT6 device. (Did you set DEVICE in CMakeLists.txt correctly?)"
44 #endif // !defined(STM32F103VCT6)
45 
46 #define LIB_USE_LED 3
47 #define LIB_LED0_PINOUT {GPIOB, GPIO12}
48 #define LIB_LED1_PINOUT {GPIOB, GPIO13}
49 #define LIB_LED2_PINOUT {GPIOB, GPIO14}
50 
51 #define LIB_USE_BUTTON 2
52 #define LIB_BUTTON0_PINOUT {GPIOB, GPIO6}
53 #define LIB_BUTTON1_PINOUT {GPIOB, GPIO7}
54 
55 #endif // RTLIB_CONFIG_MAINBOARD_VER4_2_H_