1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

* fixed typo in readme

* fixed documentation in irq.h
* moved tools folder to dist
* added check for disk space in build_gnuarm script
* fixed gcc check in this script, too
This commit is contained in:
Oleg Hahm 2013-02-27 20:22:19 +01:00
parent d31ee82518
commit 5aa00a4f8b
29 changed files with 23 additions and 10 deletions

View File

@ -2,7 +2,7 @@ RIOT OS
=======
RIOT - The revolutionary IoT OS!
RIOT OS is an operating system for Internet of Things (IoT) devices. It is basesed on a microkernel and designed for
RIOT OS is an operating system for Internet of Things (IoT) devices. It is based on a microkernel and designed for
* energy efficiency
* hardware independent development
* a high degree of modularity

View File

@ -14,17 +14,17 @@
* @file
* @brief IRQ driver interface
*
* @author Freie Universität Berlin, Computer Systems & Telematics, FeuerWhere project
* @author Michael Baar <michael.baar@fu-berlin.de>
* @version $Revision: 1410 $
* @author Freie Universität Berlin, Computer Systems & Telematics
*
* @note $Id$
*/
#include <stdbool.h>
/**
* @brief This function sets the IRQ disable bit in the status register
*
* @note This function should be used in favour of dINT().
*
* @return previous value of status register
*/
unsigned disableIRQ(void);
@ -33,7 +33,6 @@ unsigned disableIRQ(void);
* @brief This function clears the IRQ disable bit in the status register
* @return previous value of status register
*
* @example irq-driver-example.c
* @see restoreIRQ
*/
unsigned enableIRQ(void);
@ -42,9 +41,9 @@ unsigned enableIRQ(void);
* @brief This function restores the IRQ disable bit in the status register
* to the value contained within passed state
* @param state state to restore
* @return previous state
*
* @example irq-driver-example.c
* @note This function should be used in favour of eINT().
*
* @see disableIRQ
*/
void restoreIRQ(unsigned state);

View File

@ -4,7 +4,8 @@
PREFIX=${HOME}/gnuarm
# directory to download source files and store intermediates
GNUARM_BUILDDIR=${GNUARM_BUILDDIR:-"/tmp/gnuarm-${USER}"}
TMP_DIR=/var/tmp
GNUARM_BUILDDIR=${GNUARM_BUILDDIR:-"${TMP_DIR}/gnuarm-${USER}"}
GCC_VER=4.7.2
GCC_MD5=cc308a0891e778cfda7a151ab8a6e762
@ -29,7 +30,10 @@ DOWNLOADER_OPTS="-nv -c"
#
FILES=.
HOST_GCC_VER=`gcc --version | awk '{ if (NR == 1) { print $4 } }'`
HOST_GCC_VER=`gcc --version | awk '/gcc/{print $NF}'`
SPACE_NEEDED=2641052
FREETMP=`df ${TMP_DIR} | awk '{ if (NR == 2) print $4}'`
build_binutils() {
echo "Building binutils..."
@ -138,8 +142,18 @@ download_file() {
echo "${3} ${2}" | md5sum -c -
}
check_space() {
echo "Checkign disk space in ${TMP_DIR}"
if [ $FREETMP -lt $SPACE_NEEDED ]
then
echo "Not enough available space in ${TMP_DIR}. Minimum ${SPACE_NEEDED} free bytes required."
exit 1
fi
}
build_all() {
echo "Starting in ${GNUARM_BUILDDIR}. Installing to ${PREFIX}."
check_space &&
download &&
build_binutils &&
extract_newlib &&