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