| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
rtc.c File Reference
`#include "chip.h"`
`#include "board.h"`
`#include "rtc.h"`

Go to the source code of this file.

## Functions
int | rtc_initialize (void)
int | rtc_gettime (RTC *rtc)
int | rtc_settime (const RTC *rtc)
DWORD | get_fattime ()
| User Provided Timer Function for FatFs module.

## Function Documentation

DWORD get_fattime | ( | void |  | ) |

User Provided Timer Function for FatFs module.

Returns
  Nothing

Note
  This is a real time clock service to be called from FatFs module. Any valid time must be returned even if the system does not support a real time clock. This is not required in read-only configuration.

Definition at line 87 of file rtc.c.

int rtc_gettime | ( | RTC * | rtc | ) |

Definition at line 47 of file rtc.c.

int rtc_initialize | ( | void |  | ) |

RTC initialization function

Definition at line 19 of file rtc.c.

int rtc_settime | ( | const RTC * | rtc | ) |

Definition at line 63 of file rtc.c.