RelaisLEDs.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //==============================================================================
  2. // Purpose: DigitalOutput-Ansteuerung
  3. //
  4. // Created on: 21.09.2012 by IPE
  5. //
  6. // History
  7. // 21.09.2012 neu, T.Maurer
  8. //==============================================================================
  9. #ifndef __RelaisLEDs_H__
  10. #define __RelaisLEDs_H__
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. //==============================================================================
  15. // Include files
  16. //Master-Board LED-Pins
  17. //MPC-RM S.75ff
  18. #define PIN_REGNR_LED1 158 //Port PJ[14] = PCR[158]
  19. #define PIN_REGNR_LED2 159 //PJ[15] = PCR[159]
  20. #define PIN_REGNR_LED3 160 //PK[0] = PCR[160] // high == Power Relais disconnected low = Power-Relais Connected
  21. #define PIN_REGNR_LED4 4 //PA[4] = PCR[4] // high = no Error Low = Error
  22. //Master-Board HighSide-Switches Out-Pins
  23. #define PIN_REGNR_HS1 80 //PF[0]
  24. #define PIN_REGNR_HS2 81 //PF[1]
  25. #define PIN_REGNR_HS3 82 //PF[2]
  26. #define PIN_REGNR_HS4 83 //PF[3]
  27. #define PIN_REGNR_HS5 84 //PF[4]
  28. #define PIN_REGNR_HS6 85 //PF[5]
  29. #define PIN_REGNR_HS7 86 //PF[6]
  30. #define PIN_REGNR_HS8 87 //PF[7]
  31. //Master-Board Relais-Switches Out-Pins
  32. #define PIN_REGNR_RELAIS_PLUS 144 //PJ[0]
  33. #define PIN_REGNR_RELAIS_PRECHA 145 //PJ[1]
  34. #define PIN_REGNR_RELAIS_SLAVE 146 //PJ[2]
  35. #define PIN_REGNR_PWR_SUPPLY 107 //PG[11]
  36. //ISO Inputs
  37. #define PIN_REGNR_MHS 22 // PB[6] (ADC3) = PCR[108]
  38. #define PIN_REGNR_OKHS 23 // PB[7] (ADC4) = PCR[109]
  39. //API
  40. extern void RelaisLEDs_init();
  41. extern uint8_t RelaisLEDs_TM_update(uint8_t tick); //TestMode
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif /* ifndef*/