Skip to content

Commit

Permalink
Merge pull request #25 from COVID-19-electronic-health-system/devel
Browse files Browse the repository at this point in the history
Added new documentation format
  • Loading branch information
ngiangre authored Aug 8, 2020
2 parents e245658 + 7defde3 commit d1de261
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
</div>

![panflute tests](https://github.com/COVID-19-electronic-health-system/PanFLUte/workflows/panflute%20tests/badge.svg)
[![Netlify Status](https://api.netlify.com/api/v1/badges/1d36eea6-7947-41e3-bcce-38e6f9446aee/deploy-status)](https://app.netlify.com/sites/panflute-docs/deploys)

PanFLUte (Pneumonia analyzing node for FLU to everyone) is an open source spirometer.
It is used to measures the amount of air you're able to breathe in and out.
Expand All @@ -15,3 +16,13 @@ It is used to measures the amount of air you're able to breathe in and out.
2. ```docker build -t panflute:1.0 .```
3. ```docker run --rm -it --privileged -v /dev/bus/usb:/dev/bus/usb panflute:1.0```
4. You should now be greeted with a terminal environment, which has all the necessary libraries needed to compile and flash the firmware.

Directory Structure
------
.
├── board # Code that runs on the ATtiny841
└── doc # Doxygen documentation folder

## Licensing

This repository and all contributions herein are [licensed under the MIT license](./LICENSE). Please note that, by contributing to this repository, whether via commit, pull request, issue, comment, or in any other fashion, you are explicitly agreeing that all of your contributions will fall under the same permissive license.
10 changes: 3 additions & 7 deletions board/adc/adc.c
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
#include "../driver/adc.h"




/** @defgroup group1 TinyADC Library
* This is a minimal ADC Library with init and read functions only.
* @{
*/

/** @brief class C1 in group 1 */

/** Enables ADC. */
void adcInit(void) {
/// Enables ADC.
ADCSRA = (1 << ADEN) | (1 << ADSC);
}

/** Returns calibrated adc values.*/
float adcRead(void) {
/// Returns calibrated adc values.
float sum = 0; // Sum of averaged adc values
int adc_values_arr[N];
for (int i = 0; i < N; i++) {
Expand All @@ -30,3 +25,4 @@ float adcRead(void) {
return calibrated_adc_value;
}

/** @} */ // end of group1
2 changes: 1 addition & 1 deletion board/mpx5100/mpx5100.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


/** @defgroup group2 MPX5100 Library
* This is library interfaces with the mpx5100.
* This library interfaces with the MPX5100.
* @{
*/

Expand Down
3 changes: 2 additions & 1 deletion board/usart/usart.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ int print(char c, FILE *stream) {
UDR0 = c;
return 0;
}


/** @} */ // end of group3

0 comments on commit d1de261

Please sign in to comment.