50 lines
1.6 KiB
C
50 lines
1.6 KiB
C
/*
|
||
* 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
|
||
* Description: This files is for the can default configuration
|
||
*
|
||
* Modify History:
|
||
* Ver Who Date Changes
|
||
* ----- ------ -------- --------------------------------------
|
||
* 1.0 wangxiaodong 2022/5/26 first release
|
||
*/
|
||
|
||
#include "sdkconfig.h"
|
||
#include "fcan.h"
|
||
#include "fparameters.h"
|
||
|
||
const FCanConfig FCanConfigTbl[FCAN_NUM] =
|
||
{
|
||
{
|
||
.instance_id = FCAN0_ID, /* Id of device */
|
||
.base_address = FCAN0_BASE_ADDR, /* Can base Address */
|
||
.irq_num = FCAN0_IRQ_NUM,
|
||
},
|
||
{
|
||
.instance_id = FCAN1_ID, /* Id of device */
|
||
.base_address = FCAN1_BASE_ADDR, /* Can base Address */
|
||
.irq_num = FCAN1_IRQ_NUM,
|
||
},
|
||
#if defined(CONFIG_TARGET_F2000_4) || defined(CONFIG_TARGET_D2000)
|
||
{
|
||
.instance_id = FCAN2_ID, /* Id of device */
|
||
.base_address = FCAN2_BASE_ADDR, /* Can base Address */
|
||
.irq_num = FCAN2_IRQNUM,
|
||
}
|
||
#endif
|
||
|
||
};
|