static char beep_fifo_buf[16];
volatile uint8_t beep_mask = 1; /* init beep */
+static struct callout beep_timer;
+
union beep_t {
uint8_t u08;
struct {
void beep_init(void)
{
cirbuf_init(&beep_fifo, beep_fifo_buf, 0, sizeof(beep_fifo_buf));
- callout_init(&xbeeboard.beep_timer, beep_cb, NULL, BEEP_PRIO);
- callout_schedule(&xbeeboard.intr_cm, &xbeeboard.beep_timer,
- BEEP_PERIOD_MS);
+ callout_init(&beep_timer, beep_cb, NULL, BEEP_PRIO);
+ callout_schedule(&xbeeboard.intr_cm, &beep_timer, BEEP_PERIOD_MS);
}