Skip to content

Commit

Permalink
add LICENSE, fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
scottt committed Oct 10, 2015
1 parent be8c6bc commit b48a4a4
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 3 deletions.
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Unless specifically indicated otherwise in a file, files are licensed
under the BSD 3-clause license, as can be found in: bsd-3-clause.txt
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Community member maintained CMSIS-CORE headers for NXP LPC111x devices
=====

See [cmsis-no-hal](https://github.com/scottt/cmsis-no-hal) for usage examples.
26 changes: 26 additions & 0 deletions bsd-3-clause.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Copyright (c) 2009 - 2015 ARM LIMITED

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the Institute nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

7 changes: 4 additions & 3 deletions module.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "cmsis-core-lpc111x",
"version": "0.0.0",
"description": "CMSIS Core Implementation for NXP lpc111x microcontrollers",
"description": "CMSIS-CORE Implementation for NXP lpc111x microcontrollers",
"keywords": [
"cmsis-core",
"cmsis",
"NXP",
"nxp",
"lpc1114",
"lpc111x"
],
"author": "Scott Tsai <[email protected]>",
Expand All @@ -24,6 +25,6 @@
"cmsis-core-lpc111x"
],
"dependencies": {
"cmsis-core": "~0.3.0"
"cmsis-core": ">=0.3.0"
}
}
2 changes: 2 additions & 0 deletions source/system_lpc11xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ void SystemCoreClockUpdate (void) /* Get Core Clock Frequency */
* Initialize the System.
*/
void SystemInit (void) {
#if (((SYSPLLCLKSEL_Val & 0x03) == 1) || ((MAINCLKSEL_Val & 0x03) == 2))
volatile uint32_t i;
#endif

#if (CLOCK_SETUP) /* Clock Setup */

Expand Down

0 comments on commit b48a4a4

Please sign in to comment.