Skip to content

Commit c45e641

Browse files
committed
cc3200: Re-name pybsystick to mpsystick.
1 parent 6bf423d commit c45e641

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

cc3200/application.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ APP_MISC_SRC_C = $(addprefix misc/,\
7979
mpcallback.c \
8080
mperror.c \
8181
mpexception.c \
82+
mpsystick.c \
8283
pin_defs_cc3200.c \
8384
)
8485

@@ -95,7 +96,6 @@ APP_MODS_SRC_C = $(addprefix mods/,\
9596
pybrtc.c \
9697
pybsd.c \
9798
pybsleep.c \
98-
pybsystick.c \
9999
pybuart.c \
100100
pybwdt.c \
101101
)

cc3200/misc/help.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ STATIC mp_obj_t pyb_help(uint n_args, const mp_obj_t *args) {
4646
if (n_args == 0) {
4747
// print a general help message
4848
printf("%s", help_text);
49-
50-
} else {
49+
}
50+
else {
5151
// try to print something sensible about the given object
52-
5352
printf("object ");
5453
mp_obj_print(args[0], PRINT_STR);
5554
printf(" is of type %s\n", mp_obj_get_type_str(args[0]));
@@ -76,7 +75,6 @@ STATIC mp_obj_t pyb_help(uint n_args, const mp_obj_t *args) {
7675
}
7776
}
7877
}
79-
8078
return mp_const_none;
8179
}
8280
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_builtin_help_obj, 0, 1, pyb_help);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include MICROPY_HAL_H
3030
#include "py/obj.h"
3131
#include "irq.h"
32-
#include "pybsystick.h"
32+
#include "mpsystick.h"
3333
#include "systick.h"
3434
#include "inc/hw_types.h"
3535
#include "inc/hw_nvic.h"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
* THE SOFTWARE.
2626
*/
2727

28+
#ifndef MPSYSTICK_H
29+
#define MPSYSTICK_H
30+
2831
void sys_tick_wait_at_least(uint32_t stc, uint32_t delay_ms);
2932
bool sys_tick_has_passed(uint32_t stc, uint32_t delay_ms);
3033
uint32_t sys_tick_get_microseconds(void);
34+
35+
#endif // MPSYSTICK_H

0 commit comments

Comments
 (0)