📄 can_test2customer.c
字号:
// *****************************************************************************
// Software License Agreement
//
// The software supplied herewith by Microchip Technology
// Incorporated (the 揅ompany? for its PICmicro?Microcontroller is
// intended and supplied to you, the Company抯 customer, for use
// solely and exclusively on Microchip PICmicro Microcontroller
// products. The software is owned by the Company and/or its
// supplier, and is protected under applicable copyright laws. All
// rights are reserved. Any use in violation of the foregoing
// restrictions may subject the user to criminal sanctions under
// applicable laws, as well as to civil liability for the breach of
// the terms and conditions of this license.
//
// THIS SOFTWARE IS PROVIDED IN AN 揂S IS?CONDITION. NO WARRANTIES,
// WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
// TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
// PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT,
// IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
#define __dsPIC30F4011__
#include <timer.h>
#include <p30F4011.h>
#include <can.h>
#include <adc10.h>
#include "APP009V2_LCD.h"
#define FCY 14745600 // Osc. configuration = XT, PLL * 8 and XT = 7.3728 Mhz
#define LED13 LATDbits.LATD0
#define LED14 LATDbits.LATD1
#define DIR_LED13 TRISDbits.TRISD0
#define DIR_LED14 TRISDbits.TRISD1
#define INPUT 1
#define OUTPUT 0
#define CAN1_TX LATFbits.LATF1
#define CAN1_RX PORTFbits.RF0
#define DIR_CAN1_TX TRISFbits.TRISF1
#define DIR_CAN1_RX TRISFbits.TRISF0
void Timer3_Initial( void ) ;
void Timer1_Initial( void ) ;
void Initial_CAN( void ) ;
void ADC10_Initial( void ) ;
struct
{
unsigned T3OV : 1 ;
unsigned :15 ;
} Flags ;
int CounterT3 ;
unsigned char TxData[10] = {0,0,0,0,0,0,0,0,0,0} ;
unsigned MyADC ;
//---------------------------------------------------------------------------
// 叫把σ
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -