2020-09-14 20:32:07 +00:00
|
|
|
/*
|
|
|
|
* blue.h
|
|
|
|
* quack
|
|
|
|
*
|
|
|
|
* Created by Michel DEPEIGE on 13/09/2020.
|
|
|
|
* Copyright (c) 2020 Michel DEPEIGE.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program (see the file COPYING); if not, write to the
|
|
|
|
* Free Software Foundation, Inc.,
|
|
|
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BLUE_H
|
|
|
|
#define BLUE_H
|
|
|
|
|
2020-12-18 10:08:52 +00:00
|
|
|
/* defines */
|
2020-12-30 18:51:03 +00:00
|
|
|
#define BLUE_SCAN_DURATION 8
|
2020-12-18 10:08:52 +00:00
|
|
|
|
2020-09-14 20:32:07 +00:00
|
|
|
/* prototypes */
|
|
|
|
void blue_init(void);
|
2020-12-30 18:51:03 +00:00
|
|
|
void blue_close(esp_hidh_event_data_t *p);
|
2020-12-21 22:06:33 +00:00
|
|
|
void blue_open(esp_hidh_event_data_t *p);
|
2020-12-18 10:08:52 +00:00
|
|
|
void blue_scan(void *pvParameters);
|
2020-09-14 20:32:07 +00:00
|
|
|
|
2020-12-16 20:00:00 +00:00
|
|
|
/* global variables for tasks handles */
|
|
|
|
extern TaskHandle_t t_green, t_blue, t_yellow, t_red;
|
2020-09-14 20:32:07 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|