/**
  ******************************************************************************
  * 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: 

	LED0	PC9
	LED1	PA8
	LED2	PA9
	LED3	PA10
	LED4	PA11
	LED5	PA12

@how to use

This demo show how to use ALD and BSP library drivers to light LED.

At the beginning of the main program, the ald_cmu_init() function is called to initialize
the ALD library.The systic is configured as the default value"SYSTICK_INTERVAL_1MS"
(ststic interrupt occur per 1ms) in "utils.c",you can change the value in
application.To use the ALD library the ald_cmu_init() function should be called
firstly,and ald_inc_tick_weak() function should be called in SysTick_Handler().

In ald_dma_init() function,the DMA controller is enabled and the NVIC of DMA interrupt
is enabled if ALD_DMA defined.

In user_init() function,the following items is required:
    1) Config CLOCK;
    2) Config LED by calling led_module_init() function;
    3) Light LED by calling led_operate() function;

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

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

major ald lib:
utils.c ------------------ ALD drivers configuration file
ald_cmu.c ---------------- CMU ALD drivers file
ald_dma.c ---------------- DMA ALD drivers file
ald_gpio.c --------------- GPIO ALD drivers file

major bsp lib:
bsp_led.c ---------------- LED BSP drivers file