appli.c File Reference

#include <stddef.h>
#include <asm-m68hc12/portsaccess.h>
#include <asm-m68hc12/ports_def.h>
#include <asm-m68hc12/ports.h>
#include <interrupt.h>
#include "../include/data.h"
#include <applicfg.h>
#include "../include/hcs12/candriver.h"
#include "../include/hcs12/canOpenDriver.h"
#include "../include/def.h"
#include "../include/can.h"
#include "../include/objdictdef.h"
#include "../include/objacces.h"
#include "../include/sdo.h"
#include "../include/pdo.h"
#include "../include/timer.h"
#include "../include/lifegrd.h"
#include "../include/sync.h"
#include "../include/nmtSlave.h"
#include "objdict.h"

Include dependency graph for appli.c:

Go to the source code of this file.

Defines

#define DEBUG_WAR_CONSOLE_ON
#define DEBUG_ERR_CONSOLE_ON

Enumerations

enum  E_CanBaudrate { CAN_BAUDRATE_250K, CAN_BAUDRATE_500K, CAN_BAUDRATE_1M }

Functions

void initCanopencapteur (void)
void initSensor (void)
void initPortB (void)
void initPortH (void)
void gene_SYNC_heartbeatError (UNS8 heartbeatID)
void gene_SYNC_initialisation ()
void gene_SYNC_preOperational ()
void gene_SYNC_operational ()
void gene_SYNC_stopped ()
UNS8 main (void)

Variables

const canBusTime CAN_Baudrates []


Define Documentation

#define DEBUG_ERR_CONSOLE_ON

Definition at line 25 of file appli.c.

#define DEBUG_WAR_CONSOLE_ON

Definition at line 24 of file appli.c.


Enumeration Type Documentation

enum E_CanBaudrate

Enumerator:
CAN_BAUDRATE_250K 
CAN_BAUDRATE_500K 
CAN_BAUDRATE_1M 

Definition at line 63 of file appli.c.


Function Documentation

void gene_SYNC_heartbeatError ( UNS8  heartbeatID  ) 

Definition at line 265 of file appli.c.

References MSG_ERR.

Referenced by main().

void gene_SYNC_initialisation ( void   ) 

Definition at line 272 of file appli.c.

References initSensor(), IO_PORTS_8, MSG_WAR, and PORTB.

Referenced by main().

Here is the call graph for this function:

void gene_SYNC_operational ( void   ) 

Definition at line 314 of file appli.c.

References acceptanceFilter1, acceptanceFilter2, acceptanceFilter3, acceptanceFilter4, applyDownloadedFilters, canChangeFilter(), CANOPEN_LINE_NUMBER_USED, IO_PORTS_8, mask1, mask2, mask3, mask4, MSG_WAR, PORTB, UNS16, and UNS8.

Referenced by main().

Here is the call graph for this function:

void gene_SYNC_preOperational ( void   ) 

Definition at line 284 of file appli.c.

References applyDownloadedFilters, canChangeFilter(), CANOPEN_LINE_NUMBER_USED, IO_PORTS_8, MSG_WAR, and PORTB.

Referenced by main().

Here is the call graph for this function:

void gene_SYNC_stopped ( void   ) 

Definition at line 368 of file appli.c.

References IO_PORTS_8, MSG_WAR, and PORTB.

Referenced by main().

void initCanopencapteur ( void   ) 

void initPortB ( void   ) 

Definition at line 149 of file appli.c.

References DDRB, IO_PORTS_8, and PORTB.

Referenced by initSensor().

void initPortH ( void   ) 

Definition at line 159 of file appli.c.

References DDRH, IO_PORTS_8, PERH, and PPSH.

Referenced by initSensor().

void initSensor ( void   ) 

Definition at line 170 of file appli.c.

References CAN_BAUDRATE_1M, CAN_BAUDRATE_250K, CAN_BAUDRATE_500K, CAN_Baudrates, canInit(), CANOPEN_LINE_NUMBER_USED, canBusInit::clk, gene_SYNC_Data, getNodeId(), initHCS12(), initPortB(), initPortH(), initTimer(), IO_PORTS_8, MSG_WAR, PORTB, PTH, setNodeId(), unlock(), and UNS8.

Referenced by gene_SYNC_initialisation().

Here is the call graph for this function:

UNS8 main ( void   ) 

Definition at line 383 of file appli.c.

References canDispatch(), f_can_receive(), gene_SYNC_Data, gene_SYNC_heartbeatError(), gene_SYNC_initialisation(), gene_SYNC_operational(), gene_SYNC_preOperational(), gene_SYNC_stopped(), struct_CO_Data::heartbeatError, Initialisation, struct_CO_Data::initialisation, lock(), MSG_WAR, struct_CO_Data::preOperational, setState(), struct_CO_Data::stopped, and unlock().

Here is the call graph for this function:


Variable Documentation

const canBusTime CAN_Baudrates[]

Definition at line 71 of file appli.c.

Referenced by initSensor().


Generated on Mon Jul 2 19:10:21 2007 for CanFestival by  doxygen 1.5.1