Cleanup of sys and its macro

This commit is contained in:
NIIBE Yutaka
2016-05-31 11:49:01 +09:00
parent 421fd8019b
commit 3a4e1f2bd5
29 changed files with 161 additions and 904 deletions

View File

@@ -5,16 +5,16 @@ PROJECT = hacker-emblem
CHOPSTX = ..
LDSCRIPT= hacker-emblem.ld
CSRC = sys.c hh.c
CSRC = reset.c hh.c
# Hacker Emblem and "Happy Hacking!" demonstration
# CSRC = sys.c hh.c
# CSRC = reset.c hh.c
# Debian logo demonstration
# CSRC = sys.c debian-logo.c
# CSRC = reset.c debian-logo.c
# "Hiroshi & Ayumi with Tulip" demonstration
# CSRC = sys.c hiroshi-ayumi.c
# CSRC = reset.c hiroshi-ayumi.c
###################################
CROSS = arm-none-eabi-
@@ -36,7 +36,7 @@ board.h:
@echo Please make a symbolic link \'board.h\' to a file in ../board;
@exit 1
sys.c: board.h
reset.c: board.h
distclean: clean
rm -f board.h

View File

@@ -1,11 +1,11 @@
/*
* ST32F0 memory setup.
*/
__main_stack_size__ = 0x0100; /* Exception handlers */
__process0_stack_size__ = 0x0100; /* Main program */
__process1_stack_size__ = 0x0100; /* first thread program */
__process2_stack_size__ = 0x0100; /* second thread program */
__process3_stack_size__ = 0x0100; /* third thread program */
__main_stack_size__ = 0x0100; /* Idle+Exception handlers */
__process0_stack_size__ = 0x0100; /* Main program */
__process1_stack_size__ = 0x0100; /* first thread program */
__process2_stack_size__ = 0x0100; /* second thread program */
__process3_stack_size__ = 0x0100; /* third thread program */
MEMORY
{

View File

@@ -1,5 +1,5 @@
/*
* sys.c - No system routines, but only RESET handler for STM32F030.
* reset.c - No system routines, but only RESET handler for STM32F030.
*
* Copyright (C) 2015 Flying Stone Technology
* Author: NIIBE Yutaka <gniibe@fsij.org>
@@ -70,7 +70,7 @@ typedef void (*handler)(void);
extern uint8_t __main_stack_end__;
handler vector[] __attribute__ ((section(".vectors"))) = {
(handler)&__main_stack_end__,
(handler)(&__main_stack_end__ - 32),
reset,
nmi, /* nmi */
hard_fault, /* hard fault */