cc y / mbed

Fork of mbed by mbed official

Committer:
AnnaBridge
Date:
Wed Aug 31 18:09:46 2016 +0100
Revision:
125:2e9cc70d1897
Child:
126:abea610beb85
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 ******************************************************************************
AnnaBridge 125:2e9cc70d1897 3 * @file pwm_map.h
AnnaBridge 125:2e9cc70d1897 4 * @brief PWM HW register map
AnnaBridge 125:2e9cc70d1897 5 * @internal
AnnaBridge 125:2e9cc70d1897 6 * @author ON Semiconductor
AnnaBridge 125:2e9cc70d1897 7 * $Rev: 3378 $
AnnaBridge 125:2e9cc70d1897 8 * $Date: 2015-04-28 13:38:36 +0530 (Tue, 28 Apr 2015) $
AnnaBridge 125:2e9cc70d1897 9 ******************************************************************************
AnnaBridge 125:2e9cc70d1897 10 * @copyright (c) 2012 ON Semiconductor. All rights reserved.
AnnaBridge 125:2e9cc70d1897 11 * ON Semiconductor is supplying this software for use with ON Semiconductor
AnnaBridge 125:2e9cc70d1897 12 * processor based microcontrollers only.
AnnaBridge 125:2e9cc70d1897 13 *
AnnaBridge 125:2e9cc70d1897 14 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
AnnaBridge 125:2e9cc70d1897 15 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
AnnaBridge 125:2e9cc70d1897 16 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
AnnaBridge 125:2e9cc70d1897 17 * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL,
AnnaBridge 125:2e9cc70d1897 18 * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
AnnaBridge 125:2e9cc70d1897 19 * @endinternal
AnnaBridge 125:2e9cc70d1897 20 *
AnnaBridge 125:2e9cc70d1897 21 * @ingroup pwm
AnnaBridge 125:2e9cc70d1897 22 *
AnnaBridge 125:2e9cc70d1897 23 * @details
AnnaBridge 125:2e9cc70d1897 24 * <p>
AnnaBridge 125:2e9cc70d1897 25 * PWM HW register map description
AnnaBridge 125:2e9cc70d1897 26 * </p>
AnnaBridge 125:2e9cc70d1897 27 *
AnnaBridge 125:2e9cc70d1897 28 * <h1> Reference document(s) </h1>
AnnaBridge 125:2e9cc70d1897 29 * <p>
AnnaBridge 125:2e9cc70d1897 30 * <a href="../../../../build/doc/pdf/IPC7205_PWM_APB_DS_v1P1.pdf" target="_blank">
AnnaBridge 125:2e9cc70d1897 31 * IPC7205 APB PWM Design Specification v1.1 </a>
AnnaBridge 125:2e9cc70d1897 32 * </p>
AnnaBridge 125:2e9cc70d1897 33 */
AnnaBridge 125:2e9cc70d1897 34
AnnaBridge 125:2e9cc70d1897 35 #ifndef PWM_MAP_H_
AnnaBridge 125:2e9cc70d1897 36 #define PWM_MAP_H_
AnnaBridge 125:2e9cc70d1897 37
AnnaBridge 125:2e9cc70d1897 38 #include "architecture.h"
AnnaBridge 125:2e9cc70d1897 39
AnnaBridge 125:2e9cc70d1897 40 /** Power management Control HW Structure Overlay */
AnnaBridge 125:2e9cc70d1897 41 #ifdef REVB
AnnaBridge 125:2e9cc70d1897 42 typedef struct {
AnnaBridge 125:2e9cc70d1897 43 __IO uint32_t DUTYCYCLE;
AnnaBridge 125:2e9cc70d1897 44 union {
AnnaBridge 125:2e9cc70d1897 45 struct {
AnnaBridge 125:2e9cc70d1897 46 __IO uint32_t ENABLED :1;/**< 1 = PWM enable , 0 = PWM disable */
AnnaBridge 125:2e9cc70d1897 47 __I uint32_t CURRENT :1;/**< current state of PWM enable signal */
AnnaBridge 125:2e9cc70d1897 48 __O uint32_t PAD1 :6; /**< Reserved. Writes have no effect; Read as 0x00. */
AnnaBridge 125:2e9cc70d1897 49 __O uint32_t RDPWMEN :1;/**< current state of pwmEnable configuration */
AnnaBridge 125:2e9cc70d1897 50 __O uint32_t RDPWMOP :1;/**< current state of PWM out signal */
AnnaBridge 125:2e9cc70d1897 51 __O uint32_t PAD2 :6; /**< Reserved. Writes have no effect; Read as 0x00. */
AnnaBridge 125:2e9cc70d1897 52 } BITS;
AnnaBridge 125:2e9cc70d1897 53 __I uint32_t WORD;
AnnaBridge 125:2e9cc70d1897 54 } PWMOUT;
AnnaBridge 125:2e9cc70d1897 55 __O uint32_t DISABLE;
AnnaBridge 125:2e9cc70d1897 56 union {
AnnaBridge 125:2e9cc70d1897 57 struct {
AnnaBridge 125:2e9cc70d1897 58 __IO uint32_t ENABLED :1;
AnnaBridge 125:2e9cc70d1897 59 __O uint32_t PAD1 :7; /**< Reserved. Writes have no effect */
AnnaBridge 125:2e9cc70d1897 60 __O uint32_t STATE :1; /**< current state of prescaler enable configuration. */
AnnaBridge 125:2e9cc70d1897 61 __O uint32_t PAD2 :7; /**< Reserved. Writes have no effect; Read as 0x00. */
AnnaBridge 125:2e9cc70d1897 62 } BITS;
AnnaBridge 125:2e9cc70d1897 63 __I uint32_t WORD;
AnnaBridge 125:2e9cc70d1897 64 } PRESCALE_EN;
AnnaBridge 125:2e9cc70d1897 65
AnnaBridge 125:2e9cc70d1897 66 __O uint32_t PRESCALE_DIS;
AnnaBridge 125:2e9cc70d1897 67
AnnaBridge 125:2e9cc70d1897 68 } PwmReg_t, *PwmReg_pt;
AnnaBridge 125:2e9cc70d1897 69 #endif /* REVB */
AnnaBridge 125:2e9cc70d1897 70
AnnaBridge 125:2e9cc70d1897 71 #ifdef REVD
AnnaBridge 125:2e9cc70d1897 72 typedef struct {
AnnaBridge 125:2e9cc70d1897 73 __IO uint32_t DUTYCYCLE;
AnnaBridge 125:2e9cc70d1897 74 union {
AnnaBridge 125:2e9cc70d1897 75 struct {
AnnaBridge 125:2e9cc70d1897 76 __O uint32_t ENABLE :8; /**< Write any value to enable PWM output */
AnnaBridge 125:2e9cc70d1897 77 __I uint32_t PAD :1; /** < Pad */
AnnaBridge 125:2e9cc70d1897 78 __I uint32_t ENABLE_STATE :1; /**< Current state of pwmEnable configuration bit. ‘1’ PWM output is enabled. ‘0’ PWN output is disabled. */
AnnaBridge 125:2e9cc70d1897 79 __I uint32_t OUTPUT_STATE :1; /**< Current state of PWM output */
AnnaBridge 125:2e9cc70d1897 80 } BITS;
AnnaBridge 125:2e9cc70d1897 81 __IO uint32_t WORD;
AnnaBridge 125:2e9cc70d1897 82 } PWM_ENABLE;
AnnaBridge 125:2e9cc70d1897 83 __O uint32_t PWM_DISABLE;
AnnaBridge 125:2e9cc70d1897 84 union {
AnnaBridge 125:2e9cc70d1897 85 struct {
AnnaBridge 125:2e9cc70d1897 86 __O uint32_t ENABLE :8; /**< Write any value to select enable the 4-bit prescaler */
AnnaBridge 125:2e9cc70d1897 87 __I uint32_t STATE:1; /**< Current state of the prescaler. ‘1’ the prescaler is enabled. ‘0’ the prescaler is disabled. */
AnnaBridge 125:2e9cc70d1897 88 } BITS;
AnnaBridge 125:2e9cc70d1897 89 __IO uint32_t WORD;
AnnaBridge 125:2e9cc70d1897 90 } PRESCALE_ENABLE;
AnnaBridge 125:2e9cc70d1897 91 __O uint32_t PRESCALE_DISABLE;
AnnaBridge 125:2e9cc70d1897 92 } PwmReg_t, *PwmReg_pt;
AnnaBridge 125:2e9cc70d1897 93 #endif /* REVD */
AnnaBridge 125:2e9cc70d1897 94 #endif /* PWM_MAP_H_ */