/*!
 * @file        main.h
 *
 * @brief       Header for main.c module
 *
 * @version     V1.0.4
 *
 * @date        2025-02-15
 *
 * @attention
 *
 *  Copyright (C) 2021-2025 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

#ifdef __cplusplus
  extern "C" {
#endif

/* Includes ***************************************************************/
#include "apm32f4xx.h"

/* Exported macro *********************************************************/

enum
{
    FAILED = 0,  /*!< Failed value */
    PASSED = 1   /*!< Passed value */
};

enum
{
    CAN_BAUD_125K = 0,  /*!< CAN baud rate config to 125K */
    CAN_BAUD_250K = 1,  /*!< CAN baud rate config to 250K */
    CAN_BAUD_500K = 2,  /*!< CAN baud rate config to 500K */
    CAN_BAUD_1M   = 3   /*!< CAN baud rate config to 1M */
};

/* Exported typedef *******************************************************/

/* Exported function prototypes *******************************************/

void CAN1_RxIsr(void);
void CAN2_RxIsr(void);

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
