| BlueNRG-1 HAL drivers APIs

- Main Page
- Classes
- Files

- File List
- File Members

Typedefs | Functions | Variables
clock.h File Reference

Header file for clock APIs based on SySTick. More...

`#include "BlueNRG1.h"`

Go to the source code of this file.

## Typedefs

typedef uint32_t | tClockTime

## Functions

void | Clock_Init (void)
| This function initializes the clock library based on SysTick. More...
tClockTime | Clock_Time (void)
| This function returns the current system clock time. More...
void | Clock_Wait (uint32_t i)
| This function waits for a given number of milliseconds. More...
void | SysCount_Handler (void)
| This function is called on SysTick_Handler() More...

## Variables

const uint32_t | CLOCK_SECOND
| Number of clocks in one seconds. More...

## Detailed Description

Header file for clock APIs based on SySTick.

Author
  AMS - VMA RF Application team

Version
  V1.0.0

Date
  21-Sept-2015

Attention

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

##
© COPYRIGHT 2015 STMicroelectronics

Definition in file clock.h.

## Typedef Documentation

typedef uint32_t tClockTime

Definition at line 31 of file clock.h.

## Function Documentation

void Clock_Init | ( | void |  | ) |

This function initializes the clock library based on SysTick.

Parameters

  None |

Return values

  None |

tClockTime Clock_Time | ( | void |  | ) |

This function returns the current system clock time.

Parameters

  None |

Return values

  It | returns current clock time, measured in system ticks.

void Clock_Wait | ( | uint32_t | i | ) |

This function waits for a given number of milliseconds.

Parameters

  i | delay in milliseconds

Return values

  None |

void SysCount_Handler | ( | void |  | ) |

This function is called on SysTick_Handler()

## Variable Documentation

const uint32_t CLOCK_SECOND

Number of clocks in one seconds.