diff options
Diffstat (limited to 'ldmicro/includes/ldmicro.h')
-rw-r--r-- | ldmicro/includes/ldmicro.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ldmicro/includes/ldmicro.h b/ldmicro/includes/ldmicro.h index caa154d..02f850d 100644 --- a/ldmicro/includes/ldmicro.h +++ b/ldmicro/includes/ldmicro.h @@ -48,6 +48,8 @@ typedef signed long SDWORD; // Constants for the GUI. We have drop-down menus, a listview for the I/Os, // etc. +#define NUM_SUPPORTED_MCUS 16 + // Menu IDs extern HMENU MNU_NEW; extern HMENU MNU_OPEN; @@ -106,7 +108,8 @@ extern HMENU MNU_MAKE_RESET_ONLY; extern HMENU MNU_INSERT_PWL; extern HMENU MNU_MCU_SETTINGS; -extern HMENU MNU_PROCESSOR_0; +extern HMENU MNU_PROCESSOR[NUM_SUPPORTED_MCUS+1]; +extern HMENU MNU_MICRO_CONTROLLER; extern HMENU MNU_SIMULATION_MODE; extern HMENU MNU_START_SIMULATION; @@ -499,8 +502,6 @@ typedef struct McuIoInfoTag { DWORD configurationWord; } McuIoInfo; -#define NUM_SUPPORTED_MCUS 16 - //----------------------------------------------- // Function prototypes @@ -542,10 +543,11 @@ void UpdateMainWindowTitleBar(void); extern int ScrollWidth; extern int ScrollHeight; extern BOOL NeedHoriz; -extern HWND IoList; +extern HLIST IoList; extern int IoListTop; extern int IoListHeight; + // draw.cpp int ProgCountWidestRow(void); int CountHeightOfElement(int which, void *elem); @@ -727,6 +729,7 @@ extern BOOL DialogCancel; // lang.cpp char *_(char *in); + // simulate.cpp void SimulateOneCycle(BOOL forceRefresh); void CALLBACK PlcCycleTimer(HWND hwnd, UINT msg, UINT_PTR id, DWORD time); @@ -741,6 +744,7 @@ SWORD GetAdcShadow(char *name); void DestroyUartSimulationWindow(void); void ShowUartSimulationWindow(void); extern BOOL InSimulationMode; + extern BOOL SimulateRedrawAfterNextCycle; // compilecommon.cpp |