summaryrefslogtreecommitdiff
path: root/teensy/teensy_hal.c
diff options
context:
space:
mode:
authorJavier Candeira <javier@candeira.com>2017-08-09 14:40:45 +1000
committerJavier Candeira <javier@candeira.com>2017-08-13 22:52:33 +1000
commit35a1fea90b2cae9d5cc8e9eab62ba4c67e8786db (patch)
tree26616de189a9154309287846bf76fb1cdab8ce51 /teensy/teensy_hal.c
parentb6a328956467339f568b19d9192fbbfdfa47a572 (diff)
all: Raise exceptions via mp_raise_XXX
- Changed: ValueError, TypeError, NotImplementedError - OSError invocations unchanged, because the corresponding utility function takes ints, not strings like the long form invocation. - OverflowError, IndexError and RuntimeError etc. not changed for now until we decide whether to add new utility functions.
Diffstat (limited to 'teensy/teensy_hal.c')
-rw-r--r--teensy/teensy_hal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/teensy/teensy_hal.c b/teensy/teensy_hal.c
index 4fcf99922..439e3380d 100644
--- a/teensy/teensy_hal.c
+++ b/teensy/teensy_hal.c
@@ -61,5 +61,5 @@ void mp_hal_gpio_clock_enable(GPIO_TypeDef *gpio) {
}
void extint_register_pin(const void *pin, uint32_t mode, int hard_irq, mp_obj_t callback_obj) {
- mp_not_implemented(NULL);
+ mp_raise_NotImplementedError(NULL);
}