diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2016-05-20 17:19:54 +0200 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2016-05-20 17:19:54 +0200 |
commit | fd5774fdebc04f92983e677f4bc210c75e8fcc94 (patch) | |
tree | 5732b6439ba2a2b61ae0375dc3e3375767c1293d /stm-led.h | |
parent | a45288fc7e0e622615202c41304d34a510fb4e85 (diff) |
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.
Diffstat (limited to 'stm-led.h')
-rw-r--r-- | stm-led.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |