-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure rgb led in device tree and add skeleton functionality for a…
…lert processing Signed-off-by: Brian Bradley <brian.bradley.p@gmail.com>
- Loading branch information
Showing
7 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* @file alerts.h | ||
* @author Brian Bradley (brian.bradley.p@gmail.com) | ||
* @date 2022-01-26 | ||
* | ||
* @copyright Copyright (C) 2022 LION | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
*/ | ||
|
||
|
||
#ifndef __PYRRHA_BLUETOOTH_H | ||
#define __PYRRHA_BLUETOOTH_H | ||
|
||
#include <collector.h> | ||
|
||
/** | ||
* @brief Check for and generate any alerts necessary based on | ||
* sensor data | ||
* | ||
* @param data : sensor data used to match alert conditions | ||
* @retval 0 on success | ||
* @retval -errno otherwise | ||
*/ | ||
int generate_alerts(struct pyrrha_data * data); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* @file alerts.c | ||
* @author Brian Bradley (brian.bradley.p@gmail.com) | ||
* @brief | ||
* @date 2022-01-26 | ||
* | ||
* @copyright Copyright (C) 2022 LION | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
*/ | ||
|
||
#include <alerts.h> | ||
#include <logging/log.h> | ||
LOG_MODULE_REGISTER(alerts, CONFIG_PYRRHA_LOG_LEVEL); | ||
int generate_alerts(struct pyrrha_data * data){ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters