Ignore:
Timestamp:
Nov 19, 2010, 10:59:52 AM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to Configuration Program v2:

  • Menu structure should now be complete.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Inc/Variables.inc

    r57 r59  
    22; Project name  :   XTIDE Univeral BIOS Configurator v2
    33; Created date  :   5.10.2010
    4 ; Last update   :   1.11.2010
     4; Last update   :   19.11.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Global variables for configuration program.
     
    2222    .wImageSize         resb    2           ; Size in bytes for BIOS image to be flashed (0=65536)
    2323    .wEepromSegment     resb    2           ; Segment where EEPROM is located
    24     .bPageSize          resb    1           ; EEPROM page size in bytes
     24    .bEepromType        resb    1           ; EEPROM type
     25    .bEepromPageSize    resb    1           ; EEPROM page size in bytes
    2526    .bSdpCommand        resb    1           ; Command for Software Data Protection
     27                        resb    1
    2628    .szOpenedFile       resb    FILENAME_BUFFER_SIZE
    2729    .flashVars          resb    FLASHVARS_size
     
    3436FLG_CFGVARS_CHECKSUM    EQU     (1<<3)  ; Generate checksum byte
    3537
    36 ; SDP command for CFGVARS.bSdpCommand
    37 CMD_SDP_NONE            EQU     (0<<1)  ; Do not use any SDP command
    38 CMD_SDP_ENABLE          EQU     (1<<1)  ; Flash with SDP enable command
    39 CMD_SDP_DISABLE         EQU     (2<<1)  ; Flash with SDP disable command
     38; EEPROM types
     39struc EEPROM_TYPE
     40    .2816_2kiB          resb    2
     41    .2832_4kiB          resb    2
     42    .2864_8kiB          resb    2
     43    .28128_16kiB        resb    2
     44    .28256_32kiB        resb    2
     45    .28512_64kiB        resb    2
     46endstruc
     47
     48; Software Data Protection commands
     49struc SDP_COMMAND
     50    .none               resb    2   ; Do not use any SDP command
     51    .enable             resb    2   ; Flash with SDP enable command
     52    .disable            resb    2   ; Flash with SDP disable command
     53endstruc
     54
     55; Page sizes
     56struc EEPROM_PAGE_SIZE
     57    .1_byte             resb    2
     58    .2_bytes            resb    2
     59    .4_bytes            resb    2
     60    .8_bytes            resb    2
     61    .16_bytes           resb    2
     62    .32_bytes           resb    2
     63    .64_bytes           resb    2
     64endstruc
    4065
    4166; Default CFGVARS settings
    4267DEFAULT_CFGVARS_FLAGS   EQU     FLG_CFGVARS_CHECKSUM
    4368DEFAULT_EEPROM_SEGMENT  EQU     0D000h
    44 DEFAULT_PAGE_SIZE       EQU     1
    45 DEFAULT_SDP_COMMAND     EQU     CMD_SDP_ENABLE
     69DEFAULT_PAGE_SIZE       EQU     EEPROM_PAGE_SIZE.1_byte
     70DEFAULT_SDP_COMMAND     EQU     SDP_COMMAND.enable
    4671
    4772
Note: See TracChangeset for help on using the changeset viewer.