HSP Platform firmware evaluating ECG data and hearth rate over PPG data.

Dependencies:   max32630fthr Adafruit_FeatherOLED USBDevice

Committer:
phonemacro
Date:
Thu Mar 25 21:59:17 2021 +0000
Revision:
4:682a4ebb995a
Parent:
1:f60eafbf009a
fix compile errors from mbed OS changes.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gmehmet 1:f60eafbf009a 1 diff --git a/targets/TARGET_Maxim/TARGET_MAX32630/gpio_irq_api.c b/targets/TARGET_Maxim/TARGET_MAX32630/gpio_irq_api.c
gmehmet 1:f60eafbf009a 2 index 8a9e7bb42..e5fcb4b6f 100644
gmehmet 1:f60eafbf009a 3 --- a/targets/TARGET_Maxim/TARGET_MAX32630/gpio_irq_api.c
gmehmet 1:f60eafbf009a 4 +++ b/targets/TARGET_Maxim/TARGET_MAX32630/gpio_irq_api.c
gmehmet 1:f60eafbf009a 5 @@ -118,7 +118,12 @@ int gpio_irq_init(gpio_irq_t *obj, PinName name, gpio_irq_handler handler, uint3
gmehmet 1:f60eafbf009a 6
gmehmet 1:f60eafbf009a 7 /* enable the requested interrupt */
gmehmet 1:f60eafbf009a 8 MXC_GPIO->inten[port] |= (1 << pin);
gmehmet 1:f60eafbf009a 9 - NVIC_EnableIRQ((IRQn_Type)((uint32_t)GPIO_P0_IRQn + port));
gmehmet 1:f60eafbf009a 10 + if (port >= 7) {
gmehmet 1:f60eafbf009a 11 + NVIC_EnableIRQ((IRQn_Type)((uint32_t)GPIO_P7_IRQn + (port - 7)));
gmehmet 1:f60eafbf009a 12 + } else {
gmehmet 1:f60eafbf009a 13 + NVIC_EnableIRQ((IRQn_Type)((uint32_t)GPIO_P0_IRQn + port));
gmehmet 1:f60eafbf009a 14 + }
gmehmet 1:f60eafbf009a 15 +
gmehmet 1:f60eafbf009a 16
gmehmet 1:f60eafbf009a 17 return 0;
gmehmet 1:f60eafbf009a 18 }