URL
https://opencores.org/ocsvn/gecko3/gecko3/trunk
Subversion Repositories gecko3
Compare Revisions
- This comparison shows the changes necessary to convert path
/gecko3
- from Rev 35 to Rev 36
- ↔ Reverse comparison
Rev 35 → Rev 36
/trunk/GECKO3COM/gecko3com-fw/firmware/include/firmware_version.h
36,6 → 36,6
#define _FIRMWARE_VERSION_H_ |
|
/** Version number of this firmware release */ |
#define FIRMWARE_VERSION "0.5rc3\n" |
#define FIRMWARE_VERSION "1.0\n" |
|
#endif |
/trunk/GECKO3COM/gecko3com-fw/firmware/src/spi_flash.c
79,7 → 79,7
enables &= bmSPI_CS_MASK; |
SPI_CS_PORT |= bmSPI_CS_MASK; //disable all chipselect signals |
SPI_CS_PORT &= ~enables; |
SPI_CS_OE |= enables; |
//SPI_CS_OE |= enables; |
SPI_CS_OE |= bmSPI_CS_MASK; |
} |
} |
86,12 → 86,19
|
// setup_enables (0); SPI_CS_PORT |= bmSPI_CS_MASK; \ \ |
/** disables all SPI devices and sets the SPI and SPI CS signals to tri-state */ |
#define disable_all() { \ |
/*#define disable_all() { \ |
setup_enables (0); \ |
SPI_CS_OE &= ~bmSPI_CS_MASK; \ |
SPI_OE &= ~bmSPI_OE_MASK; \ |
} |
}*/ |
|
#define disable_all() { \ |
SPI_CS_PORT |= bmSPI_CS_MASK; \ |
SPI_CS_OE &= ~bmSPI_CS_MASK; \ |
SPI_OE &= ~bmSPI_OE_MASK; \ |
} |
|
|
/** \brief Internal: Writes one byte to the SPI bus |
* |
* \param[in] data to write to the bus |
/trunk/GECKO3COM/gecko3com-fw/firmware/src/gecko3com_main.c
305,12 → 305,14
/* setup all stuff */ |
file_size = 0; |
|
/* select which file slot we have to delete */ |
/* select which file slot we have to use */ |
if(buffer[*offset] == '0') { |
flash_adress = start_adress_slot0(flash_dr); |
set_led_ext(GREEN); |
} |
else if(buffer[*offset] == '1'){ |
flash_adress = start_adress_slot1(flash_dr); |
set_led_ext(RED); |
} |
else { |
//print_err("slot\n"); |
371,6 → 373,7
/* if transfer finished, back to TMC idle state */ |
if(file_size <= 0) { |
file_size = 0; |
fpga_load_end(); |
usb_tmc_state = TMC_STATE_IDLE; |
} |
} |
406,9 → 409,11
slot = buffer[*offset]; |
if(slot == '0') { |
flash_adress = start_adress_slot0(flash_dr); |
set_led_ext(GREEN); |
} |
else if(slot == '1'){ |
flash_adress = start_adress_slot1(flash_dr); |
set_led_ext(RED); |
} |
else { |
//print_err("del\n"); |
988,7 → 993,7
/*------------------------------------------------------------------------*/ |
|
/* start to configure the FPGA from the configuration SPI flash */ |
/* read which configuration, the first or second, we should use */ |
/* read which configuration, the first or second, we should use: */ |
if(get_switch()){ |
led_color = GREEN; |
spi_base_adress = start_adress_slot0(flash_dr); |
/trunk/GECKO3COM/gecko3com-fw/gecko3com.iic
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream