From fd5774fdebc04f92983e677f4bc210c75e8fcc94 Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Fri, 20 May 2016 17:19:54 +0200 Subject: Add code to reset FPGA using FPGA_PROGRAM_B and FPGA_INIT_B. Also add code to erase FPGA config memory and check status of FPGA_DONE. --- stm-led.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stm-led.h') diff --git a/stm-led.h b/stm-led.h index 7c20879..e2453e4 100644 --- a/stm-led.h +++ b/stm-led.h @@ -43,6 +43,8 @@ #define LED_GREEN GPIO_PIN_5 #define LED_BLUE GPIO_PIN_4 +#define LED_CLK_ENABLE __GPIOK_CLK_ENABLE + #define led_on(pin) HAL_GPIO_WritePin(LED_PORT,pin,SET) #define led_off(pin) HAL_GPIO_WritePin(LED_PORT,pin,RESET) #define led_toggle(pin) HAL_GPIO_TogglePin(LED_PORT,pin) -- cgit v1.2.3