/*!
 * @file        main.h
 *
 * @brief       Main program body
 *
 * @version     V1.0.0
 *
 * @date        2022-11-09
 *
 * @attention
 *
 *  Copyright (C) 2022 Geehy Semiconductor
 *
 *  You may not use this file except in compliance with the
 *  GEEHY COPYRIGHT NOTICE (GEEHY SOFTWARE PACKAGE LICENSE).
 *
 *  The program is only for reference, which is distributed in the hope
 *  that it will be useful and instructional for customers to develop
 *  their software. Unless required by applicable law or agreed to in
 *  writing, the program is distributed on an "AS IS" BASIS, WITHOUT
 *  ANY WARRANTY OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the GEEHY SOFTWARE PACKAGE LICENSE for the governing permissions
 *  and limitations under the License.
 */

/* Define to prevent recursive inclusion */
#ifndef __MAIN_H
#define __MAIN_H

/* Includes */
#include <stdio.h>
#include "apm32f10x_tmr.h"
#include "apm32f10x_rtc.h"
#include "apm32f10x_bakpr.h"
#include "apm32f10x_pmu.h"

#include "Board.h"
#include "bsp_delay.h"
#include "bsp_lcd.h"

/** @addtogroup Examples
  @{
  */

/** @addtogroup RCC_Clock
  @{
  */

/** @defgroup RCC_Clock_Structures Structures
  @{
  */

/* RTC Time structure definition */
typedef struct
{
    uint8_t hours;
    uint8_t minutes;
    uint8_t seconds;
} TIME_T;

/**@} end of group RCC_Clock_Structures*/

/** @defgroup RCC_Clock_Functions Functions
  @{
  */

void TMR7_Isr(void);
void RTC_Isr(void);

#endif

/**@} end of group RCC_Clock_Functions */
/**@} end of group RCC_Clock */
/**@} end of group Examples */
