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
206dd2a9
Commit
206dd2a9
authored
Apr 19, 2014
by
Paul Sokolovsky
Browse files
stmhal: Update for mp_binary_get_size() refactor.
parent
62044604
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/adc.c
View file @
206dd2a9
...
...
@@ -169,7 +169,7 @@ STATIC mp_obj_t adc_read_timed(mp_obj_t self_in, mp_obj_t buf_in, mp_obj_t freq_
mp_buffer_info_t
bufinfo
;
mp_get_buffer_raise
(
buf_in
,
&
bufinfo
,
MP_BUFFER_WRITE
);
int
typesize
=
mp_binary_get_size
(
bufinfo
.
typecode
);
int
typesize
=
mp_binary_get_size
(
'@'
,
bufinfo
.
typecode
,
NULL
);
// Init TIM6 at the required frequency (in Hz)
timer_tim6_init
(
mp_obj_get_int
(
freq_in
));
...
...
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