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

msba2-common: Replace tabs by spaces

This commit is contained in:
Joakim Gebart 2015-05-10 08:56:32 +02:00
parent 684a7d5b42
commit b1bc737c0d
7 changed files with 94 additions and 94 deletions

View File

@ -1,12 +1,12 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
@ -56,7 +56,7 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Programs
Appendix: How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it

View File

@ -88,8 +88,8 @@ This software is only provided semi-static binary and source code form.
To use the semi-static binary, simply copy it to a location where you
can run it, and change the permissions if necessary:
cp lpc2k_pgm /usr/local/bin
chmod 755 /usr/local/bin/lpc2k_pgm
cp lpc2k_pgm /usr/local/bin
chmod 755 /usr/local/bin/lpc2k_pgm
The semi-static binary has all of the GTK and X11 libraries statically
linked into it, for maximum compatibility with all linux distributions.

View File

@ -3,8 +3,8 @@
$h = '[0-9A-Fa-f]';
$n = 1;
while (<stdin>) {
next unless /^\s*$h+:\s+($h{8})/;
$data[$n++] = "0x$1";
next unless /^\s*$h+:\s+($h{8})/;
$data[$n++] = "0x$1";
}
$data[0] = $n;
#$size = $ARGV[0];

View File

@ -3,44 +3,44 @@
@arg = split(/\s+/, `gtk-config --libs`);
%liblist = (
'libgtk.a', '/usr/lib/libgtk.a',
'libgdk.a', '/usr/lib/libgdk.a',
'libgmodule.a', '/usr/lib/libgmodule.a',
'libglib.a', '/usr/lib/libglib.a',
'libXi.a', '/usr/X11R6/lib/libXi.a',
'libXext.a', '/usr/X11R6/lib/libXext.a',
'libX11.a', '/usr/X11R6/lib/libX11.a'
'libgtk.a', '/usr/lib/libgtk.a',
'libgdk.a', '/usr/lib/libgdk.a',
'libgmodule.a', '/usr/lib/libgmodule.a',
'libglib.a', '/usr/lib/libglib.a',
'libXi.a', '/usr/X11R6/lib/libXi.a',
'libXext.a', '/usr/X11R6/lib/libXext.a',
'libX11.a', '/usr/X11R6/lib/libX11.a'
);
for ($i=0; $i<@arg; $i++) {
$a = $arg[$i];
next if $a eq '-rdynamic'; # always delete -rdynamic
if (($a eq '-lm') || ($a eq '-ldl') || ($a =~ /^-L/)) {
# a few things we never change
print "$a ";
next;
}
if ($a =~ /^-l/) {
$lib = $';
$lib = 'lib' . $lib . '.a';
# first check if it's in the known location
if (-f $liblist{$lib}) {
print $liblist{$lib}, " ";
next;
}
# resort to trying whereis to find it
@source = split(/\s+/, `whereis $lib`);
undef($static);
for ($j=0; $j<@source; $j++) {
$static = $source[$j] if $source[$j] =~ /$lib$/;
}
# if we found a static lib, use it.
if ($static) {
print $static, " ";
} else {
print $a, " ";
}
}
$a = $arg[$i];
next if $a eq '-rdynamic'; # always delete -rdynamic
if (($a eq '-lm') || ($a eq '-ldl') || ($a =~ /^-L/)) {
# a few things we never change
print "$a ";
next;
}
if ($a =~ /^-l/) {
$lib = $';
$lib = 'lib' . $lib . '.a';
# first check if it's in the known location
if (-f $liblist{$lib}) {
print $liblist{$lib}, " ";
next;
}
# resort to trying whereis to find it
@source = split(/\s+/, `whereis $lib`);
undef($static);
for ($j=0; $j<@source; $j++) {
$static = $source[$j] if $source[$j] =~ /$lib$/;
}
# if we found a static lib, use it.
if ($static) {
print $static, " ";
} else {
print $a, " ";
}
}
}
print "\n";

View File

@ -1,30 +1,30 @@
/* ARM code to run user code */
/* on the LPC23xx chips, the bootloader defaults to using the RC */
/* osciallator and it activates the PLL to create 14.78 MHz, even */
/* if there is no crystal. However, when we use try to jump to */
/* the user's code, their startup routine may (incorrectly) assume */
/* the PLL is not enabled and crash if it is. So in addition to */
/* remapping the reset vector to flash, we have to shut off the */
/* PLL so the user's startup code sees the same conditions as it */
/* would following a hard reset */
/* ARM code to run user code */
/* on the LPC23xx chips, the bootloader defaults to using the RC */
/* osciallator and it activates the PLL to create 14.78 MHz, even */
/* if there is no crystal. However, when we use try to jump to */
/* the user's code, their startup routine may (incorrectly) assume */
/* the PLL is not enabled and crash if it is. So in addition to */
/* remapping the reset vector to flash, we have to shut off the */
/* PLL so the user's startup code sees the same conditions as it */
/* would following a hard reset */
begin:
adr r0, const
ldr r1, [r0] /* r1 points to MEMMAP register */
ldr r2, [r0,#4] /* r2 points to PLLCON */
ldr r3, [r0,#8] /* r3 points to PLLFEED */
mov r0, #1
str r0, [r1] /* remap interrupt vectors to flash */
mov r4, #0xAA
mov r5, #0x55
str r0, [r2] /* disconnect the PLL, PLLCON = 1 */
str r4, [r3]
str r5, [r3]
mov r0, #0
str r0, [r2] /* disable the PLL, PLLCON = 0 */
str r4, [r3]
str r5, [r3]
mov pc, #0 /* and then jump to the user's code */
adr r0, const
ldr r1, [r0] /* r1 points to MEMMAP register */
ldr r2, [r0,#4] /* r2 points to PLLCON */
ldr r3, [r0,#8] /* r3 points to PLLFEED */
mov r0, #1
str r0, [r1] /* remap interrupt vectors to flash */
mov r4, #0xAA
mov r5, #0x55
str r0, [r2] /* disconnect the PLL, PLLCON = 1 */
str r4, [r3]
str r5, [r3]
mov r0, #0
str r0, [r2] /* disable the PLL, PLLCON = 0 */
str r4, [r3]
str r5, [r3]
mov pc, #0 /* and then jump to the user's code */
const:
.int 0xE01FC040 /* MEMMAP register */
.int 0xE01FC080 /* PLLCON */
.int 0xE01FC08C /* PLLFEED */
.int 0xE01FC040 /* MEMMAP register */
.int 0xE01FC080 /* PLLCON */
.int 0xE01FC08C /* PLLFEED */

View File

@ -1,11 +1,11 @@
/* ARM code to run user code */
/* This allows us to jump to the user's code in flash. We have */
/* to remap the flash before jumping. */
/* ARM code to run user code */
/* This allows us to jump to the user's code in flash. We have */
/* to remap the flash before jumping. */
begin:
adr r0, const
ldr r1, [r0] /* r1 points to MEMMAP register */
mov r0, #1
str r0, [r1] /* remap interrupt vectors to flash */
mov pc, #0 /* and then jump to the user's code */
adr r0, const
ldr r1, [r0] /* r1 points to MEMMAP register */
mov r0, #1
str r0, [r1] /* remap interrupt vectors to flash */
mov pc, #0 /* and then jump to the user's code */
const:
.int 0xE01FC040 /* MEMMAP register */
.int 0xE01FC040 /* MEMMAP register */

View File

@ -4,19 +4,19 @@ pid=`pgrep pseudoterm`
if test "$pid" = "" ; then
echo " Pseudoterm not running."
echo " Pseudoterm not running."
else
if test "$1" = "continue" ; then
kill -s USR1 $pid;
elif test "$1" = "pause" ; then
kill -s USR2 $pid ;
elif test "$1" = "stop" ; then
kill $pid ;
else
echo "Usage:";
echo "termctrl.sh continue/pause/stop";
fi
if test "$1" = "continue" ; then
kill -s USR1 $pid;
elif test "$1" = "pause" ; then
kill -s USR2 $pid ;
elif test "$1" = "stop" ; then
kill $pid ;
else
echo "Usage:";
echo "termctrl.sh continue/pause/stop";
fi
fi