Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
TARGET_NCS36510/TARGET_ONSEMI/TARGET_NCS36510/pwm_map.h@126:abea610beb85, 2016-09-16 (annotated)
- Committer:
- AnnaBridge
- Date:
- Fri Sep 16 13:57:13 2016 +0100
- Revision:
- 126:abea610beb85
- Parent:
- 125:2e9cc70d1897
- Child:
- 128:9bcdf88f62b0
Release 126 of the mbed library
Changes:
New Targets:
#2504: [Disco_F769NI] adding new target [https://github.com/ARMmbed/mbed-os/pull/2504]
#2654: DELTA_DFBM_NQ620 platform porting [https://github.com/ARMmbed/mbed-os/pull/2654]
#2615: [MTM_MTCONNECT04S] Added support for MTM_MTCONNECT04S [https://github.com/ARMmbed/mbed-os/pull/2615]
#2548: Nucleof303ze [https://github.com/ARMmbed/mbed-os/pull/2548]
Fixes:
#2657: [MAX326xx] Removed echoing of characters and carriage return. [https://github.com/ARMmbed/mbed-os/pull/2657]
#2651: Use lp_timer to count time in the deepsleep tests [https://github.com/ARMmbed/mbed-os/pull/2651]
#2643: Fix thread self termination [https://github.com/ARMmbed/mbed-os/pull/2643]
#2623: DISCO_L476VG - Add Serial Flow Control pins + add SERIAL_FC macro [https://github.com/ARMmbed/mbed-os/pull/2623]
#2617: STM32F2xx - Enable Serial Flow Control [https://github.com/ARMmbed/mbed-os/pull/2617]
#2601: Adding ON Semiconductor copyright notice to source and header files. [https://github.com/ARMmbed/mbed-os/pull/2601]
#2597: [HAL] Fixed "intrinsic is deprecated" warnings [https://github.com/ARMmbed/mbed-os/pull/2597]
#2589: [NUC472] Fix heap configuration error with armcc [https://github.com/ARMmbed/mbed-os/pull/2589]
#2587: add PTEx pins as option for SPI on Hexiwear - for SD Card Interface [https://github.com/ARMmbed/mbed-os/pull/2587]
#2584: Set size of callback irq array to IrqCnt [https://github.com/ARMmbed/mbed-os/pull/2584]
#2582: [GCC_CR] fix runtime hang for baremetal build [https://github.com/ARMmbed/mbed-os/pull/2582]
#2562: Fix GCC lazy init race condition and add test [https://github.com/ARMmbed/mbed-os/pull/2562]
#2538: STM32F4xx - Add support of ADC internal channels (Temp, VRef, VBat) [https://github.com/ARMmbed/mbed-os/pull/2538]
#2514: Updated FlexCan and SAI SDK drivers [https://github.com/ARMmbed/mbed-os/pull/2514]
#2442: Malloc heap info [https://github.com/ARMmbed/mbed-os/pull/2442]
#2419: [STM32F1] Add asynchronous serial [https://github.com/ARMmbed/mbed-os/pull/2419]
#2130: stm32 : reduce number of device.h files [https://github.com/ARMmbed/mbed-os/pull/2130]
#2678: Fixing NCS36510 compile on Linux [https://github.com/ARMmbed/mbed-os/pull/2678]
#2607: Fix uvisor memory tracing [https://github.com/ARMmbed/mbed-os/pull/2607]
#2596: [HAL] Improve memory tracer [https://github.com/ARMmbed/mbed-os/pull/2596]
#2487: Runtime dynamic memory tracing [https://github.com/ARMmbed/mbed-os/pull/2487]
Who changed what in which revision?
User | Revision | Line number | New 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 | 126:abea610beb85 | 10 | * Copyright 2016 Semiconductor Components Industries LLC (d/b/a ON Semiconductor). |
AnnaBridge | 126:abea610beb85 | 11 | * All rights reserved. This software and/or documentation is licensed by ON Semiconductor |
AnnaBridge | 126:abea610beb85 | 12 | * under limited terms and conditions. The terms and conditions pertaining to the software |
AnnaBridge | 126:abea610beb85 | 13 | * and/or documentation are available at http://www.onsemi.com/site/pdf/ONSEMI_T&C.pdf |
AnnaBridge | 126:abea610beb85 | 14 | * (ON Semiconductor Standard Terms and Conditions of Sale, Section 8 Software) and |
AnnaBridge | 126:abea610beb85 | 15 | * if applicable the software license agreement. Do not use this software and/or |
AnnaBridge | 126:abea610beb85 | 16 | * documentation unless you have carefully read and you agree to the limited terms and |
AnnaBridge | 126:abea610beb85 | 17 | * conditions. By using this software and/or documentation, you agree to the limited |
AnnaBridge | 126:abea610beb85 | 18 | * terms and conditions. |
AnnaBridge | 125:2e9cc70d1897 | 19 | * |
AnnaBridge | 125:2e9cc70d1897 | 20 | * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED |
AnnaBridge | 125:2e9cc70d1897 | 21 | * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF |
AnnaBridge | 125:2e9cc70d1897 | 22 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. |
AnnaBridge | 125:2e9cc70d1897 | 23 | * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, |
AnnaBridge | 125:2e9cc70d1897 | 24 | * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
AnnaBridge | 125:2e9cc70d1897 | 25 | * @endinternal |
AnnaBridge | 125:2e9cc70d1897 | 26 | * |
AnnaBridge | 125:2e9cc70d1897 | 27 | * @ingroup pwm |
AnnaBridge | 125:2e9cc70d1897 | 28 | * |
AnnaBridge | 125:2e9cc70d1897 | 29 | * @details |
AnnaBridge | 125:2e9cc70d1897 | 30 | * <p> |
AnnaBridge | 125:2e9cc70d1897 | 31 | * PWM HW register map description |
AnnaBridge | 125:2e9cc70d1897 | 32 | * </p> |
AnnaBridge | 125:2e9cc70d1897 | 33 | * |
AnnaBridge | 125:2e9cc70d1897 | 34 | * <h1> Reference document(s) </h1> |
AnnaBridge | 125:2e9cc70d1897 | 35 | * <p> |
AnnaBridge | 125:2e9cc70d1897 | 36 | * <a href="../../../../build/doc/pdf/IPC7205_PWM_APB_DS_v1P1.pdf" target="_blank"> |
AnnaBridge | 125:2e9cc70d1897 | 37 | * IPC7205 APB PWM Design Specification v1.1 </a> |
AnnaBridge | 125:2e9cc70d1897 | 38 | * </p> |
AnnaBridge | 125:2e9cc70d1897 | 39 | */ |
AnnaBridge | 125:2e9cc70d1897 | 40 | |
AnnaBridge | 125:2e9cc70d1897 | 41 | #ifndef PWM_MAP_H_ |
AnnaBridge | 125:2e9cc70d1897 | 42 | #define PWM_MAP_H_ |
AnnaBridge | 125:2e9cc70d1897 | 43 | |
AnnaBridge | 125:2e9cc70d1897 | 44 | #include "architecture.h" |
AnnaBridge | 125:2e9cc70d1897 | 45 | |
AnnaBridge | 125:2e9cc70d1897 | 46 | /** Power management Control HW Structure Overlay */ |
AnnaBridge | 125:2e9cc70d1897 | 47 | #ifdef REVB |
AnnaBridge | 125:2e9cc70d1897 | 48 | typedef struct { |
AnnaBridge | 125:2e9cc70d1897 | 49 | __IO uint32_t DUTYCYCLE; |
AnnaBridge | 125:2e9cc70d1897 | 50 | union { |
AnnaBridge | 125:2e9cc70d1897 | 51 | struct { |
AnnaBridge | 125:2e9cc70d1897 | 52 | __IO uint32_t ENABLED :1;/**< 1 = PWM enable , 0 = PWM disable */ |
AnnaBridge | 125:2e9cc70d1897 | 53 | __I uint32_t CURRENT :1;/**< current state of PWM enable signal */ |
AnnaBridge | 125:2e9cc70d1897 | 54 | __O uint32_t PAD1 :6; /**< Reserved. Writes have no effect; Read as 0x00. */ |
AnnaBridge | 125:2e9cc70d1897 | 55 | __O uint32_t RDPWMEN :1;/**< current state of pwmEnable configuration */ |
AnnaBridge | 125:2e9cc70d1897 | 56 | __O uint32_t RDPWMOP :1;/**< current state of PWM out signal */ |
AnnaBridge | 125:2e9cc70d1897 | 57 | __O uint32_t PAD2 :6; /**< Reserved. Writes have no effect; Read as 0x00. */ |
AnnaBridge | 125:2e9cc70d1897 | 58 | } BITS; |
AnnaBridge | 125:2e9cc70d1897 | 59 | __I uint32_t WORD; |
AnnaBridge | 125:2e9cc70d1897 | 60 | } PWMOUT; |
AnnaBridge | 125:2e9cc70d1897 | 61 | __O uint32_t DISABLE; |
AnnaBridge | 125:2e9cc70d1897 | 62 | union { |
AnnaBridge | 125:2e9cc70d1897 | 63 | struct { |
AnnaBridge | 125:2e9cc70d1897 | 64 | __IO uint32_t ENABLED :1; |
AnnaBridge | 125:2e9cc70d1897 | 65 | __O uint32_t PAD1 :7; /**< Reserved. Writes have no effect */ |
AnnaBridge | 125:2e9cc70d1897 | 66 | __O uint32_t STATE :1; /**< current state of prescaler enable configuration. */ |
AnnaBridge | 125:2e9cc70d1897 | 67 | __O uint32_t PAD2 :7; /**< Reserved. Writes have no effect; Read as 0x00. */ |
AnnaBridge | 125:2e9cc70d1897 | 68 | } BITS; |
AnnaBridge | 125:2e9cc70d1897 | 69 | __I uint32_t WORD; |
AnnaBridge | 125:2e9cc70d1897 | 70 | } PRESCALE_EN; |
AnnaBridge | 125:2e9cc70d1897 | 71 | |
AnnaBridge | 125:2e9cc70d1897 | 72 | __O uint32_t PRESCALE_DIS; |
AnnaBridge | 125:2e9cc70d1897 | 73 | |
AnnaBridge | 125:2e9cc70d1897 | 74 | } PwmReg_t, *PwmReg_pt; |
AnnaBridge | 125:2e9cc70d1897 | 75 | #endif /* REVB */ |
AnnaBridge | 125:2e9cc70d1897 | 76 | |
AnnaBridge | 125:2e9cc70d1897 | 77 | #ifdef REVD |
AnnaBridge | 125:2e9cc70d1897 | 78 | typedef struct { |
AnnaBridge | 125:2e9cc70d1897 | 79 | __IO uint32_t DUTYCYCLE; |
AnnaBridge | 125:2e9cc70d1897 | 80 | union { |
AnnaBridge | 125:2e9cc70d1897 | 81 | struct { |
AnnaBridge | 125:2e9cc70d1897 | 82 | __O uint32_t ENABLE :8; /**< Write any value to enable PWM output */ |
AnnaBridge | 125:2e9cc70d1897 | 83 | __I uint32_t PAD :1; /** < Pad */ |
AnnaBridge | 125:2e9cc70d1897 | 84 | __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 | 85 | __I uint32_t OUTPUT_STATE :1; /**< Current state of PWM output */ |
AnnaBridge | 125:2e9cc70d1897 | 86 | } BITS; |
AnnaBridge | 125:2e9cc70d1897 | 87 | __IO uint32_t WORD; |
AnnaBridge | 125:2e9cc70d1897 | 88 | } PWM_ENABLE; |
AnnaBridge | 125:2e9cc70d1897 | 89 | __O uint32_t PWM_DISABLE; |
AnnaBridge | 125:2e9cc70d1897 | 90 | union { |
AnnaBridge | 125:2e9cc70d1897 | 91 | struct { |
AnnaBridge | 125:2e9cc70d1897 | 92 | __O uint32_t ENABLE :8; /**< Write any value to select enable the 4-bit prescaler */ |
AnnaBridge | 125:2e9cc70d1897 | 93 | __I uint32_t STATE:1; /**< Current state of the prescaler. 1 the prescaler is enabled. 0 the prescaler is disabled. */ |
AnnaBridge | 125:2e9cc70d1897 | 94 | } BITS; |
AnnaBridge | 125:2e9cc70d1897 | 95 | __IO uint32_t WORD; |
AnnaBridge | 125:2e9cc70d1897 | 96 | } PRESCALE_ENABLE; |
AnnaBridge | 125:2e9cc70d1897 | 97 | __O uint32_t PRESCALE_DISABLE; |
AnnaBridge | 125:2e9cc70d1897 | 98 | } PwmReg_t, *PwmReg_pt; |
AnnaBridge | 125:2e9cc70d1897 | 99 | #endif /* REVD */ |
AnnaBridge | 125:2e9cc70d1897 | 100 | #endif /* PWM_MAP_H_ */ |