summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorArdaFu <[email protected]>2018-06-04 13:34:45 +0800
committerArdaFu <[email protected]>2018-06-04 13:34:45 +0800
commit7a1f8ee1c48b1db88e2a349caf54c828d5513b65 (patch)
treede80ddeedf581e6085d9d89643af2e1942407512 /bsp
parent7d6b7dc3f068b2dac0d262a26967ab4a843e1d83 (diff)
[libcpu][arm][arm926] Using C header file to define stack and heap size.
Diffstat (limited to 'bsp')
-rw-r--r--bsp/asm9260t/platform/rt_low_level_gcc.inc31
-rw-r--r--bsp/asm9260t/platform/rt_low_level_init.h (renamed from bsp/asm9260t/platform/rt_low_level_iar.inc)8
-rw-r--r--bsp/asm9260t/platform/rt_low_level_keil.inc33
-rw-r--r--bsp/at91sam9260/platform/rt_low_level_gcc.inc31
-rw-r--r--bsp/at91sam9260/platform/rt_low_level_init.h (renamed from bsp/at91sam9260/platform/rt_low_level_iar.inc)8
-rw-r--r--bsp/at91sam9260/platform/rt_low_level_keil.inc32
6 files changed, 12 insertions, 131 deletions
diff --git a/bsp/asm9260t/platform/rt_low_level_gcc.inc b/bsp/asm9260t/platform/rt_low_level_gcc.inc
deleted file mode 100644
index c6edd3787c..0000000000
--- a/bsp/asm9260t/platform/rt_low_level_gcc.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * File : rt_low_level_gcc.inc
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Change Logs:
- * Date Author Notes
- * 2015-04-14 ArdaFu first version
- */
-
-/*--------- Stack size of CPU modes ------------------------------------------*/
-.equ UND_STK_SIZE, 2048
-.equ SVC_STK_SIZE, 4096
-.equ ABT_STK_SIZE, 2048
-.equ IRQ_STK_SIZE, 4096
-.equ FIQ_STK_SIZE, 4096
-.equ SYS_STK_SIZE, 2048
diff --git a/bsp/asm9260t/platform/rt_low_level_iar.inc b/bsp/asm9260t/platform/rt_low_level_init.h
index 3046253d07..86dcfb59dc 100644
--- a/bsp/asm9260t/platform/rt_low_level_iar.inc
+++ b/bsp/asm9260t/platform/rt_low_level_init.h
@@ -1,5 +1,5 @@
/*
- * File : rt_low_level_iar.inc
+ * File : rt_low_level_init.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
*
@@ -19,8 +19,10 @@
*
* Change Logs:
* Date Author Notes
- * 2015-04-14 ArdaFu first version
+ * 2018-06-04 ArdaFu first version
*/
+#ifndef __RT_LOW_LEVEL_INIT_H__
+#define __RT_LOW_LEVEL_INIT_H__
/*-------- Stack size of CPU modes -------------------------------------------*/
#define UND_STK_SIZE 512
@@ -29,3 +31,5 @@
#define IRQ_STK_SIZE 1024
#define FIQ_STK_SIZE 1024
#define SYS_STK_SIZE 512
+#define Heap_Size 512
+#endif
diff --git a/bsp/asm9260t/platform/rt_low_level_keil.inc b/bsp/asm9260t/platform/rt_low_level_keil.inc
deleted file mode 100644
index 7b3c8cfe99..0000000000
--- a/bsp/asm9260t/platform/rt_low_level_keil.inc
+++ /dev/null
@@ -1,33 +0,0 @@
-;/*
-; * File : rt_low_level_keil.inc
-; * This file is part of RT-Thread RTOS
-; * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
-; *
-; * This program is free software; you can redistribute it and/or modify
-; * it under the terms of the GNU General Public License as published by
-; * the Free Software Foundation; either version 2 of the License, or
-; * (at your option) any later version.
-; *
-; * This program is distributed in the hope that it will be useful,
-; * but WITHOUT ANY WARRANTY; without even the implied warranty of
-; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-; * GNU General Public License for more details.
-; *
-; * You should have received a copy of the GNU General Public License along
-; * with this program; if not, write to the Free Software Foundation, Inc.,
-; * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-; *
-; * Change Logs:
-; * Date Author Notes
-; * 2015-04-14 ArdaFu first version
-; */
-
-;/*-------- Stack size of CPU modes ------------------------------------------*/
-UND_STK_SIZE EQU 512
-SVC_STK_SIZE EQU 4096
-ABT_STK_SIZE EQU 512
-IRQ_STK_SIZE EQU 1024
-FIQ_STK_SIZE EQU 1024
-SYS_STK_SIZE EQU 512
-Heap_Size EQU 512
- END
diff --git a/bsp/at91sam9260/platform/rt_low_level_gcc.inc b/bsp/at91sam9260/platform/rt_low_level_gcc.inc
deleted file mode 100644
index c6edd3787c..0000000000
--- a/bsp/at91sam9260/platform/rt_low_level_gcc.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * File : rt_low_level_gcc.inc
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Change Logs:
- * Date Author Notes
- * 2015-04-14 ArdaFu first version
- */
-
-/*--------- Stack size of CPU modes ------------------------------------------*/
-.equ UND_STK_SIZE, 2048
-.equ SVC_STK_SIZE, 4096
-.equ ABT_STK_SIZE, 2048
-.equ IRQ_STK_SIZE, 4096
-.equ FIQ_STK_SIZE, 4096
-.equ SYS_STK_SIZE, 2048
diff --git a/bsp/at91sam9260/platform/rt_low_level_iar.inc b/bsp/at91sam9260/platform/rt_low_level_init.h
index 3046253d07..86dcfb59dc 100644
--- a/bsp/at91sam9260/platform/rt_low_level_iar.inc
+++ b/bsp/at91sam9260/platform/rt_low_level_init.h
@@ -1,5 +1,5 @@
/*
- * File : rt_low_level_iar.inc
+ * File : rt_low_level_init.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
*
@@ -19,8 +19,10 @@
*
* Change Logs:
* Date Author Notes
- * 2015-04-14 ArdaFu first version
+ * 2018-06-04 ArdaFu first version
*/
+#ifndef __RT_LOW_LEVEL_INIT_H__
+#define __RT_LOW_LEVEL_INIT_H__
/*-------- Stack size of CPU modes -------------------------------------------*/
#define UND_STK_SIZE 512
@@ -29,3 +31,5 @@
#define IRQ_STK_SIZE 1024
#define FIQ_STK_SIZE 1024
#define SYS_STK_SIZE 512
+#define Heap_Size 512
+#endif
diff --git a/bsp/at91sam9260/platform/rt_low_level_keil.inc b/bsp/at91sam9260/platform/rt_low_level_keil.inc
deleted file mode 100644
index c3cde15ded..0000000000
--- a/bsp/at91sam9260/platform/rt_low_level_keil.inc
+++ /dev/null
@@ -1,32 +0,0 @@
-;/*
-; * File : rt_low_level_keil.inc
-; * This file is part of RT-Thread RTOS
-; * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
-; *
-; * This program is free software; you can redistribute it and/or modify
-; * it under the terms of the GNU General Public License as published by
-; * the Free Software Foundation; either version 2 of the License, or
-; * (at your option) any later version.
-; *
-; * This program is distributed in the hope that it will be useful,
-; * but WITHOUT ANY WARRANTY; without even the implied warranty of
-; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-; * GNU General Public License for more details.
-; *
-; * You should have received a copy of the GNU General Public License along
-; * with this program; if not, write to the Free Software Foundation, Inc.,
-; * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-; *
-; * Change Logs:
-; * Date Author Notes
-; * 2015-04-14 ArdaFu first version
-; */
-
-;/*-------- Stack size of CPU modes ------------------------------------------*/
-UND_STK_SIZE EQU 512
-SVC_STK_SIZE EQU 4096
-ABT_STK_SIZE EQU 512
-IRQ_STK_SIZE EQU 1024
-FIQ_STK_SIZE EQU 1024
-SYS_STK_SIZE EQU 512
- END