~shadowrobot/sr-ros-interface-ethercat/friction_comp_tests

« back to all changes in this revision

Viewing changes to sr_external_dependencies/released/external/0220_palm_edc/.svn/text-base/this_node.h.svn-base

  • Committer: Toni Oliver Duran
  • Date: 2012-01-26 11:31:12 UTC
  • mfrom: (530.2.8 shadow_robot_ethercat)
  • Revision ID: toni@mallorca-20120126113112-74x2v7fh82fxrtpt
Merged with rewrite-bootloader.

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
 
112
112
void handle_configuration_message(CAN_message* message);
113
113
void Service_EtherCAT_Packet(void);
 
114
void Check_For_EtherCAT_Packet(void);
114
115
 
115
116
 
116
117
// application defines
118
119
#define THIS_NODE_SERIAL_NUMBER     0x0015
119
120
 
120
121
//#define THIS_NODE_PRODUCT_CODE      0x0000
121
 
//#define THIS_NODE_SERIAL_NUMBER     0x0002
 
122
//#define THIS_NODE_SERIAL_NUMBER     0x0004
122
123
 
123
124
#define SYSTEM_FREQ_HZ            80000000
124
125
#define PERIPHERAL_BUS_CLOCK_HZ   40000000
160
161
void Translate_SOMI_Bits(void);
161
162
void Read_All_Sensors(void);
162
163
void Collect_All_CAN_Messages(void);
 
164
int32u get_frame_time_us(void);
 
165
void Wait_For_Until_Frame_Time(int32u frame_time_us);
163
166
inline void write_status_data_To_ET1200(void);
164
167
 
165
168
void delay_us(int32u microseconds) ;
184
187
    //#define USE_SMALL_EEPROM
185
188
 
186
189
    #define USE_SIMPLE_PST_CS
187
 
    #define AUTO_TRIGGER         1                      //!< Trigger sampling even if there is no EtherCAT activity. Useful for debugging
 
190
    #define AUTO_TRIGGER         0                      //!< Trigger sampling even if there is no EtherCAT activity. Useful for debugging
188
191
 
189
192
    #define ET1200_CHIP_SELECT_PIN      'C', 14
190
193
    #define ET1200_RESET_PIN            'F',  3