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
87f068d7
Commit
87f068d7
authored
8 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
cc3200: Update to use size_t for tuple/list accessors.
parent
46e98d9e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cc3200/mods/modutime.c
+1
-1
1 addition, 1 deletion
cc3200/mods/modutime.c
cc3200/mods/pybrtc.c
+1
-1
1 addition, 1 deletion
cc3200/mods/pybrtc.c
cc3200/mods/pybuart.c
+2
-2
2 additions, 2 deletions
cc3200/mods/pybuart.c
with
4 additions
and
4 deletions
cc3200/mods/modutime.c
+
1
−
1
View file @
87f068d7
...
...
@@ -102,7 +102,7 @@ STATIC mp_obj_t time_localtime(mp_uint_t n_args, const mp_obj_t *args) {
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN
(
time_localtime_obj
,
0
,
1
,
time_localtime
);
STATIC
mp_obj_t
time_mktime
(
mp_obj_t
tuple
)
{
mp_uint
_t
len
;
size
_t
len
;
mp_obj_t
*
elem
;
mp_obj_get_array
(
tuple
,
&
len
,
&
elem
);
...
...
This diff is collapsed.
Click to expand it.
cc3200/mods/pybrtc.c
+
1
−
1
View file @
87f068d7
...
...
@@ -196,7 +196,7 @@ STATIC uint pyb_rtc_datetime_s_us(const mp_obj_t datetime, uint32_t *seconds) {
// set date and time
mp_obj_t
*
items
;
uin
t
len
;
size_
t
len
;
mp_obj_get_array
(
datetime
,
&
len
,
&
items
);
// verify the tuple
...
...
This diff is collapsed.
Click to expand it.
cc3200/mods/pybuart.c
+
2
−
2
View file @
87f068d7
...
...
@@ -388,7 +388,7 @@ STATIC mp_obj_t pyb_uart_init_helper(pyb_uart_obj_t *self, const mp_arg_val_t *a
uint
flowcontrol
=
UART_FLOWCONTROL_NONE
;
if
(
pins_o
!=
mp_const_none
)
{
mp_obj_t
*
pins
;
mp_uint
_t
n_pins
=
2
;
size
_t
n_pins
=
2
;
if
(
pins_o
==
MP_OBJ_NULL
)
{
// use the default pins
pins
=
(
mp_obj_t
*
)
pyb_uart_def_pin
[
self
->
uart_id
];
...
...
@@ -454,7 +454,7 @@ STATIC mp_obj_t pyb_uart_make_new(const mp_obj_type_t *type, size_t n_args, size
if
(
args
[
0
].
u_obj
==
MP_OBJ_NULL
)
{
if
(
args
[
5
].
u_obj
!=
MP_OBJ_NULL
)
{
mp_obj_t
*
pins
;
mp_uint
_t
n_pins
=
2
;
size
_t
n_pins
=
2
;
mp_obj_get_array
(
args
[
5
].
u_obj
,
&
n_pins
,
&
pins
);
// check the Tx pin (or the Rx if Tx is None)
if
(
pins
[
0
]
==
mp_const_none
)
{
...
...
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