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

LaserMon-Main.h

Committer:
Damotclese
Date:
2019-06-10
Revision:
0:1ebe7d222470
Child:
1:b9d4b9b8884c

File content as of revision 0:1ebe7d222470:


// ----------------------------------------------------------------------
// 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