This is a part of the Kinetiszer project.
sysinit.c@1:8ae4ab73ca6a, 2014-10-28 (annotated)
- Committer:
- Clemo
- Date:
- Tue Oct 28 20:09:12 2014 +0000
- Revision:
- 1:8ae4ab73ca6a
- Parent:
- 0:cb80470434eb
First publication (untested)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Clemo | 0:cb80470434eb | 1 | /* |
Clemo | 0:cb80470434eb | 2 | * @brief Common SystemInit function for LPC13xx chips |
Clemo | 0:cb80470434eb | 3 | * |
Clemo | 0:cb80470434eb | 4 | * @note |
Clemo | 0:cb80470434eb | 5 | * Copyright(C) NXP Semiconductors, 2013 |
Clemo | 0:cb80470434eb | 6 | * All rights reserved. |
Clemo | 0:cb80470434eb | 7 | * |
Clemo | 0:cb80470434eb | 8 | * @par |
Clemo | 0:cb80470434eb | 9 | * Software that is described herein is for illustrative purposes only |
Clemo | 0:cb80470434eb | 10 | * which provides customers with programming information regarding the |
Clemo | 0:cb80470434eb | 11 | * LPC products. This software is supplied "AS IS" without any warranties of |
Clemo | 0:cb80470434eb | 12 | * any kind, and NXP Semiconductors and its licensor disclaim any and |
Clemo | 0:cb80470434eb | 13 | * all warranties, express or implied, including all implied warranties of |
Clemo | 0:cb80470434eb | 14 | * merchantability, fitness for a particular purpose and non-infringement of |
Clemo | 0:cb80470434eb | 15 | * intellectual property rights. NXP Semiconductors assumes no responsibility |
Clemo | 0:cb80470434eb | 16 | * or liability for the use of the software, conveys no license or rights under any |
Clemo | 0:cb80470434eb | 17 | * patent, copyright, mask work right, or any other intellectual property rights in |
Clemo | 0:cb80470434eb | 18 | * or to any products. NXP Semiconductors reserves the right to make changes |
Clemo | 0:cb80470434eb | 19 | * in the software without notification. NXP Semiconductors also makes no |
Clemo | 0:cb80470434eb | 20 | * representation or warranty that such application will be suitable for the |
Clemo | 0:cb80470434eb | 21 | * specified use without further testing or modification. |
Clemo | 0:cb80470434eb | 22 | * |
Clemo | 0:cb80470434eb | 23 | * @par |
Clemo | 0:cb80470434eb | 24 | * Permission to use, copy, modify, and distribute this software and its |
Clemo | 0:cb80470434eb | 25 | * documentation is hereby granted, under NXP Semiconductors' and its |
Clemo | 0:cb80470434eb | 26 | * licensor's relevant copyrights in the software, without fee, provided that it |
Clemo | 0:cb80470434eb | 27 | * is used in conjunction with NXP Semiconductors microcontrollers. This |
Clemo | 0:cb80470434eb | 28 | * copyright, permission, and disclaimer notice must appear in all copies of |
Clemo | 0:cb80470434eb | 29 | * this code. |
Clemo | 0:cb80470434eb | 30 | */ |
Clemo | 0:cb80470434eb | 31 | |
Clemo | 0:cb80470434eb | 32 | #include "board.h" |
Clemo | 0:cb80470434eb | 33 | |
Clemo | 0:cb80470434eb | 34 | |
Clemo | 0:cb80470434eb | 35 | /* Set up and initialize hardware prior to call to main */ |
Clemo | 0:cb80470434eb | 36 | void SystemInit2(void) |
Clemo | 0:cb80470434eb | 37 | { |
Clemo | 0:cb80470434eb | 38 | #if defined(CHIP_LPC1343) |
Clemo | 0:cb80470434eb | 39 | // CPV: Fix for bootloader v5.2 uninitialized variable, |
Clemo | 0:cb80470434eb | 40 | // see user manual UM10375 Rev. 5, page 321. |
Clemo | 0:cb80470434eb | 41 | // But with the typo corrected ;-) |
Clemo | 0:cb80470434eb | 42 | *((uint32_t *)(0x10000054)) = 0x0; |
Clemo | 0:cb80470434eb | 43 | #endif |
Clemo | 0:cb80470434eb | 44 | |
Clemo | 0:cb80470434eb | 45 | #if defined(NO_BOARD_LIB) |
Clemo | 0:cb80470434eb | 46 | /* Chip specific SystemInit */ |
Clemo | 0:cb80470434eb | 47 | Chip_SystemInit(); |
Clemo | 0:cb80470434eb | 48 | #else |
Clemo | 0:cb80470434eb | 49 | /* Board specific SystemInit */ |
Clemo | 0:cb80470434eb | 50 | Board_SystemInit(); |
Clemo | 0:cb80470434eb | 51 | #endif |
Clemo | 0:cb80470434eb | 52 | } |