aboutsummaryrefslogtreecommitdiff
path: root/stmhal/modmachine.c
diff options
context:
space:
mode:
authorDamien George2017-08-30 10:59:58 +1000
committerDamien George2017-08-30 10:59:58 +1000
commit71c9cfb028d423bf4760d66b1afe8951335fa5da (patch)
tree83ce8ec7270f759f73911f5b45bede989872a9b5 /stmhal/modmachine.c
parent784909ce1655bf8b2a97ac81a3842e844992082f (diff)
all: Convert remaining "mp_uint_t n_args" to "size_t n_args".
This is to have consistency across the whole repository.
Diffstat (limited to 'stmhal/modmachine.c')
-rw-r--r--stmhal/modmachine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/modmachine.c b/stmhal/modmachine.c
index 2ff63617b..8c59758fa 100644
--- a/stmhal/modmachine.c
+++ b/stmhal/modmachine.c
@@ -101,7 +101,7 @@ void machine_init(void) {
// machine.info([dump_alloc_table])
// Print out lots of information about the board.
-STATIC mp_obj_t machine_info(mp_uint_t n_args, const mp_obj_t *args) {
+STATIC mp_obj_t machine_info(size_t n_args, const mp_obj_t *args) {
// get and print unique id; 96 bits
{
byte *id = (byte*)MP_HAL_UNIQUE_ID_ADDRESS;
@@ -251,7 +251,7 @@ STATIC mp_uint_t machine_freq_calc_apb_div(mp_uint_t wanted_div) {
else if (wanted_div <= 8) { return RCC_HCLK_DIV8; }
else { return RCC_SYSCLK_DIV16; }
}
-STATIC mp_obj_t machine_freq(mp_uint_t n_args, const mp_obj_t *args) {
+STATIC mp_obj_t machine_freq(size_t n_args, const mp_obj_t *args) {
if (n_args == 0) {
// get
mp_obj_t tuple[4] = {