main.c
来自「bf537 CAN接口测试程序」· C语言 代码 · 共 36 行
C
36 行
/*****************************************************************************
** **
** Name: main.c **
** **
** Comments: This routine is the CAN Transmitter sample code, intended **
** to be used for CAN hardware test purposes and to show how **
** to perform simple transmit/receive functionality over CAN. **
** **
******************************************************************************
Analog Devices, Inc. All rights reserved.
Date Created: 12/10/04
Hardware: ADSP-BF537 EZ-KIT Rev. 0.0 Silicon
*****************************************************************************/
#include "CAN_TX.h"
main()
{
Init_PLL(); /* Set PLL */
Init_Port(); /* Initialize Ports */
Init_Interrupts(); /* Initialize Interrupts */
Init_CAN_Timing(); /* Setup CAN Timing */
Init_CAN_Mailboxes(); /* Initialize CAN Mailbox Area */
CAN_Setup_Interrupts(); /* Configure CAN Mailbox Interrupts */
CAN_Enable(); /* Enable CAN */
while(1); /* Wait for IRQs */
} /* end main */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?