cc y / mbed

Fork of mbed by mbed official

Committer:
AnnaBridge
Date:
Wed Aug 31 18:09:46 2016 +0100
Revision:
125:2e9cc70d1897
Release 125 of the mbed library

Changes:

New target - KL27Z_IAR
New target - MAX32620HSP_ARM_STD
New target - MAX32620HSP_GCC_ARM
New target - MAX32620HSP_IAR
New target - NCS36510_ARM_STD
New target - NCS36510_GCC_ARM
New target - NCS36510_IAR

Added support for NSAPI_REUSEADDR to the lwip interface.
STM32F3 family : Add and enable asynchronous serial, plus tests.
STM32L4 family : Add and enable asynchronous serial, plus tests.
Fixing issue where GCC fails to report compile errors when non-verbose.
Add ethernet and IPV4 support for: NUCLEO_F207ZG, NUCLEO_F429ZI, NUCLEO_F767ZI, DISCO_F746NG.
RZ_A1H - Enable SPI1 on pins P6_4 to P6_7.
KL27Z : SPI driver bug fixes and Improvements, ARM linker file update.
STM32F4, STM32F7 families : Add entropy functions, documentation, code improvements, fix build issues.
HEXIWEAR: Update I2C pin mapping, Add support to create KDS projects.
LWIP - fix recv blocking send on accepted sockets.
SingletonPtr bugfixes.
Beetle: Implement sleep API.
uVisor: Update to v0.20.1-alpha, minor documentation update.
STM32F3 : fix RTOS IAR test, RTOS GCC_ARM test.
nrf5x : Introduce uart hardware flow control configuration.
K64F/K22F: Implement HAL lp_timer API.
Ticker: Move ticker initialisation to object creation time.
STM32F4 : remove printf from pwmout
NXP : Fix multiple definition errors in GCC_CR build, fix linker errors.
Add TOOLCHAIN_GCC_CR support.
STM32L1 family : Add and enable asynchronous serial, plus tests.
mbed-client : Fix Bootstrap and Connector functionality.
NUC472 : Fix Ethernet wrong INT status in RX_Action.
RTX_CM_lib.h : fix compiler warning.
NUCLEO : Use GCC small build for 64K flash STM32.
STM32F2 family : Add and enable asynchronous serial, plus tests.
uvisor : Move page heap after uVisor private data, update page allocator.
K64F: Revert to hardcoded stack pointer in RTX .
dns-query : Internal API change , documentation, Added support for multiple results and ipv6.
Add support for implementation-provided DNS servers.
Adopted netconn_gethostbyname in the lwip interface.
Restructured nsapi_dns.h to have clear separation between C/C++ .
Tool fixes.
Tests : New ones added and some updates to existing.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 125:2e9cc70d1897 1 /*******************************************************************************
AnnaBridge 125:2e9cc70d1897 2 * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
AnnaBridge 125:2e9cc70d1897 3 *
AnnaBridge 125:2e9cc70d1897 4 * Permission is hereby granted, free of charge, to any person obtaining a
AnnaBridge 125:2e9cc70d1897 5 * copy of this software and associated documentation files (the "Software"),
AnnaBridge 125:2e9cc70d1897 6 * to deal in the Software without restriction, including without limitation
AnnaBridge 125:2e9cc70d1897 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
AnnaBridge 125:2e9cc70d1897 8 * and/or sell copies of the Software, and to permit persons to whom the
AnnaBridge 125:2e9cc70d1897 9 * Software is furnished to do so, subject to the following conditions:
AnnaBridge 125:2e9cc70d1897 10 *
AnnaBridge 125:2e9cc70d1897 11 * The above copyright notice and this permission notice shall be included
AnnaBridge 125:2e9cc70d1897 12 * in all copies or substantial portions of the Software.
AnnaBridge 125:2e9cc70d1897 13 *
AnnaBridge 125:2e9cc70d1897 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
AnnaBridge 125:2e9cc70d1897 15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
AnnaBridge 125:2e9cc70d1897 16 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
AnnaBridge 125:2e9cc70d1897 17 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
AnnaBridge 125:2e9cc70d1897 18 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
AnnaBridge 125:2e9cc70d1897 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
AnnaBridge 125:2e9cc70d1897 20 * OTHER DEALINGS IN THE SOFTWARE.
AnnaBridge 125:2e9cc70d1897 21 *
AnnaBridge 125:2e9cc70d1897 22 * Except as contained in this notice, the name of Maxim Integrated
AnnaBridge 125:2e9cc70d1897 23 * Products, Inc. shall not be used except as stated in the Maxim Integrated
AnnaBridge 125:2e9cc70d1897 24 * Products, Inc. Branding Policy.
AnnaBridge 125:2e9cc70d1897 25 *
AnnaBridge 125:2e9cc70d1897 26 * The mere transfer of this software does not imply any licenses
AnnaBridge 125:2e9cc70d1897 27 * of trade secrets, proprietary technology, copyrights, patents,
AnnaBridge 125:2e9cc70d1897 28 * trademarks, maskwork rights, or any other form of intellectual
AnnaBridge 125:2e9cc70d1897 29 * property whatsoever. Maxim Integrated Products, Inc. retains all
AnnaBridge 125:2e9cc70d1897 30 * ownership rights.
AnnaBridge 125:2e9cc70d1897 31 *******************************************************************************
AnnaBridge 125:2e9cc70d1897 32 */
AnnaBridge 125:2e9cc70d1897 33
AnnaBridge 125:2e9cc70d1897 34 #ifndef _MXC_MAA_REGS_H_
AnnaBridge 125:2e9cc70d1897 35 #define _MXC_MAA_REGS_H_
AnnaBridge 125:2e9cc70d1897 36
AnnaBridge 125:2e9cc70d1897 37 #ifdef __cplusplus
AnnaBridge 125:2e9cc70d1897 38 extern "C" {
AnnaBridge 125:2e9cc70d1897 39 #endif
AnnaBridge 125:2e9cc70d1897 40
AnnaBridge 125:2e9cc70d1897 41 #include <stdint.h>
AnnaBridge 125:2e9cc70d1897 42
AnnaBridge 125:2e9cc70d1897 43 /*
AnnaBridge 125:2e9cc70d1897 44 If types are not defined elsewhere (CMSIS) define them here
AnnaBridge 125:2e9cc70d1897 45 */
AnnaBridge 125:2e9cc70d1897 46 #ifndef __IO
AnnaBridge 125:2e9cc70d1897 47 #define __IO volatile
AnnaBridge 125:2e9cc70d1897 48 #endif
AnnaBridge 125:2e9cc70d1897 49 #ifndef __I
AnnaBridge 125:2e9cc70d1897 50 #define __I volatile const
AnnaBridge 125:2e9cc70d1897 51 #endif
AnnaBridge 125:2e9cc70d1897 52 #ifndef __O
AnnaBridge 125:2e9cc70d1897 53 #define __O volatile
AnnaBridge 125:2e9cc70d1897 54 #endif
AnnaBridge 125:2e9cc70d1897 55
AnnaBridge 125:2e9cc70d1897 56
AnnaBridge 125:2e9cc70d1897 57 /*
AnnaBridge 125:2e9cc70d1897 58 Typedefed structure(s) for module registers (per instance or section) with direct 32-bit
AnnaBridge 125:2e9cc70d1897 59 access to each register in module.
AnnaBridge 125:2e9cc70d1897 60 */
AnnaBridge 125:2e9cc70d1897 61
AnnaBridge 125:2e9cc70d1897 62 /* Offset Register Description
AnnaBridge 125:2e9cc70d1897 63 ============= ============================================================================ */
AnnaBridge 125:2e9cc70d1897 64 typedef struct {
AnnaBridge 125:2e9cc70d1897 65 __IO uint32_t ctrl; /* 0x0000 MAA Control, Configuration and Status */
AnnaBridge 125:2e9cc70d1897 66 __IO uint32_t maws; /* 0x0004 MAA Word (Operand) Size, Big/Little Endian Mode Select */
AnnaBridge 125:2e9cc70d1897 67 } mxc_maa_regs_t;
AnnaBridge 125:2e9cc70d1897 68
AnnaBridge 125:2e9cc70d1897 69
AnnaBridge 125:2e9cc70d1897 70 /* Offset Register Description
AnnaBridge 125:2e9cc70d1897 71 ============= ============================================================================ */
AnnaBridge 125:2e9cc70d1897 72 typedef struct {
AnnaBridge 125:2e9cc70d1897 73 __IO uint32_t seg0[32]; /* 0x0000-0x007C [128 bytes] MAA Memory Segment 0 */
AnnaBridge 125:2e9cc70d1897 74 __IO uint32_t seg1[32]; /* 0x0080-0x00FC [128 bytes] MAA Memory Segment 1 */
AnnaBridge 125:2e9cc70d1897 75 __IO uint32_t seg2[32]; /* 0x0100-0x017C [128 bytes] MAA Memory Segment 2 */
AnnaBridge 125:2e9cc70d1897 76 __IO uint32_t seg3[32]; /* 0x0180-0x01FC [128 bytes] MAA Memory Segment 3 */
AnnaBridge 125:2e9cc70d1897 77 __IO uint32_t seg4[32]; /* 0x0200-0x027C [128 bytes] MAA Memory Segment 4 */
AnnaBridge 125:2e9cc70d1897 78 __IO uint32_t seg5[32]; /* 0x0280-0x02FC [128 bytes] MAA Memory Segment 5 */
AnnaBridge 125:2e9cc70d1897 79 } mxc_maa_mem_regs_t;
AnnaBridge 125:2e9cc70d1897 80
AnnaBridge 125:2e9cc70d1897 81
AnnaBridge 125:2e9cc70d1897 82 /*
AnnaBridge 125:2e9cc70d1897 83 Register offsets for module MAA.
AnnaBridge 125:2e9cc70d1897 84 */
AnnaBridge 125:2e9cc70d1897 85
AnnaBridge 125:2e9cc70d1897 86 #define MXC_R_MAA_OFFS_CTRL ((uint32_t)0x00000000UL)
AnnaBridge 125:2e9cc70d1897 87 #define MXC_R_MAA_OFFS_MAWS ((uint32_t)0x00000004UL)
AnnaBridge 125:2e9cc70d1897 88 #define MXC_R_MAA_MEM_OFFS_SEG0 ((uint32_t)0x00000000UL)
AnnaBridge 125:2e9cc70d1897 89 #define MXC_R_MAA_MEM_OFFS_SEG1 ((uint32_t)0x00000080UL)
AnnaBridge 125:2e9cc70d1897 90 #define MXC_R_MAA_MEM_OFFS_SEG2 ((uint32_t)0x00000100UL)
AnnaBridge 125:2e9cc70d1897 91 #define MXC_R_MAA_MEM_OFFS_SEG3 ((uint32_t)0x00000180UL)
AnnaBridge 125:2e9cc70d1897 92 #define MXC_R_MAA_MEM_OFFS_SEG4 ((uint32_t)0x00000200UL)
AnnaBridge 125:2e9cc70d1897 93 #define MXC_R_MAA_MEM_OFFS_SEG5 ((uint32_t)0x00000280UL)
AnnaBridge 125:2e9cc70d1897 94
AnnaBridge 125:2e9cc70d1897 95
AnnaBridge 125:2e9cc70d1897 96 /*
AnnaBridge 125:2e9cc70d1897 97 Field positions and masks for module MAA.
AnnaBridge 125:2e9cc70d1897 98 */
AnnaBridge 125:2e9cc70d1897 99
AnnaBridge 125:2e9cc70d1897 100 #define MXC_F_MAA_CTRL_START_POS 0
AnnaBridge 125:2e9cc70d1897 101 #define MXC_F_MAA_CTRL_START ((uint32_t)(0x00000001UL << MXC_F_MAA_CTRL_START_POS))
AnnaBridge 125:2e9cc70d1897 102 #define MXC_F_MAA_CTRL_OPSEL_POS 1
AnnaBridge 125:2e9cc70d1897 103 #define MXC_F_MAA_CTRL_OPSEL ((uint32_t)(0x00000007UL << MXC_F_MAA_CTRL_OPSEL_POS))
AnnaBridge 125:2e9cc70d1897 104 #define MXC_F_MAA_CTRL_OCALC_POS 4
AnnaBridge 125:2e9cc70d1897 105 #define MXC_F_MAA_CTRL_OCALC ((uint32_t)(0x00000001UL << MXC_F_MAA_CTRL_OCALC_POS))
AnnaBridge 125:2e9cc70d1897 106 #define MXC_F_MAA_CTRL_IF_DONE_POS 5
AnnaBridge 125:2e9cc70d1897 107 #define MXC_F_MAA_CTRL_IF_DONE ((uint32_t)(0x00000001UL << MXC_F_MAA_CTRL_IF_DONE_POS))
AnnaBridge 125:2e9cc70d1897 108 #define MXC_F_MAA_CTRL_INTEN_POS 6
AnnaBridge 125:2e9cc70d1897 109 #define MXC_F_MAA_CTRL_INTEN ((uint32_t)(0x00000001UL << MXC_F_MAA_CTRL_INTEN_POS))
AnnaBridge 125:2e9cc70d1897 110 #define MXC_F_MAA_CTRL_IF_ERROR_POS 7
AnnaBridge 125:2e9cc70d1897 111 #define MXC_F_MAA_CTRL_IF_ERROR ((uint32_t)(0x00000001UL << MXC_F_MAA_CTRL_IF_ERROR_POS))
AnnaBridge 125:2e9cc70d1897 112 #define MXC_F_MAA_CTRL_OFS_A_POS 8
AnnaBridge 125:2e9cc70d1897 113 #define MXC_F_MAA_CTRL_OFS_A ((uint32_t)(0x00000003UL << MXC_F_MAA_CTRL_OFS_A_POS))
AnnaBridge 125:2e9cc70d1897 114 #define MXC_F_MAA_CTRL_OFS_B_POS 10
AnnaBridge 125:2e9cc70d1897 115 #define MXC_F_MAA_CTRL_OFS_B ((uint32_t)(0x00000003UL << MXC_F_MAA_CTRL_OFS_B_POS))
AnnaBridge 125:2e9cc70d1897 116 #define MXC_F_MAA_CTRL_OFS_EXP_POS 12
AnnaBridge 125:2e9cc70d1897 117 #define MXC_F_MAA_CTRL_OFS_EXP ((uint32_t)(0x00000003UL << MXC_F_MAA_CTRL_OFS_EXP_POS))
AnnaBridge 125:2e9cc70d1897 118 #define MXC_F_MAA_CTRL_OFS_MOD_POS 14
AnnaBridge 125:2e9cc70d1897 119 #define MXC_F_MAA_CTRL_OFS_MOD ((uint32_t)(0x00000003UL << MXC_F_MAA_CTRL_OFS_MOD_POS))
AnnaBridge 125:2e9cc70d1897 120 #define MXC_F_MAA_CTRL_SEG_A_POS 16
AnnaBridge 125:2e9cc70d1897 121 #define MXC_F_MAA_CTRL_SEG_A ((uint32_t)(0x0000000FUL << MXC_F_MAA_CTRL_SEG_A_POS))
AnnaBridge 125:2e9cc70d1897 122 #define MXC_F_MAA_CTRL_SEG_B_POS 20
AnnaBridge 125:2e9cc70d1897 123 #define MXC_F_MAA_CTRL_SEG_B ((uint32_t)(0x0000000FUL << MXC_F_MAA_CTRL_SEG_B_POS))
AnnaBridge 125:2e9cc70d1897 124 #define MXC_F_MAA_CTRL_SEG_RES_POS 24
AnnaBridge 125:2e9cc70d1897 125 #define MXC_F_MAA_CTRL_SEG_RES ((uint32_t)(0x0000000FUL << MXC_F_MAA_CTRL_SEG_RES_POS))
AnnaBridge 125:2e9cc70d1897 126 #define MXC_F_MAA_CTRL_SEG_TMP_POS 28
AnnaBridge 125:2e9cc70d1897 127 #define MXC_F_MAA_CTRL_SEG_TMP ((uint32_t)(0x0000000FUL << MXC_F_MAA_CTRL_SEG_TMP_POS))
AnnaBridge 125:2e9cc70d1897 128
AnnaBridge 125:2e9cc70d1897 129 #define MXC_F_MAA_MAWS_MODLEN_POS 0
AnnaBridge 125:2e9cc70d1897 130 #define MXC_F_MAA_MAWS_MODLEN ((uint32_t)(0x000003FFUL << MXC_F_MAA_MAWS_MODLEN_POS))
AnnaBridge 125:2e9cc70d1897 131 #define MXC_F_MAA_MAWS_BYTESWAP_POS 15
AnnaBridge 125:2e9cc70d1897 132 #define MXC_F_MAA_MAWS_BYTESWAP ((uint32_t)(0x00000001UL << MXC_F_MAA_MAWS_BYTESWAP_POS))
AnnaBridge 125:2e9cc70d1897 133
AnnaBridge 125:2e9cc70d1897 134
AnnaBridge 125:2e9cc70d1897 135
AnnaBridge 125:2e9cc70d1897 136 /*
AnnaBridge 125:2e9cc70d1897 137 Field values and shifted values for module MAA.
AnnaBridge 125:2e9cc70d1897 138 */
AnnaBridge 125:2e9cc70d1897 139
AnnaBridge 125:2e9cc70d1897 140 #define MXC_V_MAA_OPSEL_EXP ((uint32_t)(0x00000000UL))
AnnaBridge 125:2e9cc70d1897 141 #define MXC_V_MAA_OPSEL_SQR ((uint32_t)(0x00000001UL))
AnnaBridge 125:2e9cc70d1897 142 #define MXC_V_MAA_OPSEL_MUL ((uint32_t)(0x00000002UL))
AnnaBridge 125:2e9cc70d1897 143 #define MXC_V_MAA_OPSEL_SQRMUL ((uint32_t)(0x00000003UL))
AnnaBridge 125:2e9cc70d1897 144 #define MXC_V_MAA_OPSEL_ADD ((uint32_t)(0x00000004UL))
AnnaBridge 125:2e9cc70d1897 145 #define MXC_V_MAA_OPSEL_SUB ((uint32_t)(0x00000005UL))
AnnaBridge 125:2e9cc70d1897 146
AnnaBridge 125:2e9cc70d1897 147 #define MXC_S_MAA_OPSEL_EXP ((uint32_t)(MXC_V_MAA_OPSEL_EXP << MXC_F_MAA_CTRL_OPSEL_POS))
AnnaBridge 125:2e9cc70d1897 148 #define MXC_S_MAA_OPSEL_SQR ((uint32_t)(MXC_V_MAA_OPSEL_SQR << MXC_F_MAA_CTRL_OPSEL_POS))
AnnaBridge 125:2e9cc70d1897 149 #define MXC_S_MAA_OPSEL_MUL ((uint32_t)(MXC_V_MAA_OPSEL_MUL << MXC_F_MAA_CTRL_OPSEL_POS))
AnnaBridge 125:2e9cc70d1897 150 #define MXC_S_MAA_OPSEL_SQRMUL ((uint32_t)(MXC_V_MAA_OPSEL_SQRMUL << MXC_F_MAA_CTRL_OPSEL_POS))
AnnaBridge 125:2e9cc70d1897 151 #define MXC_S_MAA_OPSEL_ADD ((uint32_t)(MXC_V_MAA_OPSEL_ADD << MXC_F_MAA_CTRL_OPSEL_POS))
AnnaBridge 125:2e9cc70d1897 152 #define MXC_S_MAA_OPSEL_SUB ((uint32_t)(MXC_V_MAA_OPSEL_SUB << MXC_F_MAA_CTRL_OPSEL_POS))
AnnaBridge 125:2e9cc70d1897 153
AnnaBridge 125:2e9cc70d1897 154
AnnaBridge 125:2e9cc70d1897 155
AnnaBridge 125:2e9cc70d1897 156 #ifdef __cplusplus
AnnaBridge 125:2e9cc70d1897 157 }
AnnaBridge 125:2e9cc70d1897 158 #endif
AnnaBridge 125:2e9cc70d1897 159
AnnaBridge 125:2e9cc70d1897 160 #endif /* _MXC_MAA_REGS_H_ */
AnnaBridge 125:2e9cc70d1897 161