/* ################################################################### ** THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT. ** Filename : WDog1.h ** Project : DMK-BC316-77-AUTO ** Processor : MC9S12ZVL32MLF ** Component : WatchDog ** Version : Component 02.142, Driver 01.16, CPU db: 3.00.000 ** Compiler : CodeWarrior HCS12Z C Compiler ** Date/Time : 2018-01-26, 14:54, # CodeGen: 2 ** Abstract : ** This device "WatchDog" implements a watchdog. ** When enabled, the watchdog timer counts until it reaches ** a critical value corresponding to the period specified ** in 'Properties'. Then, the watchdog causes a CPU reset. ** Applications may clear the timer before it reaches the critical ** value. The timer then restarts the watchdog counter. ** Watchdog is used for increasing the safety of the system ** (unforeseeable situations can cause system crash or an ** infinite loop - watchdog can restart the system or handle ** the situation). ** ** Note: Watchdog can be enabled or disabled in the initialization ** code only. If the watchdog is once enabled user have ** to call Clear method in defined time intervals. ** Settings : ** Watchdog causes : Reset CPU ** ** Clock Source : Bus clock ** ** Initial Watchdog state : Enabled ** ** Mode of operation : Normal ** ** High speed mode ** Watchdog period/frequency ** microseconds : 4194304 ** milliseconds : 4194 ** seconds : 4 ** ** Run register : CPMUCOP [0x06CC] ** Mode register : CPMUCOP [0x06CC] ** Prescaler register : CPMUCOP [0x06CC] ** Contents : ** Clear - byte WDog1_Clear(void); ** ** Copyright : 1997 - 2014 Freescale Semiconductor, Inc. ** All Rights Reserved. ** ** Redistribution and use in source and binary forms, with or without modification, ** are permitted provided that the following conditions are met: ** ** o Redistributions of source code must retain the above copyright notice, this list ** of conditions and the following disclaimer. ** ** o Redistributions in binary form must reproduce the above copyright notice, this ** list of conditions and the following disclaimer in the documentation and/or ** other materials provided with the distribution. ** ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its ** contributors may be used to endorse or promote products derived from this ** software without specific prior written permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ** ** http: www.freescale.com ** mail: support@freescale.com ** ###################################################################*/ /*! ** @file WDog1.h ** @version 01.16 ** @brief ** This device "WatchDog" implements a watchdog. ** When enabled, the watchdog timer counts until it reaches ** a critical value corresponding to the period specified ** in 'Properties'. Then, the watchdog causes a CPU reset. ** Applications may clear the timer before it reaches the critical ** value. The timer then restarts the watchdog counter. ** Watchdog is used for increasing the safety of the system ** (unforeseeable situations can cause system crash or an ** infinite loop - watchdog can restart the system or handle ** the situation). ** ** Note: Watchdog can be enabled or disabled in the initialization ** code only. If the watchdog is once enabled user have ** to call Clear method in defined time intervals. */ /*! ** @addtogroup WDog1_module WDog1 module documentation ** @{ */ #ifndef __WDog1 #define __WDog1 /* MODULE WDog1. */ #include "CPU.h" #pragma CODE_SEG WDog1_CODE /* ** =================================================================== ** Method : WDog1_Clear (component WatchDog) ** Description : ** Clears the watchdog timer (it makes the timer restart from ** zero). ** Parameters : None ** Returns : ** --- - Error code, possible codes: ** ERR_OK - OK ** ERR_SPEED - This device does not work in ** the active speed mode ** ERR_DISABLED - The component is disabled ** =================================================================== */ void WDog1_Clear(void); #pragma CODE_SEG DEFAULT /* END WDog1. */ #endif /* ifndef __WDog1 */ /*! ** @} */ /* ** ################################################################### ** ** This file was created by Processor Expert 10.3 [05.09] ** for the Freescale HCS12Z series of microcontrollers. ** ** ################################################################### */