forked from ClemensElflein/CoverUI
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f21fa6
commit ef38e82
Showing
3 changed files
with
144 additions
and
13 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
Firmware/CoverUI/YardForce/include/model/emergency_RM-EC3-V11.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* @file emergency_RM-EC3-V11.cpp | ||
* @author Apehaenger ([email protected]) | ||
* @brief YardForce RM-EC3-V1.1 CoverUI Emergency class for OpenMower https://github.com/ClemensElflein/OpenMower | ||
* @version 0.1 | ||
* @date 2023-11-28 | ||
* | ||
* @copyright Copyright (c) 2023 | ||
* | ||
*/ | ||
#include <Arduino.h> | ||
#include "emergency_RM-EC3-V11.h" | ||
#include "../Emergency.hpp" | ||
|
||
const EmergencyPinStateDef kEmergencyPinStateDefs[] = { | ||
#ifdef MOD_HALL | ||
{PIN_HALL1, INPUT_PULLUP, Emergency_state::Emergency_lift1}, | ||
{PIN_HALL2, INPUT_PULLUP, Emergency_state::Emergency_lift1}, | ||
{PIN_HALL3, INPUT_PULLUP, Emergency_state::Emergency_lift2}, | ||
{PIN_HALL4, INPUT_PULLUP, Emergency_state::Emergency_lift2}, | ||
#endif | ||
#ifdef MOD_STOP | ||
{PIN_STOP1, INPUT_PULLUP, Emergency_state::Emergency_stop1}, | ||
{PIN_STOP2, INPUT_PULLUP, Emergency_state::Emergency_stop2}, | ||
#endif | ||
}; | ||
|
||
Emergency emergency(kEmergencyPinStateDefs, sizeof(kEmergencyPinStateDefs) / sizeof(EmergencyPinStateDef)); |
28 changes: 28 additions & 0 deletions
28
Firmware/CoverUI/YardForce/include/model/emergency_RM-EC3-V11.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* @file emergency_RM-EC3-V11.h | ||
* @author Apehaenger ([email protected]) | ||
* @brief YardForce RM-EC3-V1.1 CoverUI Emergency header for OpenMower https://github.com/ClemensElflein/OpenMower | ||
* @version 0.1 | ||
* @date 2023-11-28 | ||
* | ||
* @copyright Copyright (c) 2023 | ||
* | ||
*/ | ||
|
||
#ifndef YARDFORCE_EMERGENCY_RMEC3V11_H | ||
#define YARDFORCE_EMERGENCY_RMEC3V11_H | ||
|
||
#include <Arduino.h> | ||
#include "../Emergency.hpp" | ||
|
||
#define PIN_STOP1 PC15 | ||
#define PIN_STOP2 PB6 | ||
|
||
#define PIN_HALL1 PB15 | ||
#define PIN_HALL2 PC0 | ||
#define PIN_HALL3 PC8 | ||
#define PIN_HALL4 PC9 | ||
|
||
extern Emergency emergency; | ||
|
||
#endif // YARDFORCE_EMERGENCY_RMEC3V11_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters