aboutsummaryrefslogtreecommitdiff
path: root/01-system-clock/include/spin.h
blob: a23d25be246771cf3406402b36f928884ab58bb2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef H__SPIN_
#define H__SPIN_

#include <stdint.h>

/*
 * Flash a code on the status LED.
 *
 * The flash codes a binary from MSB to LSB. A long flash is a 1, a short flash
 * is a 0. Each independent flashing is succeced by a break of 4 times that
 * of a long flash.
 */
void spin(uint32_t base_delay, uint8_t code);

#endif /* H__SPIN_ */