-
Notifications
You must be signed in to change notification settings - Fork 0
/
warnings.c
38 lines (30 loc) · 1.08 KB
/
warnings.c
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
/* ========================================
*
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
*
* ========================================
*/
/*** INCLUDED COMPONENTS ***/
#include "warnings.h"
/*** VARIABLES ***/
/*** FUNCTIONS ***/
uint8 threshold_angle_comparison(uint32 variable, uint32 threshold){
if (variable >= threshold) return 1; // Compare the variable and threshold
else return 0; // values, then return 1 or 0
}
uint8 threshold_light_comparison(uint32 variable, uint32 threshold){
if (variable <= threshold) return 1;
else return 0;
}
// Test Function (Doesn't Work yet)
uint8 threshold_light_comparison_test(uint32 *variable, uint32 *threshold){
if (*variable <= *threshold) return 1;
else return 0;
}
/*** INTERRUPTS ***/
/* [] END OF FILE */