Generates a test signal on an AnalogOut and monitors a signal on an AnalogIn, plotting the test signal or the actual signal depending on a conditional compile. The wait() and wait_ms() library calls for this board are highly inaccurate so a new function is provided to wait for X number of milliseconds -- which is not very accurate.
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI mbed-os BSP_DISCO_F429ZI
Diff: LaserMon-Main.h
- Revision:
- 0:1ebe7d222470
- Child:
- 1:b9d4b9b8884c
diff -r 000000000000 -r 1ebe7d222470 LaserMon-Main.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LaserMon-Main.h Mon Jun 10 17:10:01 2019 +0000 @@ -0,0 +1,41 @@ + +// ---------------------------------------------------------------------- +// LaserMon-Main.h +// +// Fredric L. Rice, June 2019 +// +// ---------------------------------------------------------------------- + +#define TEST_SIGNAL_OUT PA_5 +#define LASER_SCAN_IN PC_1 + +// ---------------------------------------------------------------------- +// Defined constants and MACROs +// +// ---------------------------------------------------------------------- + +// For some purposes we may want to know the dimentions of the screen +#define LCD_WIDTH 240 +#define LCD_HEIGHT 320 + +// ---------------------------------------------------------------------- +// Describe data which we export to all other modules +// +// ---------------------------------------------------------------------- + + // We may be accessing the LCD + extern LCD_DISCO_F429ZI st_lcd; + + // We may be accessing the touch screen + extern TS_DISCO_F429ZI st_touchScreen; + +// ---------------------------------------------------------------------- +// Function prototypes that Main will export globally +// +// ---------------------------------------------------------------------- + +extern void accurate_wait_ms(uint16_t u16_thisManyMilliseconds); + +// End of file + + \ No newline at end of file