forked from at-2500/libstm32pp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
85 lines (62 loc) · 2.98 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*******************************************************************************
*
* Copyright (C) 2012 Jorge Aparicio <jorge.aparicio.r@gmail.com>
*
* This file is part of libstm32pp.
*
* libstm32pp is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option)
* any later version.
*
* libstm32pp is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with libstm32pp. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
ABOUT
=====
libstm32pp is a template peripheral library for the STM32F1/STM32F2/STM32F4
family of microcontrollers(uC).
This library is written in C++, and uses heavily template metaprogramming,
statics assertions, templates and enumerators.
All these features provide a memory efficient implementation, compile-time
error-checking and strong typing.
INSTALLATION AND USE
====================
There is no installation, this is a header file only library.
To use this library, simply link the libstm32pp/include folder to your source.
The following files are important:
+ device_select.hpp Here the microcontroller family must be selected.
(uncomment the family you are going to use)
+ clock.hpp Here the uC clocks can be configured.
(be sure to call clk::initialize() as soon as possible
in your program)
+ interrupt_cpp.hpp This is actually a source file that configures the uC
interrupts.
(include this file in a source file .cpp)
+ system_call_cpp.hpp This is actually a source file that implements the
newlib hardware dependant functions.
(include this file in a source file .cpp)
Check the "demo" folder for examples.
An editor with auto-complete feature is highly recommended for development using
this library.
If you need an open source framework for development of these families of uCs,
you should check the bareCortexM project:
(https://github.com/JorgeAparicio/bareCortexM)
It's a framework based on the Eclipse IDE and the GCC toolchain, for bare metal
development of Cortex™ M Series processors.
LICENSE
=======
This project is licensed under the:
GNU Lesser General Public License (LGPL) version 3.
See COPYING.GPL3.txt and COPYING.LGPL3.txt for more details.
DISCLAIMER
==========
Cortex™ is a trademark of ARM Limited. ST, STM32 are trademarks of
STMicroelectronics. All other trademarks are property of their respective
owners.