OpenCores
URL https://opencores.org/ocsvn/neorv32/neorv32/trunk

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [sw/] [bootloader/] [bootloader.c] - Diff between revs 66 and 69

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 66 Rev 69
Line 200... Line 200...
 
 
/**********************************************************************//**
/**********************************************************************//**
 * This global variable keeps the size of the available executable in bytes.
 * This global variable keeps the size of the available executable in bytes.
 * If =0 no executable is available (yet).
 * If =0 no executable is available (yet).
 **************************************************************************/
 **************************************************************************/
volatile uint32_t exe_available = 0;
volatile uint32_t exe_available;
 
 
 
 
/**********************************************************************//**
/**********************************************************************//**
 * Only set during executable fetch (required for capturing STORE BUS-TIMOUT exception).
 * Only set during executable fetch (required for capturing STORE BUS-TIMOUT exception).
 **************************************************************************/
 **************************************************************************/
volatile uint32_t getting_exe = 0;
volatile uint32_t getting_exe;
 
 
 
 
// Function prototypes
// Function prototypes
void __attribute__((__interrupt__)) bootloader_trap_handler(void);
void __attribute__((__interrupt__)) bootloader_trap_handler(void);
void print_help(void);
void print_help(void);
Line 685... Line 685...
    if (src == EXE_STREAM_UART) {
    if (src == EXE_STREAM_UART) {
      data.uint8[i] = (uint8_t)PRINT_GETC();
      data.uint8[i] = (uint8_t)PRINT_GETC();
    }
    }
#if (SPI_EN != 0)
#if (SPI_EN != 0)
    else {
    else {
      data.uint8[i] = spi_flash_read_byte(addr + i);
      data.uint8[i] = spi_flash_read_byte(addr + (3-i));
    }
    }
#endif
#endif
  }
  }
 
 
  return data.uint32;
  return data.uint32;
Line 807... Line 807...
 
 
  data.uint32 = wdata;
  data.uint32 = wdata;
 
 
  int i;
  int i;
  for (i=0; i<4; i++) {
  for (i=0; i<4; i++) {
    spi_flash_write_byte(addr + i, data.uint8[i]);
    spi_flash_write_byte(addr + (3-i), data.uint8[i]);
  }
  }
#endif
#endif
}
}
 
 
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.