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
c7c4a843
Commit
c7c4a843
authored
Apr 20, 2014
by
Damien George
Browse files
stm: Update to compile with latest changes to core py.
parent
a3f94e00
Changes
4
Hide whitespace changes
Inline
Side-by-side
stm/audio.c
View file @
c7c4a843
...
...
@@ -127,8 +127,8 @@ mp_obj_t pyb_audio_dma(uint n_args, const mp_obj_t *args, mp_map_t *kw_args) {
if
(
type
->
buffer_p
.
get_buffer
==
NULL
)
{
nlr_raise
(
mp_obj_new_exception_msg
(
&
mp_type_TypeError
,
"buffer argument must support buffer protocol"
));
}
buffer_info_t
bufinfo
;
type
->
buffer_p
.
get_buffer
(
args
[
1
],
&
bufinfo
,
BUFFER_READ
);
mp_
buffer_info_t
bufinfo
;
type
->
buffer_p
.
get_buffer
(
args
[
1
],
&
bufinfo
,
MP_
BUFFER_READ
);
RCC_AHB1PeriphClockCmd
(
RCC_AHB1Periph_DMA1
,
ENABLE
);
...
...
stm/exti.c
View file @
c7c4a843
...
...
@@ -283,7 +283,7 @@ static void exti_load_attr(mp_obj_t self_in, qstr attr_qstr, mp_obj_t *dest) {
static
mp_obj_t
exti_call
(
mp_obj_t
type_in
,
uint
n_args
,
uint
n_kw
,
const
mp_obj_t
*
args
)
{
// type_in == exti_obj_type
mp_check_n
args
(
n_args
,
4
,
4
,
n_kw
,
0
);
mp_
arg_
check_n
um
(
n_args
,
n_kw
,
4
,
4
,
0
);
exti_obj_t
*
self
=
m_new_obj
(
exti_obj_t
);
self
->
base
.
type
=
type_in
;
...
...
stm/math.c
View file @
c7c4a843
...
...
@@ -18,6 +18,10 @@ typedef union {
};
}
double_s_t
;
double
__attribute__
((
pcs
(
"aapcs"
)))
__aeabi_i2d
(
int32_t
x
)
{
return
(
float
)
x
;
}
double
__attribute__
((
pcs
(
"aapcs"
)))
__aeabi_f2d
(
float
x
)
{
float_s_t
fx
=
{
0
};
double_s_t
dx
=
{
0
};
...
...
stm/pin_map.c
View file @
c7c4a843
...
...
@@ -68,7 +68,7 @@ static void pin_map_obj_print(void (*print)(void *env, const char *fmt, ...), vo
static
mp_obj_t
pin_map_call
(
mp_obj_t
self_in
,
uint
n_args
,
uint
n_kw
,
const
mp_obj_t
*
args
)
{
pin_map_obj_t
*
self
=
self_in
;
mp_check_n
args
(
n_args
,
1
,
2
,
n_kw
,
false
);
mp_
arg_
check_n
um
(
n_args
,
n_kw
,
1
,
2
,
false
);
if
(
n_args
>
1
)
{
if
(
!
self
->
map_dict
)
{
...
...
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