test

Fork of mbed-dev by mbed official

Committer:
<>
Date:
Fri Oct 28 11:17:30 2016 +0100
Revision:
149:156823d33999
This updates the lib to the mbed lib v128

NOTE: This release includes a restructuring of the file and directory locations and thus some
include paths in your code may need updating accordingly.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 149:156823d33999 1 /**
<> 149:156823d33999 2 ******************************************************************************
<> 149:156823d33999 3 * @file flash_map.h
<> 149:156823d33999 4 * @brief Flash controller HW register map
<> 149:156823d33999 5 * @internal
<> 149:156823d33999 6 * @author ON Semiconductor
<> 149:156823d33999 7 * $Rev: 2686 $
<> 149:156823d33999 8 * $Date: 2014-01-23 13:31:54 +0530 (Thu, 23 Jan 2014) $
<> 149:156823d33999 9 ******************************************************************************
<> 149:156823d33999 10 * Copyright 2016 Semiconductor Components Industries LLC (d/b/a “ON Semiconductor”).
<> 149:156823d33999 11 * All rights reserved. This software and/or documentation is licensed by ON Semiconductor
<> 149:156823d33999 12 * under limited terms and conditions. The terms and conditions pertaining to the software
<> 149:156823d33999 13 * and/or documentation are available at http://www.onsemi.com/site/pdf/ONSEMI_T&C.pdf
<> 149:156823d33999 14 * (“ON Semiconductor Standard Terms and Conditions of Sale, Section 8 Software”) and
<> 149:156823d33999 15 * if applicable the software license agreement. Do not use this software and/or
<> 149:156823d33999 16 * documentation unless you have carefully read and you agree to the limited terms and
<> 149:156823d33999 17 * conditions. By using this software and/or documentation, you agree to the limited
<> 149:156823d33999 18 * terms and conditions.
<> 149:156823d33999 19 *
<> 149:156823d33999 20 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
<> 149:156823d33999 21 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
<> 149:156823d33999 22 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
<> 149:156823d33999 23 * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL,
<> 149:156823d33999 24 * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
<> 149:156823d33999 25 * @endinternal
<> 149:156823d33999 26 *
<> 149:156823d33999 27 * @ingroup flash
<> 149:156823d33999 28 *
<> 149:156823d33999 29 * @details
<> 149:156823d33999 30 * <p>
<> 149:156823d33999 31 * Flash controller HW register map description
<> 149:156823d33999 32 * </p>
<> 149:156823d33999 33 *
<> 149:156823d33999 34 */
<> 149:156823d33999 35 #ifndef FLASH_MAP_H_
<> 149:156823d33999 36 #define FLASH_MAP_H_
<> 149:156823d33999 37
<> 149:156823d33999 38 #include "architecture.h"
<> 149:156823d33999 39
<> 149:156823d33999 40 /** Flash Control HW Structure Overlay */
<> 149:156823d33999 41 typedef struct {
<> 149:156823d33999 42 union {
<> 149:156823d33999 43 struct {
<> 149:156823d33999 44 __I uint32_t FLASH_A_BUSY:1; /**< Busy A */
<> 149:156823d33999 45 __I uint32_t FLASH_B_BUSY:1; /**< Busy B */
<> 149:156823d33999 46 __I uint32_t FLASH_A_UNLOCK:1; /**< Unlock A */
<> 149:156823d33999 47 __I uint32_t FLASH_B_UNLOCK:1; /**< Unlock B */
<> 149:156823d33999 48 __I uint32_t FLASH_ERROR:3; /**< 000 – No Error, 111 – Attempt to access an array while it is busy powering up, 001 – Attempt to erase bootloader in the field, 010 – Attempt to access array during erase, 100 – Attempt to access array during write */
<> 149:156823d33999 49 } BITS;
<> 149:156823d33999 50 __I uint32_t WORD;
<> 149:156823d33999 51 } STATUS;
<> 149:156823d33999 52 union {
<> 149:156823d33999 53 struct {
<> 149:156823d33999 54 __IO uint32_t FLASHB_PD:1;
<> 149:156823d33999 55 __IO uint32_t FLASHA_PD:1;
<> 149:156823d33999 56 __IO uint32_t REMAP:1;
<> 149:156823d33999 57 __IO uint32_t WR_INT_EN:1;
<> 149:156823d33999 58 __IO uint32_t ERASE_INT_EN:1;
<> 149:156823d33999 59 __IO uint32_t ERROR_INT_EN:1;
<> 149:156823d33999 60 __IO uint32_t WRITE_BLOCK:1;
<> 149:156823d33999 61 } BITS;
<> 149:156823d33999 62 __IO uint32_t WORD;
<> 149:156823d33999 63 } CONTROL;
<> 149:156823d33999 64 union {
<> 149:156823d33999 65 struct {
<> 149:156823d33999 66 __IO uint32_t PAGEERASE:1; /**< Erase a single page */
<> 149:156823d33999 67 __IO uint32_t MASSERASE:1; /**< MASS Erase */
<> 149:156823d33999 68 } BITS;
<> 149:156823d33999 69 __IO uint32_t WORD;
<> 149:156823d33999 70 } COMMAND;
<> 149:156823d33999 71 __IO uint32_t ADDR;
<> 149:156823d33999 72 __IO uint32_t UNLOCK1;
<> 149:156823d33999 73 __IO uint32_t UNLOCKA;
<> 149:156823d33999 74 __IO uint32_t UNLOCKB;
<> 149:156823d33999 75 union {
<> 149:156823d33999 76 struct {
<> 149:156823d33999 77 __I uint32_t INT_PEND:1; // Interrupt pending
<> 149:156823d33999 78 __I uint32_t INT_TYPE:3; // Interrupt type
<> 149:156823d33999 79 } BITS;
<> 149:156823d33999 80 __I uint32_t WORD;
<> 149:156823d33999 81 } INT_STATUS;
<> 149:156823d33999 82 } FlashReg_t, *FlashReg_pt;
<> 149:156823d33999 83
<> 149:156823d33999 84 #endif /* FLASH_MAP_H_ */