Skip to content

Commit

Permalink
Merge pull request #8 from makers-for-life/EolTestForSeb
Browse files Browse the repository at this point in the history
Eol test for seb
  • Loading branch information
dsferruzza authored May 18, 2020
2 parents 3cb584e + adfb5d6 commit 4c977cf
Show file tree
Hide file tree
Showing 3 changed files with 576 additions and 89 deletions.
46 changes: 46 additions & 0 deletions includes/end_of_line_test.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/******************************************************************************
* @author Makers For Life
* @copyright Copyright (c) 2020 Makers For Life
* @file end_of_line_test.h
* @brief Auto test for end of line unit test
*****************************************************************************/

#pragma once

#include "../includes/blower.h"
#include "../includes/pressure_valve.h"

#define EOL_TEST_ACTIVE 0xa240183a

/// Controls the running of the embedded auto tests
class EolTest {
public:
/// Default constructor
EolTest();

/// Enable test mode
void activate();

/**
* Check if test mode is enabled
*
* @return True if test mode is enabled
*/
bool isRunning();

/// Run test mode
void setupAndStart();

private:
/// Test mode activation state
uint32_t testActive;
};

extern HardwareTimer* eolTimer;
extern EolTest eolTest;

// These are defined and initialized in the main program
extern PressureValve servoBlower;
extern PressureValve servoPatient;
extern Blower blower;
extern int16_t pressureOffset;
Loading

0 comments on commit 4c977cf

Please sign in to comment.