diff options
Diffstat (limited to 'testhal/STM32/STM32F7xx/USB_CDC')
-rw-r--r-- | testhal/STM32/STM32F7xx/USB_CDC/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testhal/STM32/STM32F7xx/USB_CDC/main.c b/testhal/STM32/STM32F7xx/USB_CDC/main.c index 92894ee5a..d992623c0 100644 --- a/testhal/STM32/STM32F7xx/USB_CDC/main.c +++ b/testhal/STM32/STM32F7xx/USB_CDC/main.c @@ -147,9 +147,9 @@ static THD_FUNCTION(Thread1, arg) { systime_t time;
time = serusbcfg.usbp->state == USB_ACTIVE ? 250 : 500;
- palClearPad(GPIOI, GPIOI_ARD_D13);
+ palClearLine(LINE_ARD_D13);
chThdSleepMilliseconds(time);
- palSetPad(GPIOI, GPIOI_ARD_D13);
+ palSetLine(LINE_ARD_D13);
chThdSleepMilliseconds(time);
}
}
@@ -179,8 +179,8 @@ int main(void) { /*
* GPIOI1 is programmed as output (board LED).
*/
- palClearPad(GPIOI, GPIOI_ARD_D13);
- palSetPadMode(GPIOI, GPIOI_ARD_D13, PAL_MODE_OUTPUT_PUSHPULL);
+ palClearLine(LINE_ARD_D13);
+ palSetLineMode(LINE_ARD_D13, PAL_MODE_OUTPUT_PUSHPULL);
/*
* Activates the USB driver and then the USB bus pull-up on D+.
|