Version 1
Dependencies: mbed-os-retarget-segger-rtt SPI_MX25R
Diff: source/main.h
- Revision:
- 3:3e570f67f243
- Parent:
- 2:1f796b4529df
diff -r 1f796b4529df -r 3e570f67f243 source/main.h --- a/source/main.h Wed Aug 12 09:43:52 2020 +0000 +++ b/source/main.h Fri Sep 04 13:36:18 2020 +0000 @@ -4,14 +4,15 @@ */ // ==== PROTOTYPES ==== -void reset_leds(); void clear_memory(); void read_range(int max_data); void init(); +void flip_led(); void bluetooth(); void test_flash_1(); void test_flash_2(); +void test_flash_3(); void test_ADC(); bool error_check(int index, unsigned char data_in, unsigned char data_out); @@ -20,6 +21,7 @@ // ==== GLOBAL VARIABLES ==== bool nr_error[3]; int MAX_DATA; +int start_add; enum States { @@ -27,18 +29,17 @@ ST_P1, ST_P2, ST_P3, + ST_P4, ST_END }; States MS_State; // ==== INPUT / OUTPUT ==== -// Digital Outputs -//DigitalOut myled(LED_1); -DigitalOut myled(P0_13); +// Interrupt +InterruptIn button(P0_12); -// Digital Inputs -DigitalIn button(P0_12); -//DigitalIn button(BUTTON_2); +// Digital Outputs +DigitalOut myled(P0_13); // Analogs Inputs AnalogIn Mic_Amb(P0_2);