Beispiel #1
0
static BSP_START_TEXT_SECTION void mpc55xx_start_internal_ram(void)
{
  /* Initialize internal SRAM to zero (ECC) */
  bsp_start_zero(
    (char *) bsp_ram_start + MPC55XX_EARLY_STACK_SIZE,
    (size_t) bsp_ram_size - MPC55XX_EARLY_STACK_SIZE
  );
  #ifdef MPC55XX_HAS_SECOND_INTERNAL_RAM_AREA
    bsp_start_zero(&bsp_ram_1_start [0], (size_t) bsp_ram_1_size);
  #endif
}
Beispiel #2
0
static BSP_START_TEXT_SECTION void mpc55xx_start_internal_ram(void)
{
  #ifdef MPC55XX_NEEDS_LOW_LEVEL_INIT
    /* Initialize internal SRAM to zero (ECC) */
    bsp_start_zero(
      (char *) bsp_ram_start + MPC55XX_EARLY_STACK_SIZE,
      (size_t) bsp_ram_size - MPC55XX_EARLY_STACK_SIZE
    );
    #ifdef MPC55XX_HAS_SECOND_INTERNAL_RAM_AREA
      bsp_start_zero(&bsp_ram_1_start [0], (size_t) bsp_ram_1_size);
    #endif
  #else
    bsp_start_zero(
      bsp_section_sbss_begin,
      (size_t) bsp_section_sbss_size
    );
    bsp_start_zero(
      bsp_section_bss_begin,
      (size_t) bsp_section_bss_size
    );
  #endif
}