/**
  ******************************************************************************
  * 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.
  *
  * Copyright (C) 2018 Shanghai Eastsoft Microelectronics Co., Ltd. ALL rights reserved.
  *******************************************************************************
  */

<--------------------------------------------------------------------------------
Version history:
--------------------------------------------------------------------------------->
2018-10-29	V1.0.0	AE TEAM


<--------------------------------------------------------------------------------
Demo introduction:
--------------------------------------------------------------------------------->

@pin connection: 

@how to use

This demo show how to use MD library drivers to using wdt function in windows mode.

At the beginning of the main program, the md_init_1ms_tick() function is called to initialize
the MD library.The systic is configured as the default value"SYSTICK_INTERVAL_1MS"
(ststic interrupt occur per 1ms) in "md_utils.c".

In user function,the following items is required:
    1) Config NVIC;
    2) Config WWDT by calling ald_wwdt_init() function;
    3) Start wwdt;

<--------------------------------------------------------------------------------
The main document introduction:
--------------------------------------------------------------------------------->
system:
startup_fs040.s ------- Startup file

user:
irq.c -------------------- Interrupt handlers file
main.c ------------------- Main source file
main.h ------------------- Main header file

md lib:
md_utils.c ------------------ MD drivers configuration file
md_cmu.c   ------------------ CMU MD drivers file
md_gpio.c  ------------------ GPIO MD drivers file
md_wwdt.c  ------------------ WDT MD drivers file