optimation temp & adc

This commit is contained in:
Noah Piqué
2021-11-17 14:34:41 +01:00
parent 04d2bab659
commit cb3449f487
7 changed files with 51 additions and 40 deletions

View File

@ -82,6 +82,8 @@
LOCAL osThreadId_t m_pstThreadID = NULL;
BOOL boEnableOutput = FALSE;
//=================================================================================================
// Section: LOCAL CONSTANTS
@ -164,11 +166,22 @@ BOOL PECO_boSetTemperature( S16 Temperature ){
//-------------------------------------------------------------------------------------------------
// Function: PECO_Enable
// Description: Enables the Peltier Controller Output
// Parameters: BOOL Enable
// Parameters: BOOL boEnable
// Returns: None
//-------------------------------------------------------------------------------------------------
VOID PECO_Enable( BOOL Enable ){
DIPO_vSetState(DIPO_eEN, Enable);
VOID PECO_Enable( BOOL boEnable ){
DIPO_vSetState(DIPO_eEN, boEnable);
boEnableOutput = boEnable;
}
//-------------------------------------------------------------------------------------------------
// Function: PECO_isEnabled
// Description: Returns true if the Output is enabled
// Parameters: None
// Returns: BOOL boEnableOutput
//-------------------------------------------------------------------------------------------------
BOOL PECO_isEnabled( VOID ){
return boEnableOutput;
}
//=================================================================================================