mbed-os

Fork of mbed-os by erkin yucel

Committer:
elessair
Date:
Sun Oct 23 15:10:02 2016 +0000
Revision:
0:f269e3021894
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
elessair 0:f269e3021894 1 /**
elessair 0:f269e3021894 2 ******************************************************************************
elessair 0:f269e3021894 3 * @file swversion.c
elessair 0:f269e3021894 4 * @brief Defines the system revision for the current application.
elessair 0:f269e3021894 5 * @internal
elessair 0:f269e3021894 6 * @author ON Semiconductor
elessair 0:f269e3021894 7 * $Rev: 2199 $
elessair 0:f269e3021894 8 * $Date: 2013-08-07 12:17:27 +0200 (Wed, 07 Aug 2013) $
elessair 0:f269e3021894 9 ******************************************************************************
elessair 0:f269e3021894 10 * Copyright 2016 Semiconductor Components Industries LLC (d/b/a "ON Semiconductor").
elessair 0:f269e3021894 11 * All rights reserved. This software and/or documentation is licensed by ON Semiconductor
elessair 0:f269e3021894 12 * under limited terms and conditions. The terms and conditions pertaining to the software
elessair 0:f269e3021894 13 * and/or documentation are available at http://www.onsemi.com/site/pdf/ONSEMI_T&C.pdf
elessair 0:f269e3021894 14 * ("ON Semiconductor Standard Terms and Conditions of Sale, Section 8 Software") and
elessair 0:f269e3021894 15 * if applicable the software license agreement. Do not use this software and/or
elessair 0:f269e3021894 16 * documentation unless you have carefully read and you agree to the limited terms and
elessair 0:f269e3021894 17 * conditions. By using this software and/or documentation, you agree to the limited
elessair 0:f269e3021894 18 * terms and conditions.
elessair 0:f269e3021894 19 *
elessair 0:f269e3021894 20 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
elessair 0:f269e3021894 21 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
elessair 0:f269e3021894 22 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
elessair 0:f269e3021894 23 * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL,
elessair 0:f269e3021894 24 * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
elessair 0:f269e3021894 25 * @endinternal
elessair 0:f269e3021894 26 *
elessair 0:f269e3021894 27 * @ingroup common_mib
elessair 0:f269e3021894 28 */
elessair 0:f269e3021894 29
elessair 0:f269e3021894 30 /* Other inclusions */
elessair 0:f269e3021894 31 #include <stdint.h>
elessair 0:f269e3021894 32 #include "fib.h"
elessair 0:f269e3021894 33
elessair 0:f269e3021894 34 /*************************************************************************************************
elessair 0:f269e3021894 35 * *
elessair 0:f269e3021894 36 * Global variables *
elessair 0:f269e3021894 37 * *
elessair 0:f269e3021894 38 *************************************************************************************************/
elessair 0:f269e3021894 39
elessair 0:f269e3021894 40 #ifdef __ICCARM__
elessair 0:f269e3021894 41 /** Define a fib table constant region, to be located at fixed offset in the binary
elessair 0:f269e3021894 42 * such that flash loader knows where to find it and gets the build dependent data
elessair 0:f269e3021894 43 * it needs for programming the new fib.
elessair 0:f269e3021894 44 */
elessair 0:f269e3021894 45 __root const fibtable_t fib_table @ "FIBTABLE" = { LOAD_ADDRESS,{0x0,0x00,0x00,0x00}};
elessair 0:f269e3021894 46 #endif /* IAR */
elessair 0:f269e3021894 47
elessair 0:f269e3021894 48 const mib_systemRevision_t systemRevision = {
elessair 0:f269e3021894 49 0x82, /**< hardware revision */
elessair 0:f269e3021894 50 0x00, /**< patch level */
elessair 0:f269e3021894 51 0x01, /**< Build number */
elessair 0:f269e3021894 52 0x00, /**< feature set, Minor version */
elessair 0:f269e3021894 53 0x01, /**< generation, Major version */
elessair 0:f269e3021894 54 'E' /**< release */
elessair 0:f269e3021894 55 };