CMSIS2000
0.0.7
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
example_applic_main.c
Go to the documentation of this file.
1
/*
2
* CMSIS2000
3
* CMSIS-like sources for LPC2xxx series MCUs
4
*
5
* (C) Copyright 2011-2012, Dmitriy Cherepanov, All Rights Reserved
6
*
7
* Version: 0.0.7
8
* Date of the Last Update: 2013-03-04
9
*
10
* Permission is hereby granted, free of charge, to any person obtaining a copy
11
* of this software and associated documentation files (the "Software"), to
12
* deal in the Software without restriction, including without limitation the
13
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
14
* sell copies of the Software, and to permit persons to whom the Software is
15
* furnished to do so, subject to the following conditions:
16
*
17
* The above copyright notice and this permission notice shall be included in
18
* all copies or substantial portions of the Software.
19
*
20
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
26
* IN THE SOFTWARE.
27
*
28
* Do not be lasy! For the latest version see http://irtos.sourceforge.net .
29
*
30
*
31
#*/
32
33
/**
34
* @file template_main.c
35
* @brief A simple template for CMAKE project
36
* @version x.x
37
* @date dd. mm. yy
38
* @author xxxx
39
*
40
*/
41
/* This file is public domain you may use it as you wish */
42
43
/* Include files */
44
/* <<add include files here>> */
45
46
47
/*-------------------- MACROSES ----------------------------------------------*/
48
/* <<add macroses here >> */
49
50
51
/*-------------------- FILE PRIVATE VARIABLES---------------------------------*/
52
/* <<add private variables here >> */
53
54
55
/*-------------------- FILE PRIVATE FUNCTIONS API-----------------------------*/
56
/* <<add declaration of private functions here >> */
57
/*static */
int
c_entry
(
void
);
58
59
60
/*-------------------- PUBLIC FUNCTION IMPLEMENTATION ------------------------*/
61
/* <<add implementation of public functions here >> */
62
63
/* Support required entry point for other toolchain */
64
int
main
(
void
)
65
{
66
return
c_entry
();
67
}
68
#ifdef DEBUG
69
/*******************************************************************************
70
* @brief Reports the name of the source file and the source line number
71
* where the CHECK_PARAM error has occurred.
72
* @param[in] file Pointer to the source file name
73
* @param[in] line assert_param error line source number
74
* @return None
75
*******************************************************************************/
76
void
check_failed
(
uint8_t
*file,
uint32_t
line)
77
{
78
/* User can add his own implementation to report the file name and line number,
79
ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
80
81
/* Infinite loop */
82
while
(1);
83
}
84
#endif
85
/*-------------------------- PRIVATE FUNCTION IMPLEMENTATION -----------------*/
86
/* <<add implementation of private functions here >> */
87
88
/**
89
* @brief Main program body
90
*/
91
int
c_entry
(
void
)
92
{
93
/* <<add code here >> */
94
while
(1);
95
return
1;
96
}
Device
NXP
LPC17xx
Examples
Project_Template
example_applic_main.c
Generated on Wed Mar 6 2013 01:06:10 for CMSIS2000 by
1.8.1.2