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