this a test code modified to cr20A

Dependencies:   fsl_phy_mcr20a fsl_smac mbed-rtos mbed

Fork of mcr20_connectivity_test by Freescale

Committer:
andreikovacs
Date:
Thu Jul 16 07:29:15 2015 +0000
Revision:
0:4eb2240dbd22
Child:
1:1eb1eccc81c2
Initial commit;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andreikovacs 0:4eb2240dbd22 1 /*!
andreikovacs 0:4eb2240dbd22 2 * Copyright (c) 2015, Freescale Semiconductor, Inc.
andreikovacs 0:4eb2240dbd22 3 * All rights reserved.
andreikovacs 0:4eb2240dbd22 4 *
andreikovacs 0:4eb2240dbd22 5 * \file ConnectivityMenus.h
andreikovacs 0:4eb2240dbd22 6 *
andreikovacs 0:4eb2240dbd22 7 * Redistribution and use in source and binary forms, with or without modification,
andreikovacs 0:4eb2240dbd22 8 * are permitted provided that the following conditions are met:
andreikovacs 0:4eb2240dbd22 9 *
andreikovacs 0:4eb2240dbd22 10 * o Redistributions of source code must retain the above copyright notice, this list
andreikovacs 0:4eb2240dbd22 11 * of conditions and the following disclaimer.
andreikovacs 0:4eb2240dbd22 12 *
andreikovacs 0:4eb2240dbd22 13 * o Redistributions in binary form must reproduce the above copyright notice, this
andreikovacs 0:4eb2240dbd22 14 * list of conditions and the following disclaimer in the documentation and/or
andreikovacs 0:4eb2240dbd22 15 * other materials provided with the distribution.
andreikovacs 0:4eb2240dbd22 16 *
andreikovacs 0:4eb2240dbd22 17 * o Neither the name of Freescale Semiconductor, Inc. nor the names of its
andreikovacs 0:4eb2240dbd22 18 * contributors may be used to endorse or promote products derived from this
andreikovacs 0:4eb2240dbd22 19 * software without specific prior written permission.
andreikovacs 0:4eb2240dbd22 20 *
andreikovacs 0:4eb2240dbd22 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
andreikovacs 0:4eb2240dbd22 22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
andreikovacs 0:4eb2240dbd22 23 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
andreikovacs 0:4eb2240dbd22 24 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
andreikovacs 0:4eb2240dbd22 25 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
andreikovacs 0:4eb2240dbd22 26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
andreikovacs 0:4eb2240dbd22 27 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
andreikovacs 0:4eb2240dbd22 28 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
andreikovacs 0:4eb2240dbd22 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
andreikovacs 0:4eb2240dbd22 30 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
andreikovacs 0:4eb2240dbd22 31 */
andreikovacs 0:4eb2240dbd22 32
andreikovacs 0:4eb2240dbd22 33 #include "EmbeddedTypes.h" /*Include special data types*/
andreikovacs 0:4eb2240dbd22 34
andreikovacs 0:4eb2240dbd22 35 /************************************************************************************
andreikovacs 0:4eb2240dbd22 36 *************************************************************************************
andreikovacs 0:4eb2240dbd22 37 * Public memory declarations
andreikovacs 0:4eb2240dbd22 38 *************************************************************************************
andreikovacs 0:4eb2240dbd22 39 ************************************************************************************/
andreikovacs 0:4eb2240dbd22 40 extern char * const cu8FreescaleLogo[];
andreikovacs 0:4eb2240dbd22 41 extern char * const cu8MainMenu[];
andreikovacs 0:4eb2240dbd22 42 extern char * const cu8ShortCutsBar[];
andreikovacs 0:4eb2240dbd22 43 extern char * const cu8ContinuousTestMenu[];
andreikovacs 0:4eb2240dbd22 44 extern char * const cu8PerTxTestMenu[];
andreikovacs 0:4eb2240dbd22 45 extern char * const cu8PerRxTestMenu[];
andreikovacs 0:4eb2240dbd22 46 extern char * const cu8RangeTxTestMenu[];
andreikovacs 0:4eb2240dbd22 47 extern char * const cu8RangeRxTestMenu[];
andreikovacs 0:4eb2240dbd22 48 extern char * const cu8RadioRegistersEditMenu[];
andreikovacs 0:4eb2240dbd22 49 extern char * const cu8RadioCSTCSelectMenu[];
andreikovacs 0:4eb2240dbd22 50 extern char * const cu8CsTcTestMenu[];
andreikovacs 0:4eb2240dbd22 51 extern char * const cu8ContinuousTestTags[];
andreikovacs 0:4eb2240dbd22 52 extern char * const cu8SelectTags[];
andreikovacs 0:4eb2240dbd22 53 extern char * const cu8TxTestTags[];
andreikovacs 0:4eb2240dbd22 54 extern char * const cu8RxTestTags[];
andreikovacs 0:4eb2240dbd22 55 extern char * const cu8TxModTestTags[];
andreikovacs 0:4eb2240dbd22 56 /************************************************************************************
andreikovacs 0:4eb2240dbd22 57 *************************************************************************************
andreikovacs 0:4eb2240dbd22 58 * Module macros
andreikovacs 0:4eb2240dbd22 59 *************************************************************************************
andreikovacs 0:4eb2240dbd22 60 ************************************************************************************/
andreikovacs 0:4eb2240dbd22 61
andreikovacs 0:4eb2240dbd22 62 #define isAsciiHex(Data) (((Data >= '0') && (Data <= '9')) \
andreikovacs 0:4eb2240dbd22 63 || ((Data >= 'A') && (Data <= 'F')) \
andreikovacs 0:4eb2240dbd22 64 || ((Data >= 'a') && (Data <= 'f')))
andreikovacs 0:4eb2240dbd22 65
andreikovacs 0:4eb2240dbd22 66 /************************************************************************************
andreikovacs 0:4eb2240dbd22 67 *************************************************************************************
andreikovacs 0:4eb2240dbd22 68 * Interface functions prototypes
andreikovacs 0:4eb2240dbd22 69 *************************************************************************************
andreikovacs 0:4eb2240dbd22 70 ************************************************************************************/
andreikovacs 0:4eb2240dbd22 71 void PrintMenu(char * const pu8Menu[], uint8_t port);