RTLib
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
util.h
Go to the documentation of this file.
1
7
/*
8
* This file is part of RTLib.
9
*
10
* Copyright (C) 2017-2018 Derppening <david.18.19.21@gmail.com>
11
*
12
* RTLib is free software: you can redistribute it and/or modify
13
* it under the terms of the GNU Lesser General Public License as published by
14
* the Free Software Foundation, either version 3 of the License, or
15
* (at your option) any later version.
16
*
17
* RTLib is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU Lesser General Public License for more details.
21
*
22
* You should have received a copy of the GNU Lesser General Public License
23
* along with RTLib. If not, see <http://www.gnu.org/licenses/>.
24
*/
25
26
#ifndef RTLIB_CORE_UTIL_H_
27
#define RTLIB_CORE_UTIL_H_
28
29
#include <cstdint>
30
#include <utility>
31
32
#if defined(STM32F1)
33
#define CORE_NS core::stm32f1
34
#elif defined(STM32F4)
35
#define CORE_NS core::stm32f4
36
#endif
37
41
using
Port
= unsigned;
45
using
Pin
= uint16_t;
49
using
Pinout
= std::pair<Port, Pin>;
50
51
#endif // RTLIB_CORE_UTIL_H_
Port
unsigned Port
Type definition for MCU Port.
Definition:
util.h:41
Pinout
std::pair< Port, Pin > Pinout
Type definition for MCU Pinout.
Definition:
util.h:49
Pin
uint16_t Pin
Type definition for MCU Pin.
Definition:
util.h:45
src
core
util.h
Generated on Fri Jun 15 2018 08:44:09 for RTLib by
1.8.6