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-14
Revision:
1:b9d4b9b8884c
Parent:
0:1ebe7d222470
Child:
2:cbcf2695a4a1

File content as of revision 1:b9d4b9b8884c:


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

// This describes how many pixels to the right we start plotting porch
#define INITIAL_PORCH_HEIGHT    50

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


// End of file