Skip to content

Commit 739651b

Browse files
benjaminbjornssoncarlescufi
authored andcommitted
boards: arm: nucleo_c031c6: Enable rtc
Enable rtc and update documentation to include counter support. Signed-off-by: Benjamin Björnsson <[email protected]>
1 parent 71c83df commit 739651b

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

boards/arm/nucleo_c031c6/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ The Zephyr nucleo_c031c6 board configuration supports the following hardware fea
7474
+-----------+------------+-------------------------------------+
7575
| CLOCK | on-chip | reset and clock control |
7676
+-----------+------------+-------------------------------------+
77+
| RTC | on-chip | counter |
78+
+-----------+------------+-------------------------------------+
7779

7880
Other hardware features are not yet supported in this Zephyr port.
7981

boards/arm/nucleo_c031c6/nucleo_c031c6.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
};
4444
};
4545

46+
&clk_lse {
47+
status = "okay";
48+
};
49+
4650
&clk_hse {
4751
clock-frequency = <DT_FREQ_M(48)>;
4852
status = "okay";
@@ -67,3 +71,9 @@
6771
current-speed = <115200>;
6872
status = "okay";
6973
};
74+
75+
&rtc {
76+
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000400>,
77+
<&rcc STM32_SRC_LSE RTC_SEL(1)>;
78+
status = "okay";
79+
};

boards/arm/nucleo_c031c6/nucleo_c031c6.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ toolchain:
88
- xtools
99
supported:
1010
- gpio
11+
- counter
1112
ram: 12
1213
flash: 32

0 commit comments

Comments
 (0)