summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/timer.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-10-05 21:51:54 +0100
committerDamien George <damien.p.george@gmail.com>2014-10-05 21:51:54 +0100
commitd03c6816083c8ce8a35d278ede48c4089012b055 (patch)
tree649e2d3bf056a44109fb1f69bf1c855f3b11d067 /stmhal/timer.c
parentc4d0868df1117ad243ee8f7238985a822b0f775d (diff)
downloadmicropython-d03c6816083c8ce8a35d278ede48c4089012b055.tar.gz
micropython-d03c6816083c8ce8a35d278ede48c4089012b055.zip
stmhal: Use mp_uint_t where appropriate.
Found these by compiling stmhal with mp_uint_t of type uint32_t instead of unsigned int. This actually makes a difference to the code, but just a curiosity.
Diffstat (limited to 'stmhal/timer.c')
-rw-r--r--stmhal/timer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/stmhal/timer.c b/stmhal/timer.c
index f33fe5afb3..787a6dd981 100644
--- a/stmhal/timer.c
+++ b/stmhal/timer.c
@@ -1157,11 +1157,9 @@ STATIC void timer_handle_irq_channel(pyb_timer_obj_t *tim, uint8_t channel, mp_o
tim->callback = mp_const_none;
__HAL_TIM_DISABLE_IT(&tim->tim, irq_mask);
if (channel == 0) {
- printf("Uncaught exception in Timer(" UINT_FMT
- ") interrupt handler\n", tim->tim_id);
+ printf("uncaught exception in Timer(%u) interrupt handler\n", tim->tim_id);
} else {
- printf("Uncaught exception in Timer(" UINT_FMT ") channel "
- UINT_FMT " interrupt handler\n", tim->tim_id, channel);
+ printf("uncaught exception in Timer(%u) channel %u interrupt handler\n", tim->tim_id, channel);
}
mp_obj_print_exception((mp_obj_t)nlr.ret_val);
}