Projet
Dependencies: BSP_DISCO_F746NG LCD_DISCO_F746NG SDFileSystem TS_DISCO_F746NG mbed
Fork of DISCO-F746NG_SDFileSystem by
main.h@5:e612763e2a3c, 2018-06-05 (annotated)
- Committer:
- 1536082
- Date:
- Tue Jun 05 20:01:30 2018 +0000
- Revision:
- 5:e612763e2a3c
- Parent:
- 4:cd879d39bf22
Projet;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
1536082 | 4:cd879d39bf22 | 1 | #ifndef MAINH |
1536082 | 4:cd879d39bf22 | 2 | #define MAINH |
1536082 | 4:cd879d39bf22 | 3 | |
1536082 | 4:cd879d39bf22 | 4 | // VS Code |
1536082 | 4:cd879d39bf22 | 5 | // #define uint8_t unsigned char |
1536082 | 4:cd879d39bf22 | 6 | // #define uint16_t unsigned int |
1536082 | 4:cd879d39bf22 | 7 | // #define uint32_t unsigned long |
1536082 | 4:cd879d39bf22 | 8 | // VS Code |
1536082 | 4:cd879d39bf22 | 9 | |
1536082 | 4:cd879d39bf22 | 10 | #include <stdio.h> |
1536082 | 4:cd879d39bf22 | 11 | #include <math.h> |
1536082 | 4:cd879d39bf22 | 12 | #include "mbed.h" |
1536082 | 4:cd879d39bf22 | 13 | #include "SDFileSystem.h" |
1536082 | 4:cd879d39bf22 | 14 | #include "LCD_DISCO_F746NG.h" |
1536082 | 4:cd879d39bf22 | 15 | #include "TS_DISCO_F746NG.h" |
1536082 | 4:cd879d39bf22 | 16 | |
1536082 | 4:cd879d39bf22 | 17 | struct STButton |
1536082 | 4:cd879d39bf22 | 18 | { |
1536082 | 4:cd879d39bf22 | 19 | uint16_t uiPosition[2]; |
1536082 | 4:cd879d39bf22 | 20 | uint16_t uiSize[2]; |
1536082 | 4:cd879d39bf22 | 21 | uint8_t ucState; |
1536082 | 4:cd879d39bf22 | 22 | void (*vFunction)(void); |
1536082 | 4:cd879d39bf22 | 23 | }; |
1536082 | 4:cd879d39bf22 | 24 | |
1536082 | 4:cd879d39bf22 | 25 | uint8_t ucTest(void); |
1536082 | 4:cd879d39bf22 | 26 | |
1536082 | 4:cd879d39bf22 | 27 | uint8_t ucFPGASerialConfiguration(char *cFileName); |
1536082 | 4:cd879d39bf22 | 28 | |
1536082 | 4:cd879d39bf22 | 29 | void vDisplayImage(char *cFileName, uint16_t uiX, uint16_t uiY); |
1536082 | 4:cd879d39bf22 | 30 | |
1536082 | 4:cd879d39bf22 | 31 | void vCheckButtons(STButton *stButtons, uint8_t ucCount); |
1536082 | 4:cd879d39bf22 | 32 | |
1536082 | 4:cd879d39bf22 | 33 | void vRun(void); |
1536082 | 4:cd879d39bf22 | 34 | void vMode(void); |
1536082 | 4:cd879d39bf22 | 35 | void vTrigger(void); |
1536082 | 4:cd879d39bf22 | 36 | void vSave(void); |
1536082 | 4:cd879d39bf22 | 37 | void vPrint(void); |
1536082 | 4:cd879d39bf22 | 38 | |
1536082 | 4:cd879d39bf22 | 39 | #endif |