]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/Renesas-Files/board/rskrx63n/sbrk.c
Update version number in readiness for V10.3.0 release. Sync SVN with reviewed releas...
[freertos] / FreeRTOS / Demo / RX600_RX63N-RSK_Renesas / RTOSDemo / Renesas-Files / board / rskrx63n / sbrk.c
diff --git a/FreeRTOS/Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/Renesas-Files/board/rskrx63n/sbrk.c b/FreeRTOS/Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/Renesas-Files/board/rskrx63n/sbrk.c
deleted file mode 100644 (file)
index ef29b31..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-/***********************************************************************************************************************\r
-* DISCLAIMER\r
-* This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No \r
-* other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all \r
-* applicable laws, including copyright laws. \r
-* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING\r
-* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, \r
-* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM \r
-* EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES \r
-* SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS \r
-* SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
-* Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of \r
-* this software. By using this software, you agree to the additional terms and conditions found by accessing the \r
-* following link:\r
-* http://www.renesas.com/disclaimer \r
-*\r
-* Copyright (C) 2012 Renesas Electronics Corporation. All rights reserved.    \r
-***********************************************************************************************************************/\r
-/***********************************************************************************************************************\r
-* File Name       : sbrk.c\r
-* Device(s)    : RX\r
-* Description  : Configures the MCU heap memory.  The size of the heap is defined by the macro HEAPSIZE below.\r
-***********************************************************************************************************************/\r
-/***********************************************************************************************************************\r
-* History : DD.MM.YYYY Version  Description\r
-*         : 26.10.2011 1.00     First Release\r
-*         : 12.03.2012 1.10     Heap size is now defined in r_bsp_config.h, not sbrk.h.\r
-***********************************************************************************************************************/\r
-/***********************************************************************************************************************\r
-Includes   <System Includes> , "Project Includes"\r
-***********************************************************************************************************************/\r
-/* Provides standard definitions used in this file */
-#include <stddef.h>
-/* Defines standard input/output functions used in this file */
-#include <stdio.h>
-/* Defines standard variable types used in this file */
-#include <stdint.h>\r
-/* Used for getting HEAP_BYTES macro. */\r
-#include "platform.h"
-\r
-/***********************************************************************************************************************\r
-Macro definitions\r
-***********************************************************************************************************************/\r
-
-/***********************************************************************************************************************
-Function Prototypes
-***********************************************************************************************************************/
-/* Memory allocation function prototype declaration */
-int8_t  *sbrk(size_t size);
-
-/***********************************************************************************************************************
-Global Variables
-***********************************************************************************************************************/
-//const size_t _sbrk_size=      /* Specifies the minimum unit of */
-/* the defined heap area */
-extern int8_t *_s1ptr;
-
-union HEAP_TYPE
-{
-    int32_t  dummy;             /* Dummy for 4-byte boundary */
-    int8_t heap[HEAP_BYTES];    /* Declaration of the area managed by sbrk*/
-};
-/* Declare memory heap area */
-static union HEAP_TYPE heap_area;
-/* End address allocated by sbrk    */
-static int8_t *brk=(int8_t *)&heap_area;
-
-/***********************************************************************************************************************\r
-* Function name: sbrk\r
-* Description  : This function configures MCU memory area allocation.\r
-* Arguments    : size - \r
-*                    assigned area size\r
-* Return value : Start address of allocated area (pass)\r
-*                -1 (failure)\r
-***********************************************************************************************************************/\r
-int8_t  *sbrk(size_t size)                      
-{
-    int8_t  *p;
-
-    if (brk+size > heap_area.heap+HEAP_BYTES)
-    {
-        /* Empty area size  */
-        p = (int8_t *)-1;
-    }
-    else
-    {
-        /* Area assignment */
-        p = brk;  
-
-        /* End address update */                           
-        brk += size;                           
-    }
-
-    /* Return result */
-    return p;
-}