-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflowrate_sensor.h.bak
More file actions
39 lines (28 loc) · 892 Bytes
/
flowrate_sensor.h.bak
File metadata and controls
39 lines (28 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* \addtogroup logging
* @{
*
* \author Lukas Kempf
* \brief Flowrate Sensor
*
*
*/
//*****************************************************************************
//
// flowrate_sensor.h - Flowrate Sensor
//
//*****************************************************************************
#ifndef FLOWRATE_SENSOR_H_
#define FLOWRATE_SENSOR_H_
/* std lib includes */
#include <stdio.h>
/* FreeRTOS includes. */
#define enFlowrateInterrupt() (PCB_PINSEL1 = (PCB_PINSEL1 & ~PCB_PINSEL1_P030_MASK) | PCB_PINSEL1_P030_EINT3)
#define disFlowrateIntuerrupt() (PCB_PINSEL1 = (PCB_PINSEL1 & ~PCB_PINSEL1_P030_MASK) | PCB_PINSEL1_P030_GPIO)
/* function declaration */
/* to calculate arithmetic median of power */
static volatile float flowCount = 0;
float get_FlowCount(void);
float incr_FlowCount(void);
float clr_FlowCount(void);
#endif