URL
https://opencores.org/ocsvn/gecko3/gecko3/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 21 |
Rev 28 |
Line 859... |
Line 859... |
/* if we operate in REMOTE mode (means we pass the data to the FPGA)
|
/* if we operate in REMOTE mode (means we pass the data to the FPGA)
|
* continously check the DONE pin from the FPGA, to avoid that bad things
|
* continously check the DONE pin from the FPGA, to avoid that bad things
|
* happen when someone reconfigures the FPGA through JTAG */
|
* happen when someone reconfigures the FPGA through JTAG */
|
if(!fpga_done()) {
|
if(!fpga_done()) {
|
|
|
mdelay(40);
|
mdelay(50);
|
if(!fpga_done()) {
|
if(!fpga_done()) {
|
//set_led_ext(GREEN);
|
set_led_ext(ORANGE);
|
deactivate_gpif();
|
deactivate_gpif();
|
flLOCAL = GECKO3COM_LOCAL;
|
flLOCAL = GECKO3COM_LOCAL;
|
}
|
}
|
}
|
}
|
|
|
if(!(EP2468STAT & bmEP2EMPTY) && (GPIFTRIG & bmGPIF_IDLE)) {
|
//if(!(EP2468STAT & bmEP2EMPTY) && (GPIFTRIG & bmGPIF_IDLE)) {
|
flGPIF = 0;
|
/* check if there is a active IN transfer */
|
gpif_trigger_write();
|
/*if((GPIFREADYSTAT & bmWRX) != bmWRX) {
|
}
|
flGPIF = 0;
|
|
gpif_trigger_write();
|
|
}
|
|
}*/
|
|
|
|
/* check if this is a end of a IN transfer */
|
|
/*if(!(EP2468STAT & bmEP6EMPTY) && (GPIFTRIG & bmGPIF_IDLE)) {
|
|
INPKTEND = USB_TMC_EP_IN;
|
|
flGPIF |= bmGPIF_PENDING_DATA;
|
|
gpif_trigger_read();
|
|
}*/
|
}
|
}
|
|
|
/* if the LED flag is set to off, disable the external LED */
|
/* if the LED flag is set to off, disable the external LED */
|
if(flLED == LEDS_OFF) {
|
if(flLED == LEDS_OFF) {
|
set_led_ext(LEDS_OFF);
|
set_led_ext(LEDS_OFF);
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.