button
Dependencies: BMI160 SDFileSystem USBDevice max32630fthr
Fork of MPSMAX by
main.h
00001 #include <string.h> 00002 #include "sc_types.h" 00003 #include "max32630fthr.h" 00004 #include "bmi160.h" 00005 #include <stdlib.h> 00006 00007 typedef struct{ 00008 int x[10]; 00009 int t[10]; 00010 int pos; 00011 }Function; 00012 00013 00014 00015 //extern objects here 00016 extern MAX32630FTHR pegasus; 00017 extern RawSerial pc; 00018 extern DigitalOut rLED; 00019 extern DigitalOut gLED; 00020 extern DigitalIn buttonIn; 00021 extern InterruptIn buttonInt; 00022 00023 // extern Maxim maxim; 00024 00025 extern I2C i2cBus; 00026 extern BMI160_I2C imu; 00027 00028 //extern variables here 00029 extern int functionFileNumber; 00030 extern Function ffunc; 00031 extern int functionActive; 00032 extern int functionPosition; 00033 extern time_t timealarm; 00034 00035 00036 #if (MBED_MAJOR_VERSION == 2) 00037 #include "SDFileSystem.h" 00038 #elif (MBED_MAJOR_VERSION == 5) 00039 #include "SDBlockDevice.h" 00040 #include "FATFileSystem.h" 00041 #endif 00042 00043 #if (MBED_MAJOR_VERSION == 2) 00044 extern SDFileSystem sd; // do,di,clk,cs 00045 #elif (MBED_MAJOR_VERSION == 5) 00046 //SDBlockDevice sd(D11, D12, D13, D10, 8000000); 00047 extern SDBlockDevice sd; // For MAX32630FTHR 00048 extern FATFileSystem fs; 00049 #endif 00050 00051 void PressedMenu(); 00052 void PressedBack(); 00053 void PressedUp(); 00054 void PressedDown(); 00055 void PressedReset(); 00056 void MPSButtons(); 00057 00058 00059 00060 /*Global variable*/ 00061 extern bool is_smactive; 00062 00063 /*function declaration*/ 00064 00065 extern void PrintStatus_Serial(int val );
Generated on Wed Jul 13 2022 14:08:26 by 1.7.2