/* flash_ram_data.c Flash Ram Menu Written by: Rod Klein Date: July 21, 1998 Rev. History: */ /* Include Files */ #include #include "VISION.h" #include "tracker.h" #include "functions.h" /* Start program */ void flash_ram_data() { unsigned char option_type; unsigned int fl_data; unsigned int option; unsigned int status; unsigned int bytes; unsigned int data; data = 0; bytes = 0; status = 0; option = 0; fl_data = 0; option_type = ' '; status = VISIONread( finder, CONTROL, WORD_LEN, &bytes, &data); if( status != 0 ) perror(" flash_ram_data: VISIONread"); if( (data & 0x00004000) == 0) { printf("\n **WARNING** Enable VMEbus download bit not set\n"); return; } while( 1) { printf("\n\n %s Flash RAM Data Register Access\n\n"); printf(" 1. Read Flash RAM Data\n"); printf(" 2. Read Flash RAM Data - Multiple Addresses\n"); printf(" 3. Write Flash RAM Register\n"); printf(" 4. Load & Verify Flash RAM with Sequential Data\n"); printf(" 5. Download & Verify Intel Hex-Record into Flash RAM\n"); printf(" 6. Download & Verify Motorola S-Record into Flash RAM\n"); printf(" 7. Erase Flash RAM\n"); printf(" 8. Sector Erase Flash RAM\n\n"); printf(" Q. Exit Menu\n\n"); prompt_option( &option_type, &option); if( option_type == 'Q' ) return; else flash_ram_select( option, &fl_data); } }