Unyte Logo Animation (growing leaf in 6 frames)

Dependencies:   unytelogo BLE_API USBDevice mbed

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Committer:
SamShiSS
Date:
Tue Jul 18 14:49:16 2017 +0000
Revision:
32:d1c11d170f0e
Unyte logo animation (growing leaf)

Who changed what in which revision?

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