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
2c4e67e3
Commit
2c4e67e3
authored
Aug 24, 2014
by
Damien George
Browse files
stmhal, pin: Update documentation.
parent
3d945559
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/pin.c
View file @
2c4e67e3
...
...
@@ -527,9 +527,9 @@ STATIC mp_obj_t pin_pull(mp_obj_t self_in) {
STATIC
MP_DEFINE_CONST_FUN_OBJ_1
(
pin_pull_obj
,
pin_pull
);
/// \method af()
/// Returns the currently configured a
f of the pin. The integer returned
/// will match one of the allowed constants for the af
argument to the init
/// function.
/// Returns the currently configured a
lternate-function of the pin. The
///
integer returned
will match one of the allowed constants for the af
///
argument to the init
function.
STATIC
mp_obj_t
pin_af
(
mp_obj_t
self_in
)
{
return
MP_OBJ_NEW_SMALL_INT
(
pin_get_af
(
self_in
));
}
...
...
@@ -564,6 +564,9 @@ STATIC const mp_map_elem_t pin_locals_dict_table[] = {
/// \constant IN - initialise the pin to input mode
/// \constant OUT_PP - initialise the pin to output mode with a push-pull drive
/// \constant OUT_OD - initialise the pin to output mode with an open-drain drive
/// \constant AF_PP - initialise the pin to alternate-function mode with a push-pull drive
/// \constant AF_OD - initialise the pin to alternate-function mode with an open-drain drive
/// \constant ANALOG - initialise the pin to analog mode
/// \constant PULL_NONE - don't enable any pull up or down resistors on the pin
/// \constant PULL_UP - enable the pull-up resistor on the pin
/// \constant PULL_DOWN - enable the pull-down resistor on the pin
...
...
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