nico@215: nico@215:
nico@215:#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"
nico@215: Include dependency graph for appli.c:
nico@215: 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, etisserant@240: CAN_BAUDRATE_500K, etisserant@240: CAN_BAUDRATE_1M nico@215: } |
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 DEBUG_ERR_CONSOLE_ON | nico@215:
#define DEBUG_WAR_CONSOLE_ON | nico@215:
nico@215:
enum E_CanBaudrate | nico@215:
nico@215:
void gene_SYNC_heartbeatError | nico@215:( | nico@215:UNS8 | nico@215:heartbeatID | nico@215:) | nico@215:nico@215: |
void gene_SYNC_initialisation | nico@215:( | nico@215:void | nico@215:nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 272 of file appli.c. nico@215:
nico@215: References initSensor(), IO_PORTS_8, MSG_WAR, and PORTB. nico@215:
nico@215: Referenced by main(). nico@215:
etisserant@240: Here is the call graph for this function:
void gene_SYNC_operational | nico@215:( | nico@215:void | nico@215:nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 314 of file appli.c. nico@215:
nico@215: References acceptanceFilter1, acceptanceFilter2, acceptanceFilter3, acceptanceFilter4, applyDownloadedFilters, canChangeFilter(), CANOPEN_LINE_NUMBER_USED, IO_PORTS_8, mask1, mask2, mask3, mask4, MSG_WAR, PORTB, UNS16, and UNS8. nico@215:
nico@215: Referenced by main(). nico@215:
etisserant@240: Here is the call graph for this function:
void gene_SYNC_preOperational | nico@215:( | nico@215:void | nico@215:nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 284 of file appli.c. nico@215:
nico@215: References applyDownloadedFilters, canChangeFilter(), CANOPEN_LINE_NUMBER_USED, IO_PORTS_8, MSG_WAR, and PORTB. nico@215:
nico@215: Referenced by main(). nico@215:
etisserant@240: Here is the call graph for this function:
void gene_SYNC_stopped | nico@215:( | nico@215:void | nico@215:nico@215: | ) | nico@215:nico@215: |
void initCanopencapteur | nico@215:( | nico@215:void | nico@215:nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
void initPortB | nico@215:( | nico@215:void | nico@215:nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 149 of file appli.c. nico@215:
nico@215: References DDRB, IO_PORTS_8, and PORTB. nico@215:
nico@215: Referenced by initSensor(). nico@215:
void initPortH | nico@215:( | nico@215:void | nico@215:nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 159 of file appli.c. nico@215:
nico@215: References DDRH, IO_PORTS_8, PERH, and PPSH. nico@215:
nico@215: Referenced by initSensor(). nico@215:
void initSensor | nico@215:( | nico@215:void | nico@215:nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 170 of file appli.c. nico@215:
etisserant@240: 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. nico@215:
nico@215: Referenced by gene_SYNC_initialisation(). nico@215:
etisserant@240: Here is the call graph for this function:
UNS8 main | nico@215:( | nico@215:void | nico@215:nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 383 of file appli.c. nico@215:
etisserant@240: 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(). etisserant@240:
etisserant@240: Here is the call graph for this function:
nico@215:
const canBusTime CAN_Baudrates[] | nico@215:
nico@215: nico@215:
nico@215: Definition at line 71 of file appli.c. nico@215:
nico@215: Referenced by initSensor(). nico@215:
etisserant@240: