2022-11-10 22:22:48 +08:00
|
|
|
|
/*
|
|
|
|
|
* Copyright : (C) 2022 Phytium Information Technology, Inc.
|
|
|
|
|
* All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* This program is OPEN SOURCE software: you can redistribute it and/or modify it
|
|
|
|
|
* under the terms of the Phytium Public License as published by the Phytium Technology Co.,Ltd,
|
|
|
|
|
* either version 1.0 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY;
|
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
* See the Phytium Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* FilePath: fcan_g.c
|
|
|
|
|
* Date: 2022-02-10 14:53:42
|
|
|
|
|
* LastEditTime: 2022-02-18 08:28:45
|
2023-05-11 10:25:21 +08:00
|
|
|
|
* Description: This files is for the can default configuration
|
2022-11-10 22:22:48 +08:00
|
|
|
|
*
|
|
|
|
|
* Modify History:
|
|
|
|
|
* Ver Who Date Changes
|
|
|
|
|
* ----- ------ -------- --------------------------------------
|
2023-05-11 10:25:21 +08:00
|
|
|
|
* 1.0 wangxiaodong 2022/5/26 first release
|
2022-11-10 22:22:48 +08:00
|
|
|
|
*/
|
|
|
|
|
|
2023-05-11 10:25:21 +08:00
|
|
|
|
#include "sdkconfig.h"
|
2022-11-10 22:22:48 +08:00
|
|
|
|
#include "fcan.h"
|
|
|
|
|
#include "fparameters.h"
|
|
|
|
|
|
2023-05-11 10:25:21 +08:00
|
|
|
|
const FCanConfig FCanConfigTbl[FCAN_NUM] =
|
2022-11-10 22:22:48 +08:00
|
|
|
|
{
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FCAN0_ID, /* Id of device */
|
|
|
|
|
.base_address = FCAN0_BASE_ADDR, /* Can base Address */
|
|
|
|
|
.irq_num = FCAN0_IRQ_NUM,
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FCAN1_ID, /* Id of device */
|
|
|
|
|
.base_address = FCAN1_BASE_ADDR, /* Can base Address */
|
|
|
|
|
.irq_num = FCAN1_IRQ_NUM,
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
#if defined(CONFIG_TARGET_F2000_4) || defined(CONFIG_TARGET_D2000)
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FCAN2_ID, /* Id of device */
|
|
|
|
|
.base_address = FCAN2_BASE_ADDR, /* Can base Address */
|
2022-11-10 22:22:48 +08:00
|
|
|
|
.irq_num = FCAN2_IRQNUM,
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
};
|