growing leaf (6 frames) and reverse
Dependencies: Adafruit_GFX_i2c BLE_API USBDevice mbed
Fork of mbed-os-example-mbed5-blinky by
icc_regs.h@32:114e947a916b, 2017-07-18 (annotated)
- Committer:
- SamShiSS
- Date:
- Tue Jul 18 16:39:46 2017 +0000
- Revision:
- 32:114e947a916b
unyte logo animation
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
SamShiSS | 32:114e947a916b | 1 | /******************************************************************************* |
SamShiSS | 32:114e947a916b | 2 | * Copyright (C) 2014 Maxim Integrated Products, Inc., All Rights Reserved. |
SamShiSS | 32:114e947a916b | 3 | * |
SamShiSS | 32:114e947a916b | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
SamShiSS | 32:114e947a916b | 5 | * copy of this software and associated documentation files (the "Software"), |
SamShiSS | 32:114e947a916b | 6 | * to deal in the Software without restriction, including without limitation |
SamShiSS | 32:114e947a916b | 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
SamShiSS | 32:114e947a916b | 8 | * and/or sell copies of the Software, and to permit persons to whom the |
SamShiSS | 32:114e947a916b | 9 | * Software is furnished to do so, subject to the following conditions: |
SamShiSS | 32:114e947a916b | 10 | * |
SamShiSS | 32:114e947a916b | 11 | * The above copyright notice and this permission notice shall be included |
SamShiSS | 32:114e947a916b | 12 | * in all copies or substantial portions of the Software. |
SamShiSS | 32:114e947a916b | 13 | * |
SamShiSS | 32:114e947a916b | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
SamShiSS | 32:114e947a916b | 15 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
SamShiSS | 32:114e947a916b | 16 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
SamShiSS | 32:114e947a916b | 17 | * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES |
SamShiSS | 32:114e947a916b | 18 | * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
SamShiSS | 32:114e947a916b | 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
SamShiSS | 32:114e947a916b | 20 | * OTHER DEALINGS IN THE SOFTWARE. |
SamShiSS | 32:114e947a916b | 21 | * |
SamShiSS | 32:114e947a916b | 22 | * Except as contained in this notice, the name of Maxim Integrated |
SamShiSS | 32:114e947a916b | 23 | * Products, Inc. shall not be used except as stated in the Maxim Integrated |
SamShiSS | 32:114e947a916b | 24 | * Products, Inc. Branding Policy. |
SamShiSS | 32:114e947a916b | 25 | * |
SamShiSS | 32:114e947a916b | 26 | * The mere transfer of this software does not imply any licenses |
SamShiSS | 32:114e947a916b | 27 | * of trade secrets, proprietary technology, copyrights, patents, |
SamShiSS | 32:114e947a916b | 28 | * trademarks, maskwork rights, or any other form of intellectual |
SamShiSS | 32:114e947a916b | 29 | * property whatsoever. Maxim Integrated Products, Inc. retains all |
SamShiSS | 32:114e947a916b | 30 | * ownership rights. |
SamShiSS | 32:114e947a916b | 31 | ******************************************************************************* |
SamShiSS | 32:114e947a916b | 32 | */ |
SamShiSS | 32:114e947a916b | 33 | |
SamShiSS | 32:114e947a916b | 34 | /* $Revision: 3545 $ $Date: 2014-11-11 18:20:37 -0600 (Tue, 11 Nov 2014) $ */ |
SamShiSS | 32:114e947a916b | 35 | |
SamShiSS | 32:114e947a916b | 36 | #ifndef _MXC_ICC_REGS_H_ |
SamShiSS | 32:114e947a916b | 37 | #define _MXC_ICC_REGS_H_ |
SamShiSS | 32:114e947a916b | 38 | |
SamShiSS | 32:114e947a916b | 39 | |
SamShiSS | 32:114e947a916b | 40 | #ifdef __cplusplus |
SamShiSS | 32:114e947a916b | 41 | extern "C" { |
SamShiSS | 32:114e947a916b | 42 | #endif |
SamShiSS | 32:114e947a916b | 43 | |
SamShiSS | 32:114e947a916b | 44 | #include <stdint.h> |
SamShiSS | 32:114e947a916b | 45 | |
SamShiSS | 32:114e947a916b | 46 | /* |
SamShiSS | 32:114e947a916b | 47 | If types are not defined elsewhere (CMSIS) define them here |
SamShiSS | 32:114e947a916b | 48 | */ |
SamShiSS | 32:114e947a916b | 49 | #ifndef __IO |
SamShiSS | 32:114e947a916b | 50 | #define __IO volatile |
SamShiSS | 32:114e947a916b | 51 | #endif |
SamShiSS | 32:114e947a916b | 52 | #ifndef __I |
SamShiSS | 32:114e947a916b | 53 | #define __I volatile const |
SamShiSS | 32:114e947a916b | 54 | #endif |
SamShiSS | 32:114e947a916b | 55 | #ifndef __O |
SamShiSS | 32:114e947a916b | 56 | #define __O volatile |
SamShiSS | 32:114e947a916b | 57 | #endif |
SamShiSS | 32:114e947a916b | 58 | #ifndef __R |
SamShiSS | 32:114e947a916b | 59 | #define __R volatile const |
SamShiSS | 32:114e947a916b | 60 | #endif |
SamShiSS | 32:114e947a916b | 61 | |
SamShiSS | 32:114e947a916b | 62 | /* |
SamShiSS | 32:114e947a916b | 63 | Bitfield structs for registers in this module |
SamShiSS | 32:114e947a916b | 64 | */ |
SamShiSS | 32:114e947a916b | 65 | typedef struct |
SamShiSS | 32:114e947a916b | 66 | { |
SamShiSS | 32:114e947a916b | 67 | uint32_t rtl_version : 6; |
SamShiSS | 32:114e947a916b | 68 | uint32_t part_num : 4; |
SamShiSS | 32:114e947a916b | 69 | uint32_t cache_id : 6; |
SamShiSS | 32:114e947a916b | 70 | uint32_t : 16; |
SamShiSS | 32:114e947a916b | 71 | } mxc_icc_id_t; |
SamShiSS | 32:114e947a916b | 72 | |
SamShiSS | 32:114e947a916b | 73 | typedef struct |
SamShiSS | 32:114e947a916b | 74 | { |
SamShiSS | 32:114e947a916b | 75 | uint32_t cache_size : 16; |
SamShiSS | 32:114e947a916b | 76 | uint32_t main_memory_size : 16; |
SamShiSS | 32:114e947a916b | 77 | } mxc_icc_mem_cfg_t; |
SamShiSS | 32:114e947a916b | 78 | |
SamShiSS | 32:114e947a916b | 79 | typedef struct |
SamShiSS | 32:114e947a916b | 80 | { |
SamShiSS | 32:114e947a916b | 81 | uint32_t enable : 1; |
SamShiSS | 32:114e947a916b | 82 | uint32_t : 15; |
SamShiSS | 32:114e947a916b | 83 | uint32_t ready : 1; |
SamShiSS | 32:114e947a916b | 84 | uint32_t : 15; |
SamShiSS | 32:114e947a916b | 85 | } mxc_icc_ctrl_stat_t; |
SamShiSS | 32:114e947a916b | 86 | |
SamShiSS | 32:114e947a916b | 87 | |
SamShiSS | 32:114e947a916b | 88 | /* |
SamShiSS | 32:114e947a916b | 89 | Typedefed structure(s) for module registers (per instance or section) with direct 32-bit |
SamShiSS | 32:114e947a916b | 90 | register access along with union access to bit/bitfield struct (where defined). |
SamShiSS | 32:114e947a916b | 91 | */ |
SamShiSS | 32:114e947a916b | 92 | /* Offset Register Description |
SamShiSS | 32:114e947a916b | 93 | ====== =================================================== */ |
SamShiSS | 32:114e947a916b | 94 | typedef struct { |
SamShiSS | 32:114e947a916b | 95 | union { |
SamShiSS | 32:114e947a916b | 96 | __IO uint32_t id; /* 0x0000 Device ID Register */ |
SamShiSS | 32:114e947a916b | 97 | __IO mxc_icc_id_t id_f; |
SamShiSS | 32:114e947a916b | 98 | }; |
SamShiSS | 32:114e947a916b | 99 | union { |
SamShiSS | 32:114e947a916b | 100 | __IO uint32_t mem_cfg; /* 0x0004 Memory Configuration */ |
SamShiSS | 32:114e947a916b | 101 | __IO mxc_icc_mem_cfg_t mem_cfg_f; |
SamShiSS | 32:114e947a916b | 102 | }; |
SamShiSS | 32:114e947a916b | 103 | __R uint32_t rsv0008[62]; /* 0x0008 */ |
SamShiSS | 32:114e947a916b | 104 | union { |
SamShiSS | 32:114e947a916b | 105 | __IO uint32_t ctrl_stat; /* 0x0100 Control and Status */ |
SamShiSS | 32:114e947a916b | 106 | __IO mxc_icc_ctrl_stat_t ctrl_stat_f; |
SamShiSS | 32:114e947a916b | 107 | }; |
SamShiSS | 32:114e947a916b | 108 | __R uint32_t rsv0104[383]; /* 0x0104 */ |
SamShiSS | 32:114e947a916b | 109 | __IO uint32_t invdt_all; /* 0x0700 Invalidate (Clear) Cache Control */ |
SamShiSS | 32:114e947a916b | 110 | } mxc_icc_regs_t; |
SamShiSS | 32:114e947a916b | 111 | |
SamShiSS | 32:114e947a916b | 112 | |
SamShiSS | 32:114e947a916b | 113 | /* |
SamShiSS | 32:114e947a916b | 114 | Register offsets for module ICC. |
SamShiSS | 32:114e947a916b | 115 | */ |
SamShiSS | 32:114e947a916b | 116 | #define MXC_R_ICC_OFFS_ID ((uint32_t)0x00000000UL) |
SamShiSS | 32:114e947a916b | 117 | #define MXC_R_ICC_OFFS_MEM_CFG ((uint32_t)0x00000004UL) |
SamShiSS | 32:114e947a916b | 118 | #define MXC_R_ICC_OFFS_CTRL_STAT ((uint32_t)0x00000100UL) |
SamShiSS | 32:114e947a916b | 119 | #define MXC_R_ICC_OFFS_INVDT_ALL ((uint32_t)0x00000700UL) |
SamShiSS | 32:114e947a916b | 120 | |
SamShiSS | 32:114e947a916b | 121 | #ifdef __cplusplus |
SamShiSS | 32:114e947a916b | 122 | } |
SamShiSS | 32:114e947a916b | 123 | #endif |
SamShiSS | 32:114e947a916b | 124 | #endif |
SamShiSS | 32:114e947a916b | 125 |