added prescaler for 16 bit pwm in LPC1347 target

Fork of mbed-dev by mbed official

Revision:
144:ef7eb2e8f9f7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/rfAna_map.h	Fri Sep 02 15:07:44 2016 +0100
@@ -0,0 +1,119 @@
+/**
+******************************************************************************
+* @file rfAna_map.h
+* @brief rfAna hw module register map
+* @internal
+* @author  ON Semiconductor
+* $Rev: 2953 $
+* $Date: 2014-09-15 18:13:01 +0530 (Mon, 15 Sep 2014) $
+******************************************************************************
+* @copyright (c) 2012 ON Semiconductor. All rights reserved.
+* ON Semiconductor is supplying this software for use with ON Semiconductor
+* processor based microcontrollers only.
+*
+* THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED
+* OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
+* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
+* ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL,
+* INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
+* @endinternal
+*
+* @ingroup rfAna
+*
+* @details
+* <p>
+* Rf and Analog control and trimming hw module register map
+* </p>
+*/
+
+#ifndef RFANA_MAP_H_
+#define RFANA_MAP_H_
+
+/*************************************************************************************************
+*                                                                                                *
+*  Header files                                                                                  *
+*                                                                                                *
+*************************************************************************************************/
+
+#include "architecture.h"
+
+/**************************************************************************************************
+*                                                                                                 *
+*  Type definitions                                                                               *
+*                                                                                                 *
+**************************************************************************************************/
+
+/** rfAna register map (control part) */
+typedef struct {
+    union {
+        struct {
+            __IO uint32_t FRACT_WORD:24;
+            __IO uint32_t INT_WORD:8;
+        } BITS;
+        __IO uint32_t WORD;
+    } TX_LO_CONTROL;
+    union {
+        struct {
+            __IO uint32_t FRACT_WORD:24;
+            __IO uint32_t INT_WORD:8;
+        } BITS;
+        __IO uint32_t WORD;
+    } RX_LO_CONTROL;
+    union {
+        struct {
+            __IO uint32_t PLL_RESET_TIME:10;
+            __I uint32_t RESERVED:6;
+            __IO uint32_t PLL_LOCK_TIME:10;
+        } BITS;
+        __IO uint32_t WORD;
+    } PLL_TIMING;
+    union {
+        struct {
+            __IO uint32_t LNA_GAIN_MODE:1;
+            __IO uint32_t ADC_DITHER_MODE:1;
+        } BITS;
+        __IO uint32_t WORD;
+    } RX_CONTROL;
+    __IO uint32_t TX_POWER;
+    __I uint32_t RECEIVER_GAIN;
+} RfAnaReg_t, *RfAnaReg_pt;
+
+/** rfAna register map (trimming part) */
+typedef struct {
+    __IO uint32_t PMU_TRIM;
+    __IO uint32_t RESERVED;
+    __IO uint32_t RX_CHAIN_TRIM;
+    union {
+        struct {
+            __I uint32_t BIAS_VCO_TRIM:4;
+            __I uint32_t MODULATION_TRIM:4;
+            __IO uint32_t TX_VCO_TRIM:4;
+            __IO uint32_t RX_VCO_TRIM:4;
+            __I uint32_t DIV_TRIM:3;
+            __I uint32_t REG_TRIM:2;
+            __I uint32_t LFR_TRIM:3;
+            __I uint32_t PAD0:4;
+            __I uint32_t CHARGE_PUMP_RANGE:4;
+        } BITS;
+        __IO uint32_t WORD;
+    } PLL_TRIM;
+    __IO uint32_t PLL_VCO_TAP_LOCATION;
+    __IO uint32_t TX_CHAIN_TRIM;
+#ifdef REVC
+    __IO uint32_t RX_VCO_TRIM_LUT2;             /** 0x40019098 */
+    __IO uint32_t RX_VCO_TRIM_LUT1;             /** 0x4001909C */
+    __IO uint32_t TX_VCO_TRIM_LUT2;             /** 0x400190A0 */
+    __IO uint32_t TX_VCO_TRIM_LUT1;             /** 0x400190A4 */
+    __IO uint32_t ADC_OFFSET_BUF;               /** 0x400190A8 */
+#endif
+
+#ifdef REVD
+    __IO uint32_t RX_VCO_TRIM_LUT2;             /** 0x40019098 */
+    __IO uint32_t RX_VCO_TRIM_LUT1;             /** 0x4001909C */
+    __IO uint32_t TX_VCO_TRIM_LUT2;             /** 0x400190A0 */
+    __IO uint32_t TX_VCO_TRIM_LUT1;             /** 0x400190A4 */
+    __IO uint32_t ADC_OFFSET_BUF;               /** 0x400190A8 */
+#endif /* REVD */
+} RfAnaTrimReg_t, *RfAnaTrimReg_pt;
+
+#endif /* RFANA_MAP_H_ */