⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user_lpc2.c

📁 MicoCANOpen很好的学习源代码
💻 C
字号:
/**************************************************************************
MODULE:    USER
CONTAINS:  MicroCANopen Object Dictionary and Process Image implementation
COPYRIGHT: Embedded Systems Academy, Inc. 2002-2007.
           All rights reserved. www.microcanopen.com
           This software was written in accordance to the guidelines at
           www.esacademy.com/software/softwarestyleguide.pdf
DISCLAIM:  Read and understand our disclaimer before using this code!
           www.esacademy.com/disclaim.htm
LICENSE:   THIS IS THE EDUCATIONAL VERSION OF MICROCANOPEN
           See file license_educational.txt or
           www.microcanopen.com/license_educational.txt
           A commercial MicroCANopen license is available at
           www.CANopenStore.com
VERSION:   3.30, ESA 30-JAN-07
           $LastChangedDate: 2007-01-30 10:38:13 -0800 (Tue, 30 Jan 2007) $
           $LastChangedRevision: 232 $
***************************************************************************/ 

#include <LPC21XX.H> // LPC21XX Peripheral Registers
#include <string.h>

#include "mco.h"
#include "mcohw.h"
// Auto-generated files from CANopenArchitectEDS
#include "..\Utils\entriesandreplies.h"
#include "..\Utils\initpdos.h"
#include "..\Utils\pimg.h"

#if USE_MICROLSS == 1
#include "mlss.h"
#endif

// Global timer/conter variable, incremented every millisecond
extern UNSIGNED16 volatile gTimCnt;


/**************************************************************************
GLOBAL VARIABLES
***************************************************************************/ 

// This structure holds all node specific configuration
UNSIGNED8 volatile gProcImg[PIMGEND+1] = PIMGDEFAULTS;

// Table with SDO Responses for read requests to OD
UNSIGNED8 MEM_CONST SDOResponseTable[] = {
// Each Row has 8 Bytes:
// Command Specifier for SDO Response (1 byte)
//   bits 2+3 contain: '4' 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -