added prescaler for 16 bit pwm in LPC1347 target
Fork of mbed-dev by
Diff: targets/hal/TARGET_ONSEMI/TARGET_NCS36510/reset_map.h
- Revision:
- 144:ef7eb2e8f9f7
diff -r 423e1876dc07 -r ef7eb2e8f9f7 targets/hal/TARGET_ONSEMI/TARGET_NCS36510/reset_map.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/reset_map.h Fri Sep 02 15:07:44 2016 +0100 @@ -0,0 +1,63 @@ +/** +****************************************************************************** +* @file reset_map.h +* @brief Reset hw module register map +* @internal +* @author ON Semiconductor +* $Rev: 2848 $ +* $Date: 2014-04-01 22:48:18 +0530 (Tue, 01 Apr 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 reset +* +* @details +*/ + +#ifndef RESET_MAP_H_ +#define RESET_MAP_H_ + +/************************************************************************************************* +* * +* Header files * +* * +*************************************************************************************************/ + +#include "architecture.h" + +/************************************************************************************************** +* * +* Type definitions * +* * +**************************************************************************************************/ + +/** Reset status and clear register. + * Also contains HW revision ID. + */ +typedef struct { + union { + struct { + __I uint32_t LOCKUP:1; /**< 1:Core did lock up */ + __I uint32_t WDOGRES:1; /**< 1:Watchdog reset occurred */ + __I uint32_t EXTRESET:1; /**< 1:External reset occurred */ + __I uint32_t SYSRESETREQ:1; /**< 1:System reset occurred */ + __I uint32_t POR:1; /**< 1:POR reset occurred */ + } BITS; + __I uint32_t WORD; + } SOURCE; + __O uint32_t CLEARSOURCE; /**< writing any value to this register will clear the reset source register */ + __I uint32_t HWREVID; /**< Hardware ID, 0x80215400 */ + __IO uint32_t CONTROL; /**< External Reset & Watchdog behavior: 0 External Reset & Watchdog will reset debug logic 1 External Reset & Watchdog will not reset debug logic */ + +} ResetReg_t, *ResetReg_pt; + +#endif /* RESET_MAP_H_ */