49 #ifndef INC_LLD_OC_CLOCK_LLD_H_ 50 #define INC_LLD_OC_CLOCK_LLD_H_ 54 #include <oc_errors.h> 62 #define _________________________________________TYPES_SECTION______________________________________________________________________________ 90 #undef _________________________________________TYPES_SECTION______________________________________________________________________________ 98 #define _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ 242 #undef _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ oC_ErrorCode_t oC_CLOCK_LLD_TurnOffDriver(void)
release the driver
The file with frequency definitions.
double oC_Frequency_t
type to store frequency
oC_ErrorCode_t oC_CLOCK_LLD_SetClockConfiguredInterrupt(oC_CLOCK_LLD_Interrupt_t Interrupt)
configures an interrupt for clock configured event
oC_CLOCK_LLD_ClockSource_t oC_CLOCK_LLD_GetClockSource(void)
returns source of the system clock
oC_CLOCK_LLD_ClockSource_t
type for storing source of the system clock
oC_Frequency_t oC_CLOCK_LLD_GetMaximumClockFrequency(void)
returns maximum frequency permissible for the machine
oC_ErrorCode_t oC_CLOCK_LLD_ConfigureInternalClock(oC_Frequency_t TargetFrequency, oC_Frequency_t PermissibleDifference)
configures system clock in internal mode
an external source of the clock is used
an internal clock source is used
oC_Frequency_t oC_CLOCK_LLD_GetClockFrequency(void)
returns frequency of the system clock
oC_ErrorCode_t oC_CLOCK_LLD_TurnOnDriver(void)
initializes the driver to work
oC_ErrorCode_t oC_CLOCK_LLD_ConfigureExternalClock(oC_Frequency_t TargetFrequency, oC_Frequency_t PermissibleDifference, oC_Frequency_t OscillatorFrequency)
configures system clock to work in external mode
oC_ErrorCode_t oC_CLOCK_LLD_ConfigureHibernationClock(oC_Frequency_t TargetFrequency, oC_Frequency_t PermissibleDifference, oC_Frequency_t OscillatorFrequency)
configures system clock to work in hibernation mode
The file with interface for the machine module.
void(* oC_CLOCK_LLD_Interrupt_t)(oC_Frequency_t Frequency)
type for storing interrupts pointers
bool oC_CLOCK_LLD_DelayForMicroseconds(oC_UInt_t Microseconds)
perform a delay for us
oC_Frequency_t oC_CLOCK_LLD_GetOscillatorFrequency(void)
returns frequency of the oscillator