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.

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?

UserRevisionLine numberNew contents of line
AnnaBridge 171:3a7713b1edbc 1 /**
AnnaBridge 171:3a7713b1edbc 2 ******************************************************************************
AnnaBridge 171:3a7713b1edbc 3 * @file test_map.h
AnnaBridge 171:3a7713b1edbc 4 * @brief Test hw module register map
AnnaBridge 171:3a7713b1edbc 5 * @internal
AnnaBridge 171:3a7713b1edbc 6 * @author ON Semiconductor
AnnaBridge 171:3a7713b1edbc 7 * $Rev: 2848 $
AnnaBridge 171:3a7713b1edbc 8 * $Date: 2014-04-01 22:48:18 +0530 (Tue, 01 Apr 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 test
AnnaBridge 171:3a7713b1edbc 28 *
AnnaBridge 171:3a7713b1edbc 29 * @details
AnnaBridge 171:3a7713b1edbc 30 */
AnnaBridge 171:3a7713b1edbc 31
AnnaBridge 171:3a7713b1edbc 32 #ifndef TEST_MAP_H_
AnnaBridge 171:3a7713b1edbc 33 #define TEST_MAP_H_
AnnaBridge 171:3a7713b1edbc 34
AnnaBridge 171:3a7713b1edbc 35 /*************************************************************************************************
AnnaBridge 171:3a7713b1edbc 36 * *
AnnaBridge 171:3a7713b1edbc 37 * Header files *
AnnaBridge 171:3a7713b1edbc 38 * *
AnnaBridge 171:3a7713b1edbc 39 *************************************************************************************************/
AnnaBridge 171:3a7713b1edbc 40
AnnaBridge 171:3a7713b1edbc 41 #include "architecture.h"
AnnaBridge 171:3a7713b1edbc 42
AnnaBridge 171:3a7713b1edbc 43 /**************************************************************************************************
AnnaBridge 171:3a7713b1edbc 44 * *
AnnaBridge 171:3a7713b1edbc 45 * Type definitions *
AnnaBridge 171:3a7713b1edbc 46 * *
AnnaBridge 171:3a7713b1edbc 47 **************************************************************************************************/
AnnaBridge 171:3a7713b1edbc 48
AnnaBridge 171:3a7713b1edbc 49 /** General test registers
AnnaBridge 171:3a7713b1edbc 50 *
AnnaBridge 171:3a7713b1edbc 51 */
AnnaBridge 171:3a7713b1edbc 52 typedef struct {
AnnaBridge 171:3a7713b1edbc 53 __IO uint32_t UNLOCK;
AnnaBridge 171:3a7713b1edbc 54 __IO uint32_t ANA_TEST_MUX;
AnnaBridge 171:3a7713b1edbc 55 __IO uint32_t OVD_ENA_MODE;
AnnaBridge 171:3a7713b1edbc 56 __IO uint32_t OVD_VAL;
AnnaBridge 171:3a7713b1edbc 57 __IO uint32_t ANA_TEST_MODE;
AnnaBridge 171:3a7713b1edbc 58 __IO uint32_t CLK_TEST_MODE;
AnnaBridge 171:3a7713b1edbc 59 union {
AnnaBridge 171:3a7713b1edbc 60 struct {
AnnaBridge 171:3a7713b1edbc 61 __IO uint32_t PAD0:1;
AnnaBridge 171:3a7713b1edbc 62 __IO uint32_t PAD1:1;
AnnaBridge 171:3a7713b1edbc 63 __IO uint32_t FORCE_SOURCE:1;
AnnaBridge 171:3a7713b1edbc 64 __IO uint32_t FORCE_SINK:1;
AnnaBridge 171:3a7713b1edbc 65 __IO uint32_t PD_CONTROL:3;
AnnaBridge 171:3a7713b1edbc 66 __IO uint32_t PAD3:1;
AnnaBridge 171:3a7713b1edbc 67 __IO uint32_t BYPASS_PLL_REG:1;
AnnaBridge 171:3a7713b1edbc 68 __IO uint32_t PAD4:4;
AnnaBridge 171:3a7713b1edbc 69 __IO uint32_t DITHER_MODE:1;
AnnaBridge 171:3a7713b1edbc 70 __IO uint32_t PLL_MODE:1;
AnnaBridge 171:3a7713b1edbc 71 __IO uint32_t FORCE_LOCK:1;
AnnaBridge 171:3a7713b1edbc 72 } BITS;
AnnaBridge 171:3a7713b1edbc 73 __IO uint32_t WORD;
AnnaBridge 171:3a7713b1edbc 74 } PLL_TEST_MODE;
AnnaBridge 171:3a7713b1edbc 75 __IO uint32_t RX_TEST_MODE;
AnnaBridge 171:3a7713b1edbc 76 __IO uint32_t PMU_TEST_MODE;
AnnaBridge 171:3a7713b1edbc 77 } TestReg_t, *TestReg_pt;
AnnaBridge 171:3a7713b1edbc 78
AnnaBridge 171:3a7713b1edbc 79 /** Digital test registers
AnnaBridge 171:3a7713b1edbc 80 *
AnnaBridge 171:3a7713b1edbc 81 */
AnnaBridge 171:3a7713b1edbc 82 typedef struct {
AnnaBridge 171:3a7713b1edbc 83 union {
AnnaBridge 171:3a7713b1edbc 84 struct {
AnnaBridge 171:3a7713b1edbc 85 __IO uint32_t PAD0 :4; /**< */
AnnaBridge 171:3a7713b1edbc 86 __IO uint32_t DIO4 :4; /**< DIO4 Test Mux Control */
AnnaBridge 171:3a7713b1edbc 87 __IO uint32_t DIO5 :4; /**< DIO5 Test Mux Control */
AnnaBridge 171:3a7713b1edbc 88 __IO uint32_t DIO6 :4; /**< DIO6 Test Mux Control */
AnnaBridge 171:3a7713b1edbc 89 __IO uint32_t DIO7 :4; /**< DIO7 Test Mux Control */
AnnaBridge 171:3a7713b1edbc 90 __IO uint32_t DIO8 :4; /**< DIO8 Test Mux Control */
AnnaBridge 171:3a7713b1edbc 91 __IO uint32_t DIO9 :4; /**< DIO9 Test Mux Control */
AnnaBridge 171:3a7713b1edbc 92 __IO uint32_t DIO10 :4; /**< DIO10 Test Mux Control */
AnnaBridge 171:3a7713b1edbc 93 } BITS;
AnnaBridge 171:3a7713b1edbc 94 __IO uint32_t WORD;
AnnaBridge 171:3a7713b1edbc 95 } DIG_TEST_MUX;
AnnaBridge 171:3a7713b1edbc 96 __IO uint32_t DIG_TEST_MODE;
AnnaBridge 171:3a7713b1edbc 97 union {
AnnaBridge 171:3a7713b1edbc 98 struct {
AnnaBridge 171:3a7713b1edbc 99 __IO uint32_t PAD0 :12; /**< */
AnnaBridge 171:3a7713b1edbc 100 __IO uint32_t DIO5 :3; /**< DIO5 Input Test Mux Control */
AnnaBridge 171:3a7713b1edbc 101 __IO uint32_t DIO6 :3; /**< DIO6 Input Test Mux Control */
AnnaBridge 171:3a7713b1edbc 102 __IO uint32_t DIO7 :3; /**< DIO7 Input Test Mux Control */
AnnaBridge 171:3a7713b1edbc 103 __IO uint32_t DIO8 :3; /**< DIO8 Input Test Mux Control */
AnnaBridge 171:3a7713b1edbc 104 __IO uint32_t DIO9 :3; /**< DIO9 Input Test Mux Control */
AnnaBridge 171:3a7713b1edbc 105 __IO uint32_t DIO10 :3; /**< DIO10 Input Test Mux Control */
AnnaBridge 171:3a7713b1edbc 106 } BITS;
AnnaBridge 171:3a7713b1edbc 107 __IO uint32_t WORD;
AnnaBridge 171:3a7713b1edbc 108 } DIG_IN_TEST_MUX;
AnnaBridge 171:3a7713b1edbc 109 __IO uint32_t SCAN_MODE;
AnnaBridge 171:3a7713b1edbc 110 __IO uint32_t BIST_TEST_MUX;
AnnaBridge 171:3a7713b1edbc 111 __IO uint32_t RAM_DIAG_ADDR;
AnnaBridge 171:3a7713b1edbc 112 __IO uint32_t RAM_DIAG_DATA;
AnnaBridge 171:3a7713b1edbc 113 __IO uint32_t SRAMA_DIAG_COMP;
AnnaBridge 171:3a7713b1edbc 114 __IO uint32_t SRAMB_DIAG_COMP;
AnnaBridge 171:3a7713b1edbc 115 __IO uint32_t RAM_BUF_TEST_MODE;
AnnaBridge 171:3a7713b1edbc 116 } TestDigReg_t, *TestDigReg_pt;
AnnaBridge 171:3a7713b1edbc 117
AnnaBridge 171:3a7713b1edbc 118 /** NVM test registers
AnnaBridge 171:3a7713b1edbc 119 *
AnnaBridge 171:3a7713b1edbc 120 */
AnnaBridge 171:3a7713b1edbc 121 typedef struct {
AnnaBridge 171:3a7713b1edbc 122 __O uint32_t PAD;
AnnaBridge 171:3a7713b1edbc 123 } TestNvmReg_t, *TestNvmReg_pt;
AnnaBridge 171:3a7713b1edbc 124
AnnaBridge 171:3a7713b1edbc 125 #endif /* TEST_MAP_H_ */