Mercurial > pub > halpp
comparison l476rg-hal-test/src/main.cpp @ 0:32a3b1785697
a rough draft of Hardware Abstraction Layer for C++
STM32L476RG drivers
author | cin |
---|---|
date | Thu, 12 Jan 2017 02:45:43 +0300 |
parents | |
children | a0b14b11ad9f |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:32a3b1785697 |
---|---|
1 /* | |
2 ****************************************************************************** | |
3 File: main.c | |
4 Info: Generated by Atollic TrueSTUDIO(R) 7.0.1 2017-01-12 | |
5 | |
6 The MIT License (MIT) | |
7 Copyright (c) 2009-2016 Atollic AB | |
8 | |
9 Permission is hereby granted, free of charge, to any person obtaining a copy | |
10 of this software and associated documentation files (the "Software"), to deal | |
11 in the Software without restriction, including without limitation the rights | |
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
13 copies of the Software, and to permit persons to whom the Software is | |
14 furnished to do so, subject to the following conditions: | |
15 | |
16 The above copyright notice and this permission notice shall be included in all | |
17 copies or substantial portions of the Software. | |
18 | |
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
22 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
23 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
24 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
25 SOFTWARE. | |
26 ****************************************************************************** | |
27 */ | |
28 | |
29 /* Includes */ | |
30 #include "stm32l4xx.h" | |
31 | |
32 /* Private macro */ | |
33 /* Private variables */ | |
34 /* Private function prototypes */ | |
35 /* Private functions */ | |
36 | |
37 /** | |
38 **=========================================================================== | |
39 ** | |
40 ** Abstract: main program | |
41 ** | |
42 **=========================================================================== | |
43 */ | |
44 int main(void) | |
45 { | |
46 int i = 0; | |
47 | |
48 /** | |
49 * IMPORTANT NOTE! | |
50 * The symbol VECT_TAB_SRAM needs to be defined when building the project | |
51 * if code has been located to RAM and interrupts are used. | |
52 * Otherwise the interrupt table located in flash will be used. | |
53 * See also the <system_*.c> file and how the SystemInit() function updates | |
54 * SCB->VTOR register. | |
55 * E.g. SCB->VTOR = 0x20000000; | |
56 */ | |
57 | |
58 /* TODO - Add your application code here */ | |
59 | |
60 /* Infinite loop */ | |
61 while (1) | |
62 { | |
63 i++; | |
64 } | |
65 } |