Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
c70637bc
Commit
c70637bc
authored
Mar 04, 2016
by
Paul Sokolovsky
Browse files
esp8266/modmachine: Timer: Add ONE_SHOT and PERIODIC symbolic constants.
parent
98b727c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
esp8266/modmachine.c
View file @
c70637bc
...
...
@@ -100,6 +100,8 @@ STATIC const mp_map_elem_t esp_timer_locals_dict_table[] = {
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_deinit
),
(
mp_obj_t
)
&
esp_timer_deinit_obj
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_init
),
(
mp_obj_t
)
&
esp_timer_init_obj
},
// { MP_OBJ_NEW_QSTR(MP_QSTR_callback), (mp_obj_t)&esp_timer_callback_obj },
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_ONE_SHOT
),
MP_OBJ_NEW_SMALL_INT
(
false
)
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_PERIODIC
),
MP_OBJ_NEW_SMALL_INT
(
true
)
},
};
STATIC
MP_DEFINE_CONST_DICT
(
esp_timer_locals_dict
,
esp_timer_locals_dict_table
);
...
...
esp8266/qstrdefsport.h
View file @
c70637bc
...
...
@@ -155,3 +155,5 @@ Q(deinit)
Q
(
init
)
Q
(
mode
)
Q
(
period
)
Q
(
ONE_SHOT
)
Q
(
PERIODIC
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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