mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
code into rx_common.c. Moved some GPS code into gps_common.c. Isolated some GPS functions into gps_common.c that were called from mw.c/loop(). moved gimbal defines into gimbal.h. Moved sound & light code into statusindicator.c
27 lines
584 B
C
27 lines
584 B
C
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#include "platform.h"
|
|
|
|
#include "drivers/system_common.h"
|
|
#include "drivers/gpio_common.h"
|
|
#include "drivers/light_led.h"
|
|
#include "drivers/sound_beeper.h"
|
|
|
|
#include "statusindicator.h"
|
|
|
|
void blinkLedAndSoundBeeper(uint8_t num, uint8_t wait, uint8_t repeat)
|
|
{
|
|
uint8_t i, r;
|
|
|
|
for (r = 0; r < repeat; r++) {
|
|
for (i = 0; i < num; i++) {
|
|
LED0_TOGGLE; // switch LEDPIN state
|
|
BEEP_ON;
|
|
delay(wait);
|
|
BEEP_OFF;
|
|
}
|
|
delay(60);
|
|
}
|
|
}
|