From 71c9cfb028d423bf4760d66b1afe8951335fa5da Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 30 Aug 2017 10:59:58 +1000 Subject: all: Convert remaining "mp_uint_t n_args" to "size_t n_args". This is to have consistency across the whole repository. --- stmhal/modmachine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stmhal/modmachine.c') 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] = { -- cgit v1.2.3