The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_NCS36510/TOOLCHAIN_IAR/flash_map.h@171:3a7713b1edbc, 2018-11-08 (annotated)
- Committer:
- AnnaBridge
- Date:
- Thu Nov 08 11:45:42 2018 +0000
- Revision:
- 171:3a7713b1edbc
mbed library. Release version 164
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 171:3a7713b1edbc | 1 | /** |
AnnaBridge | 171:3a7713b1edbc | 2 | ****************************************************************************** |
AnnaBridge | 171:3a7713b1edbc | 3 | * @file flash_map.h |
AnnaBridge | 171:3a7713b1edbc | 4 | * @brief Flash controller HW register map |
AnnaBridge | 171:3a7713b1edbc | 5 | * @internal |
AnnaBridge | 171:3a7713b1edbc | 6 | * @author ON Semiconductor |
AnnaBridge | 171:3a7713b1edbc | 7 | * $Rev: 2686 $ |
AnnaBridge | 171:3a7713b1edbc | 8 | * $Date: 2014-01-23 13:31:54 +0530 (Thu, 23 Jan 2014) $ |
AnnaBridge | 171:3a7713b1edbc | 9 | ****************************************************************************** |
AnnaBridge | 171:3a7713b1edbc | 10 | * Copyright 2016 Semiconductor Components Industries LLC (d/b/a ON Semiconductor). |
AnnaBridge | 171:3a7713b1edbc | 11 | * All rights reserved. This software and/or documentation is licensed by ON Semiconductor |
AnnaBridge | 171:3a7713b1edbc | 12 | * under limited terms and conditions. The terms and conditions pertaining to the software |
AnnaBridge | 171:3a7713b1edbc | 13 | * and/or documentation are available at http://www.onsemi.com/site/pdf/ONSEMI_T&C.pdf |
AnnaBridge | 171:3a7713b1edbc | 14 | * (ON Semiconductor Standard Terms and Conditions of Sale, Section 8 Software) and |
AnnaBridge | 171:3a7713b1edbc | 15 | * if applicable the software license agreement. Do not use this software and/or |
AnnaBridge | 171:3a7713b1edbc | 16 | * documentation unless you have carefully read and you agree to the limited terms and |
AnnaBridge | 171:3a7713b1edbc | 17 | * conditions. By using this software and/or documentation, you agree to the limited |
AnnaBridge | 171:3a7713b1edbc | 18 | * terms and conditions. |
AnnaBridge | 171:3a7713b1edbc | 19 | * |
AnnaBridge | 171:3a7713b1edbc | 20 | * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED |
AnnaBridge | 171:3a7713b1edbc | 21 | * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF |
AnnaBridge | 171:3a7713b1edbc | 22 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. |
AnnaBridge | 171:3a7713b1edbc | 23 | * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, |
AnnaBridge | 171:3a7713b1edbc | 24 | * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
AnnaBridge | 171:3a7713b1edbc | 25 | * @endinternal |
AnnaBridge | 171:3a7713b1edbc | 26 | * |
AnnaBridge | 171:3a7713b1edbc | 27 | * @ingroup flash |
AnnaBridge | 171:3a7713b1edbc | 28 | * |
AnnaBridge | 171:3a7713b1edbc | 29 | * @details |
AnnaBridge | 171:3a7713b1edbc | 30 | * <p> |
AnnaBridge | 171:3a7713b1edbc | 31 | * Flash controller HW register map description |
AnnaBridge | 171:3a7713b1edbc | 32 | * </p> |
AnnaBridge | 171:3a7713b1edbc | 33 | * |
AnnaBridge | 171:3a7713b1edbc | 34 | */ |
AnnaBridge | 171:3a7713b1edbc | 35 | #ifndef FLASH_MAP_H_ |
AnnaBridge | 171:3a7713b1edbc | 36 | #define FLASH_MAP_H_ |
AnnaBridge | 171:3a7713b1edbc | 37 | |
AnnaBridge | 171:3a7713b1edbc | 38 | #include "architecture.h" |
AnnaBridge | 171:3a7713b1edbc | 39 | |
AnnaBridge | 171:3a7713b1edbc | 40 | /** Flash Control HW Structure Overlay */ |
AnnaBridge | 171:3a7713b1edbc | 41 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 42 | union { |
AnnaBridge | 171:3a7713b1edbc | 43 | struct { |
AnnaBridge | 171:3a7713b1edbc | 44 | __I uint32_t FLASH_A_BUSY:1; /**< Busy A */ |
AnnaBridge | 171:3a7713b1edbc | 45 | __I uint32_t FLASH_B_BUSY:1; /**< Busy B */ |
AnnaBridge | 171:3a7713b1edbc | 46 | __I uint32_t FLASH_A_UNLOCK:1; /**< Unlock A */ |
AnnaBridge | 171:3a7713b1edbc | 47 | __I uint32_t FLASH_B_UNLOCK:1; /**< Unlock B */ |
AnnaBridge | 171:3a7713b1edbc | 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 */ |
AnnaBridge | 171:3a7713b1edbc | 49 | } BITS; |
AnnaBridge | 171:3a7713b1edbc | 50 | __I uint32_t WORD; |
AnnaBridge | 171:3a7713b1edbc | 51 | } STATUS; |
AnnaBridge | 171:3a7713b1edbc | 52 | union { |
AnnaBridge | 171:3a7713b1edbc | 53 | struct { |
AnnaBridge | 171:3a7713b1edbc | 54 | __IO uint32_t FLASHB_PD:1; |
AnnaBridge | 171:3a7713b1edbc | 55 | __IO uint32_t FLASHA_PD:1; |
AnnaBridge | 171:3a7713b1edbc | 56 | __IO uint32_t REMAP:1; |
AnnaBridge | 171:3a7713b1edbc | 57 | __IO uint32_t WR_INT_EN:1; |
AnnaBridge | 171:3a7713b1edbc | 58 | __IO uint32_t ERASE_INT_EN:1; |
AnnaBridge | 171:3a7713b1edbc | 59 | __IO uint32_t ERROR_INT_EN:1; |
AnnaBridge | 171:3a7713b1edbc | 60 | __IO uint32_t WRITE_BLOCK:1; |
AnnaBridge | 171:3a7713b1edbc | 61 | } BITS; |
AnnaBridge | 171:3a7713b1edbc | 62 | __IO uint32_t WORD; |
AnnaBridge | 171:3a7713b1edbc | 63 | } CONTROL; |
AnnaBridge | 171:3a7713b1edbc | 64 | union { |
AnnaBridge | 171:3a7713b1edbc | 65 | struct { |
AnnaBridge | 171:3a7713b1edbc | 66 | __IO uint32_t PAGEERASE:1; /**< Erase a single page */ |
AnnaBridge | 171:3a7713b1edbc | 67 | __IO uint32_t MASSERASE:1; /**< MASS Erase */ |
AnnaBridge | 171:3a7713b1edbc | 68 | } BITS; |
AnnaBridge | 171:3a7713b1edbc | 69 | __IO uint32_t WORD; |
AnnaBridge | 171:3a7713b1edbc | 70 | } COMMAND; |
AnnaBridge | 171:3a7713b1edbc | 71 | __IO uint32_t ADDR; |
AnnaBridge | 171:3a7713b1edbc | 72 | __IO uint32_t UNLOCK1; |
AnnaBridge | 171:3a7713b1edbc | 73 | __IO uint32_t UNLOCKA; |
AnnaBridge | 171:3a7713b1edbc | 74 | __IO uint32_t UNLOCKB; |
AnnaBridge | 171:3a7713b1edbc | 75 | union { |
AnnaBridge | 171:3a7713b1edbc | 76 | struct { |
AnnaBridge | 171:3a7713b1edbc | 77 | __I uint32_t INT_PEND:1; // Interrupt pending |
AnnaBridge | 171:3a7713b1edbc | 78 | __I uint32_t INT_TYPE:3; // Interrupt type |
AnnaBridge | 171:3a7713b1edbc | 79 | } BITS; |
AnnaBridge | 171:3a7713b1edbc | 80 | __I uint32_t WORD; |
AnnaBridge | 171:3a7713b1edbc | 81 | } INT_STATUS; |
AnnaBridge | 171:3a7713b1edbc | 82 | } FlashReg_t, *FlashReg_pt; |
AnnaBridge | 171:3a7713b1edbc | 83 | |
AnnaBridge | 171:3a7713b1edbc | 84 | #endif /* FLASH_MAP_H_ */ |