Mercurial > pub > halpp
view l476rg-hal-test/src/main.cpp @ 1:a0b14b11ad9f
working on dependencies between MCU devices such as GPIO, Pins and Timers
author | cin |
---|---|
date | Fri, 13 Jan 2017 02:11:02 +0300 |
parents | 32a3b1785697 |
children | 0c59e7a7782a |
line wrap: on
line source
/* ****************************************************************************** File: main.c Info: Generated by Atollic TrueSTUDIO(R) 7.0.1 2017-01-12 The MIT License (MIT) Copyright (c) 2009-2016 Atollic AB Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************** */ /* Includes */ #include "stm32l4xx.h" #include "msp.h" /* Private macro */ /* Private variables */ /* Private function prototypes */ /* Private functions */ /** **=========================================================================== ** ** Abstract: main program ** **=========================================================================== */ int main(void) { int i = 0; /** * IMPORTANT NOTE! * The symbol VECT_TAB_SRAM needs to be defined when building the project * if code has been located to RAM and interrupts are used. * Otherwise the interrupt table located in flash will be used. * See also the <system_*.c> file and how the SystemInit() function updates * SCB->VTOR register. * E.g. SCB->VTOR = 0x20000000; */ /* TODO - Add your application code here */ /* Infinite loop */ while (1) { Hardware::pwm1.SetPulse(150); i++; } }