Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
c7c4a843
Commit
c7c4a843
authored
11 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
stm: Update to compile with latest changes to core py.
parent
a3f94e00
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
stm/audio.c
+2
-2
2 additions, 2 deletions
stm/audio.c
stm/exti.c
+1
-1
1 addition, 1 deletion
stm/exti.c
stm/math.c
+4
-0
4 additions, 0 deletions
stm/math.c
stm/pin_map.c
+1
-1
1 addition, 1 deletion
stm/pin_map.c
with
8 additions
and
4 deletions
stm/audio.c
+
2
−
2
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
);
...
...
This diff is collapsed.
Click to expand it.
stm/exti.c
+
1
−
1
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
;
...
...
This diff is collapsed.
Click to expand it.
stm/math.c
+
4
−
0
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
};
...
...
This diff is collapsed.
Click to expand it.
stm/pin_map.c
+
1
−
1
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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment