---
title: "RTC"
canonical_url: https://developer.repebble.com/pebbleos/docs/drivers/rtc/
last_updated: 2026-11-24
sdk_version: 4.44
---
# RTC

Source: https://developer.repebble.com/pebbleos/docs/drivers/rtc/

An RTC counts UTC time in seconds on its own, through resets and, with a backup supply, power loss. The kernel keeps the running wall clock, set from the RTC at boot.

| 

 | 

 |
| --- | --- |
| 

Directory

 | 

`drivers/rtc`

 |
| 

Header

 | 

`pbl/drivers/rtc.h`

 |
| 

Kconfig

 | 

`CONFIG_RTC`, enabled by the application

 |
| 

Role

 | 

`RTC`

 |
| 

Sample

 | 

[RTC: Getting and setting the time](https://developer.repebble.com/pebbleos/docs/samples/drivers/rtc.md)

 |
| 

API

 | 

[API reference](https://developer.repebble.com/pebbleos/apidoc/d1/d78/group __drivers__ rtc.html)

 |

## Drivers

| 

Driver

 | 

Compatible

 | 

Kconfig

 |
| --- | --- | --- |
| 

Retained RAM

 | 

—

 | 

`CONFIG_RTC_RETAINED`

 |
| 

SiFli SF32LB

 | 

`sifli,sf32lb52-rtc`

 | 

`CONFIG_RTC_SF32LB`

 |
| 

QEMU RTC

 | 

—

 | 

`CONFIG_RTC_QEMU`

 |
| 

POSIX RTC

 | 

—

 | 

`CONFIG_RTC_POSIX`

 |

Generated from PebbleOS [12b6c531f](https://github.com/coredevices/pebbleos/commit/12b6c531f9e0c2f39fe4e9bb2886314697128f08). This page is maintained in the pebbleos repository: [docs/drivers/rtc.md](https://github.com/coredevices/pebbleos/blob/12b6c531f9e0c2f39fe4e9bb2886314697128f08/docs/drivers/rtc.md).
