/*
 *  Copyright 2020-2024 Yuntu Microelectronics co.,ltd
 *  All rights reserved.
 * 
 *  YUNTU Confidential. This software is owned or controlled by YUNTU and may only be
 *  used strictly in accordance with the applicable license terms. By expressly
 *  accepting such terms or by downloading, installing, activating and/or otherwise
 *  using the software, you are agreeing that you have read, and that you agree to
 *  comply with and are bound by, such license terms. If you do not agree to be
 *  bound by the applicable license terms, then you may not retain, install,
 *  activate or otherwise use the software. The production use license in
 *  Section 2.3 is expressly granted for this software.
 * 
 * @file can_config.c
 * @brief 
 * 
 */



#include "can_config.h"


/*flexcanInitConfig0*/

flexcan_state_t flexcanInitConfig0_State;

const flexcan_user_config_t flexcanInitConfig0 = {
    .max_num_mb = 14UL,
    .num_id_filters = FLEXCAN_RX_FIFO_ID_FILTERS_8,
    .is_rx_fifo_needed = false,
    .flexcanMode = FLEXCAN_NORMAL_MODE,
    .payload = FLEXCAN_PAYLOAD_SIZE_64,
    .fd_enable = true,
    .pe_clock = FLEXCAN_CLK_SOURCE_OSC,
    .transfer_type = FLEXCAN_RXFIFO_USING_INTERRUPTS,
    .bitrate = {
        .propSeg = 4,    /*!< Propagation segment*/
        .phaseSeg1 = 7,  /*!< Phase segment 1*/
        .phaseSeg2 = 1,  /*!< Phase segment 2*/
        .preDivider = 2, /*!< Clock prescaler division factor*/
        .rJumpwidth = 1, /*!< Resync jump width*/
    },
    .bitrate_cbt = {
        .propSeg = 6,    /*!< Propagation segment*/
        .phaseSeg1 = 2,  /*!< Phase segment 1*/
        .phaseSeg2 = 1,  /*!< Phase segment 2*/
        .preDivider = 0, /*!< Clock prescaler division factor*/
        .rJumpwidth = 1, /*!< Resync jump width*/
    },
    .rxFifoDMAChannel=0,
};


