Choco OS  V.0.16.9.0
Join to the chocolate world
oc_clock_lld.h File Reference

The file with LLD interface for the CLOCK driver. More...

#include <oc_machine.h>
#include <oc_frequency.h>
#include <oc_errors.h>
#include <stdbool.h>

Go to the source code of this file.

Typedefs

typedef void(* oC_CLOCK_LLD_Interrupt_t) (oC_Frequency_t Frequency)
 type for storing interrupts pointers More...
 

Enumerations

Functions

oC_ErrorCode_t oC_CLOCK_LLD_TurnOnDriver (void)
 initializes the driver to work More...
 
oC_ErrorCode_t oC_CLOCK_LLD_TurnOffDriver (void)
 release the driver More...
 
oC_CLOCK_LLD_ClockSource_t oC_CLOCK_LLD_GetClockSource (void)
 returns source of the system clock More...
 
oC_Frequency_t oC_CLOCK_LLD_GetClockFrequency (void)
 returns frequency of the system clock More...
 
oC_Frequency_t oC_CLOCK_LLD_GetOscillatorFrequency (void)
 returns frequency of the oscillator More...
 
oC_Frequency_t oC_CLOCK_LLD_GetMaximumClockFrequency (void)
 returns maximum frequency permissible for the machine More...
 
oC_ErrorCode_t oC_CLOCK_LLD_SetClockConfiguredInterrupt (oC_CLOCK_LLD_Interrupt_t Interrupt)
 configures an interrupt for clock configured event More...
 
bool oC_CLOCK_LLD_DelayForMicroseconds (oC_UInt_t Microseconds)
 perform a delay for us More...
 
oC_ErrorCode_t oC_CLOCK_LLD_ConfigureInternalClock (oC_Frequency_t TargetFrequency, oC_Frequency_t PermissibleDifference)
 configures system clock in internal mode More...
 
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 More...
 
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 More...
 

Detailed Description


Author
Patryk Kubiak - (Created on: 30 04 2015 19:19:52)
Note
Copyright (C) 2015 Patryk Kubiak patry.nosp@m.k.ku.nosp@m.biak9.nosp@m.0@gm.nosp@m.ail.c.nosp@m.om
           This program is free software; you can redistribute it and/or modify
           it under the terms of the GNU General Public License as published by
           the Free Software Foundation; either version 2 of the License, or
           (at your option) any later version.

           This program is distributed in the hope that it will be useful,
           but WITHOUT ANY WARRANTY; without even the implied warranty of
           MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
           GNU General Public License for more details.

           You should have received a copy of the GNU General Public License
           along with this program; if not, write to the Free Software
           Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

Definition in file oc_clock_lld.h.