// // MODULES.HPL // // Standard module EPL header file #ifndef MODULES #define MODULES #include //-------------------------------------------------------------------- // Modules of first expansion module //-------------------------------------------------------------------- #define BUTTON_0_FIRSTEXP 0 // Buttons module 0 #define BUTTON_1_FIRSTEXP 1 // Buttons module 1 #define BUTTON_2_FIRSTEXP 2 // Buttons module 2 #define OUTPUT_0_FIRSTEXP 0 // Output module 0 #define OUTPUT_1_FIRSTEXP 1 // Output module 1 #define DISPLAY_0_FIRSTEXP 0 // 7 Segment display module 0 #define DISPLAY_1_FIRSTEXP 1 // 7 Segment display module 1 #define ROTARY_0_FIRSTEXP 7 // rotary encoder module type #define SERVO_0_FIRSTEXP 9 // Servo control module type definemodule(BUTTON_0_FIRSTEXP,SLOWSCAN,0,8) // button module 0, rows 0 - 7 definemodule(BUTTON_1_FIRSTEXP,SLOWSCAN,0,16) // button module 1, rows 0 - 15 definemodule(BUTTON_2_FIRSTEXP,SLOWSCAN,0,16) // button module 2, rows 0 - 15 definemodule(OUTPUT_0_FIRSTEXP,BITOUTPUT,0,8) // output module 0, rows 0 - 8 (bits 0 - 63) //definemodule(OUTPUT_1_FIRSTEXP,BITOUTPUT,4,4) // output module 1, rows 4 - 7 (bits 32 - 63) definemodule(ROTARY_0_FIRSTEXP,FASTSCAN,0,5) // rotary module 7, rows 0 - 4, rotary encoder module definemodule(ROTARY_0_FIRSTEXP,BITOUTPUT,0,3) // rotary module 7, output, setting of rotary encoder bits definemodule(SERVO_0_FIRSTEXP,BITOUTPUT,0,16) // servo control module 9, output //-------------------------------------------------------------------- // Modules of second expansion module //-------------------------------------------------------------------- #define BUTTON_3_SECONDEXP 3 // Buttons module 0 #define BUTTON_4_SECONDEXP 4 // Buttons module 1 #define BUTTON_5_SECONDEXP 5 // Buttons module 2 #define OUTPUT_2_SECONDEXP 2 // Output module 0 #define OUTPUT_3_SECONDEXP 3 // Output module 1 #define DISPLAY_2_SECONDEXP 2 // 7 Segment display module 0 #define DISPLAY_3_SECONDEXP 3 // 7 Segment display module 1 #define ROTARY_1_SECONDEXP 8 // rotary encoder module type //==================================================================== // Module definitions // definemodule(mod #, type, start row, number of rows to scan starting with startrow) //==================================================================== definemodule(BUTTON_3_SECONDEXP,SLOWSCAN,0,8) // button module 0, rows 0 - 7 definemodule(BUTTON_4_SECONDEXP,SLOWSCAN,0,16) // button module 1, rows 0 - 15 definemodule(BUTTON_5_SECONDEXP,SLOWSCAN,0,16) // button module 2, rows 0 - 15 definemodule(OUTPUT_2_SECONDEXP,BITOUTPUT,0,8) // output module 0, rows 0 - 8 (bits 0 - 63) //definemodule(OUTPUT_3_SECONDEXP,BITOUTPUT,4,4) // output module 1, rows 4 - 7 (bits 32 - 63) definemodule(ROTARY_1_SECONDEXP,FASTSCAN,0,5) // rotary module 7, rows 0 - 4, rotary encoder module definemodule(ROTARY_1_SECONDEXP,BITOUTPUT,0,3) // rotary module 7, output, setting of rotary encoder bits #endif