Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
ffaf8be1
Commit
ffaf8be1
authored
May 03, 2014
by
Damien George
Browse files
stmhal: Add example use to RTC doc; add rtc.c to gendoc.py.
parent
3119b600
Changes
2
Hide whitespace changes
Inline
Side-by-side
stmhal/gendoc.py
View file @
ffaf8be1
...
...
@@ -343,7 +343,7 @@ def main():
args
=
cmd_parser
.
parse_args
()
if
len
(
args
.
files
)
==
0
:
args
.
files
=
[
'modpyb.c'
,
'accel.c'
,
'adc.c'
,
'dac.c'
,
'extint.c'
,
'i2c.c'
,
'led.c'
,
'pin.c'
,
'rng.c'
,
'servo.c'
,
'spi.c'
,
'uart.c'
,
'usrsw.c'
,
'timer.c'
]
args
.
files
=
[
'modpyb.c'
,
'accel.c'
,
'adc.c'
,
'dac.c'
,
'extint.c'
,
'i2c.c'
,
'led.c'
,
'pin.c'
,
'rng.c'
,
'servo.c'
,
'spi.c'
,
'uart.c'
,
'usrsw.c'
,
'timer.c'
,
'rtc.c'
]
doc
=
Doc
()
for
file
in
args
.
files
:
...
...
stmhal/rtc.c
View file @
ffaf8be1
...
...
@@ -14,6 +14,12 @@
///
/// The RTC is and independent clock that keeps track of the date
/// and time.
///
/// Example usage:
///
/// rtc = pyb.RTC()
/// rtc.datetime((2014, 5, 1, 4, 13, 0, 0, 0))
/// print(rtc.datetime())
RTC_HandleTypeDef
RTCHandle
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment