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

Committer:
Damotclese
Date:
Mon Jun 10 17:10:01 2019 +0000
Revision:
0:1ebe7d222470
Child:
1:b9d4b9b8884c
Checking in the project for safe keeping;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Damotclese 0:1ebe7d222470 1
Damotclese 0:1ebe7d222470 2 // ----------------------------------------------------------------------
Damotclese 0:1ebe7d222470 3 // LaserMon-Main.h
Damotclese 0:1ebe7d222470 4 //
Damotclese 0:1ebe7d222470 5 // Fredric L. Rice, June 2019
Damotclese 0:1ebe7d222470 6 //
Damotclese 0:1ebe7d222470 7 // ----------------------------------------------------------------------
Damotclese 0:1ebe7d222470 8
Damotclese 0:1ebe7d222470 9 #define TEST_SIGNAL_OUT PA_5
Damotclese 0:1ebe7d222470 10 #define LASER_SCAN_IN PC_1
Damotclese 0:1ebe7d222470 11
Damotclese 0:1ebe7d222470 12 // ----------------------------------------------------------------------
Damotclese 0:1ebe7d222470 13 // Defined constants and MACROs
Damotclese 0:1ebe7d222470 14 //
Damotclese 0:1ebe7d222470 15 // ----------------------------------------------------------------------
Damotclese 0:1ebe7d222470 16
Damotclese 0:1ebe7d222470 17 // For some purposes we may want to know the dimentions of the screen
Damotclese 0:1ebe7d222470 18 #define LCD_WIDTH 240
Damotclese 0:1ebe7d222470 19 #define LCD_HEIGHT 320
Damotclese 0:1ebe7d222470 20
Damotclese 0:1ebe7d222470 21 // ----------------------------------------------------------------------
Damotclese 0:1ebe7d222470 22 // Describe data which we export to all other modules
Damotclese 0:1ebe7d222470 23 //
Damotclese 0:1ebe7d222470 24 // ----------------------------------------------------------------------
Damotclese 0:1ebe7d222470 25
Damotclese 0:1ebe7d222470 26 // We may be accessing the LCD
Damotclese 0:1ebe7d222470 27 extern LCD_DISCO_F429ZI st_lcd;
Damotclese 0:1ebe7d222470 28
Damotclese 0:1ebe7d222470 29 // We may be accessing the touch screen
Damotclese 0:1ebe7d222470 30 extern TS_DISCO_F429ZI st_touchScreen;
Damotclese 0:1ebe7d222470 31
Damotclese 0:1ebe7d222470 32 // ----------------------------------------------------------------------
Damotclese 0:1ebe7d222470 33 // Function prototypes that Main will export globally
Damotclese 0:1ebe7d222470 34 //
Damotclese 0:1ebe7d222470 35 // ----------------------------------------------------------------------
Damotclese 0:1ebe7d222470 36
Damotclese 0:1ebe7d222470 37 extern void accurate_wait_ms(uint16_t u16_thisManyMilliseconds);
Damotclese 0:1ebe7d222470 38
Damotclese 0:1ebe7d222470 39 // End of file
Damotclese 0:1ebe7d222470 40
Damotclese 0:1ebe7d222470 41