|
IoT-MBBR (masterthesis)
Masterthesis upgrading a Moving Bed BioReactor with extra sensors and cloud connectivity.
|
The main file for the IoT-MBBR project. More...
#include <stdint.h>#include <stdbool.h>#include "em_device.h"#include "em_chip.h"#include "em_cmu.h"#include "em_gpio.h"#include "em_rtc.h"#include "pin_mapping.h"#include "debug_dbprint.h"#include "delay.h"#include "util.h"#include "util_string.h"#include "interrupt.h"#include "DS18B20.h"#include "adc.h"#include "datatypes.h"#include "serlcd.h"#include "BG96_at_driver.h"#include "VL53L1X.h"#include "SHT30.h"Go to the source code of this file.
Macros | |
| #define | SEND_STATUS_BOOT 1 |
| #define | SENDING_DATA 1 |
| #define | MAX_LENGTH_MM 300 |
| #define | WAKE_UP_PERIOD_S 3600 /* 360 = every 5 minutes */ |
Functions | |
| bool | checkBTNinterrupts (void) |
| Method to check if any interrupts are triggered by buttons. More... | |
| void | displayMeas (void) |
| Method to display the latest measurements on the LCD. More... | |
| int | main (void) |
| Main function. More... | |
| void | NMI_Handler (void) |
| NMI interrupt service routine. More... | |
| void | HardFault_Handler (void) |
| HardFault interrupt service routine. More... | |
| void | SVC_Handler (void) |
| SVC interrupt service routine. More... | |
| void | PendSV_Handler (void) |
| PendSV interrupt service routine. More... | |
Variables | |
| static MCU_State_t | MCUstate |
| MeasurementData_t | data |
The main file for the IoT-MBBR project.
float to float32_t, added ADC measurement functionality.Copyright (C) 2020 - Brecht Van Eeckhoudt
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 3 of the License, 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.
A copy of the GNU General Public License can be found in the LICENSE file along with this source code.
Some methods also use code obtained from examples from Silicon Labs' GitHub. These sections are licensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.
Definition in file main.c.
| #define MAX_LENGTH_MM 300 |
| #define SEND_STATUS_BOOT 1 |
| #define SENDING_DATA 1 |
| #define WAKE_UP_PERIOD_S 3600 /* 360 = every 5 minutes */ |
| bool checkBTNinterrupts | ( | void | ) |
Method to check if any interrupts are triggered by buttons.
true - A button interrupt was triggered. false - No button interrupt was triggered. Definition at line 97 of file main.c.
| void displayMeas | ( | void | ) |
Method to display the latest measurements on the LCD.
Definition at line 116 of file main.c.
| void HardFault_Handler | ( | void | ) |
| int main | ( | void | ) |
Main function.
Definition at line 193 of file main.c.
| void NMI_Handler | ( | void | ) |
| void PendSV_Handler | ( | void | ) |
| void SVC_Handler | ( | void | ) |
| MeasurementData_t data |
|
static |