You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
666 B
34 lines
666 B
/*
|
|
* led.h
|
|
*
|
|
* Created on: 19/08/2015
|
|
* Author: Robert Fisk
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#ifndef INC_LED_H_
|
|
#define INC_LED_H_
|
|
|
|
|
|
#include "stm32f4xx_hal.h"
|
|
|
|
|
|
void LED_Init(void);
|
|
void LED_Fault_SetBlinkRate(uint16_t newBlinkRate);
|
|
void LED_DoBlinks(void);
|
|
|
|
|
|
|
|
#define STARTUP_FLASH_DELAY 500 //units = ticks = ms
|
|
|
|
//LEDs are on for BLINK_RATE ticks, then off for BLINK_RATE ticks
|
|
#define LED_FAST_BLINK_RATE 100
|
|
#define LED_SLOW_BLINK_RATE 500
|
|
|
|
|
|
|
|
#endif /* INC_LED_H_ */
|