// Some_Filename.c - This file already exists
/* This function fetches two bytes from Non-Volatile Memory(NVM) and returns to the calling library.
signed short GetDeltaMin ( void ) */
{
signed short param;
NVM_Read ( ( unsigned char * ) ¶m );
return (signed short) param;
}
// New File - Activate_Deactive_I.c
void Enable_Disable ( Boolean State)
{
/* user will pass 1 or 0 to this function. */
/* If State =1, there is no change to GetDeltaMin ( ). It'll still pass two byte value from NVRAM to calling library. */
/* If State = 0, GetDeltaMin ( ) needs to pass 0 to calling library instead of two byte value from
from NVRAM. */
/* Please write this function and modify GetDeltaMin ( ). */
}
// New File - Activate_Deactivate.h
extern void Enable_Disable ( Boolean State); /* This header file must be included in file from where Enable_Disable ( ) will be called. */
/* I don't think Activate_Deactive_I.c needs to include this header file ? */
/* This function fetches two bytes from Non-Volatile Memory(NVM) and returns to the calling library.
signed short GetDeltaMin ( void ) */
{
signed short param;
NVM_Read ( ( unsigned char * ) ¶m );
return (signed short) param;
}
// New File - Activate_Deactive_I.c
void Enable_Disable ( Boolean State)
{
/* user will pass 1 or 0 to this function. */
/* If State =1, there is no change to GetDeltaMin ( ). It'll still pass two byte value from NVRAM to calling library. */
/* If State = 0, GetDeltaMin ( ) needs to pass 0 to calling library instead of two byte value from
from NVRAM. */
/* Please write this function and modify GetDeltaMin ( ). */
}
// New File - Activate_Deactivate.h
extern void Enable_Disable ( Boolean State); /* This header file must be included in file from where Enable_Disable ( ) will be called. */
/* I don't think Activate_Deactive_I.c needs to include this header file ? */