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