optimation temp & adc
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
Reference in New Issue
Block a user