summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-11-30 16:01:51 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-11-30 16:01:51 +0000
commit05c18861dd58a08076d0fa97f72cb88c4a5698e5 (patch)
tree44213053eba92e81452144bb67dba9a6f62841a9 /cpukit
parentWhitespace removal. (diff)
downloadrtems-05c18861dd58a08076d0fa97f72cb88c4a5698e5.tar.bz2
Whitespace removal.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libnetworking/netinet/in_cksum.c2
-rw-r--r--cpukit/libnetworking/netinet/in_cksum_arm.h10
-rw-r--r--cpukit/libnetworking/rtems/bsdnet/_types.h2
-rw-r--r--cpukit/libnetworking/rtems/bsdnet/servers.h2
-rw-r--r--cpukit/libnetworking/rtems/dhcp.h2
-rw-r--r--cpukit/libnetworking/rtems/rtems_bsdnet.h8
-rw-r--r--cpukit/libnetworking/rtems/rtems_dhcp.c92
-rw-r--r--cpukit/libnetworking/rtems/rtems_dhcp_failsafe.c4
-rw-r--r--cpukit/libnetworking/rtems/rtems_dhcp_failsafe.h2
-rw-r--r--cpukit/libnetworking/rtems/rtems_malloc_mbuf.c2
-rw-r--r--cpukit/libnetworking/rtems/rtems_mii_ioctl.c20
-rw-r--r--cpukit/libnetworking/rtems/rtems_mii_ioctl.h22
-rw-r--r--cpukit/libnetworking/rtems/rtems_mii_ioctl_kern.c20
-rw-r--r--cpukit/libnetworking/rtems/rtems_socketpair.c6
-rw-r--r--cpukit/pppd/auth.c12
-rw-r--r--cpukit/pppd/cbcp.c12
-rw-r--r--cpukit/pppd/ccp.c4
-rw-r--r--cpukit/pppd/chap.c34
-rw-r--r--cpukit/pppd/chat.c16
-rw-r--r--cpukit/pppd/fsm.c12
-rw-r--r--cpukit/pppd/ipcp.c8
-rw-r--r--cpukit/pppd/ipcp.h2
-rw-r--r--cpukit/pppd/lcp.c8
-rw-r--r--cpukit/pppd/options.c14
-rw-r--r--cpukit/pppd/rtemsmain.c10
-rw-r--r--cpukit/pppd/rtemspppd.c2
-rw-r--r--cpukit/pppd/rtemspppd.h2
-rw-r--r--cpukit/pppd/sys-rtems.c6
-rw-r--r--cpukit/pppd/upap.c4
-rw-r--r--cpukit/rtems/src/clockget.c6
-rw-r--r--cpukit/rtems/src/clockgettod.c2
-rw-r--r--cpukit/rtems/src/clockgetuptime.c2
-rw-r--r--cpukit/rtems/src/clockset.c2
-rw-r--r--cpukit/rtems/src/clocktodvalidate.c2
-rw-r--r--cpukit/rtems/src/eventsurrender.c4
-rw-r--r--cpukit/rtems/src/msg.c2
-rw-r--r--cpukit/rtems/src/ratemonperiod.c10
-rw-r--r--cpukit/rtems/src/ratemonreportstatistics.c4
-rw-r--r--cpukit/rtems/src/regionprocessqueue.c4
-rw-r--r--cpukit/rtems/src/rtemsbuildid.c2
-rw-r--r--cpukit/rtems/src/rtemsbuildname.c2
-rw-r--r--cpukit/rtems/src/rtemsobjectgetapiclassname.c4
-rw-r--r--cpukit/rtems/src/rtemsobjectgetapiname.c8
-rw-r--r--cpukit/rtems/src/rtemsobjectgetname.c2
-rw-r--r--cpukit/rtems/src/rtemsobjectidgetapi.c2
-rw-r--r--cpukit/rtems/src/rtemsobjectidgetclass.c2
-rw-r--r--cpukit/rtems/src/rtemsobjectidgetindex.c2
-rw-r--r--cpukit/rtems/src/rtemsobjectidgetnode.c2
-rw-r--r--cpukit/rtems/src/rtemsobjectsetname.c2
-rw-r--r--cpukit/rtems/src/semcreate.c2
-rw-r--r--cpukit/rtems/src/taskgetnote.c2
-rw-r--r--cpukit/rtems/src/tasksetnote.c2
-rw-r--r--cpukit/rtems/src/taskvariabledelete.c2
-rw-r--r--cpukit/score/cpu/avr/avr/boot.h38
-rw-r--r--cpukit/score/cpu/avr/avr/common.h14
-rw-r--r--cpukit/score/cpu/avr/avr/eeprom.h4
-rw-r--r--cpukit/score/cpu/avr/avr/fuse.h80
-rw-r--r--cpukit/score/cpu/avr/avr/interrupt.h10
-rw-r--r--cpukit/score/cpu/avr/avr/io.h10
-rw-r--r--cpukit/score/cpu/avr/avr/io1200.h2
-rw-r--r--cpukit/score/cpu/avr/avr/io2313.h58
-rw-r--r--cpukit/score/cpu/avr/avr/io2323.h2
-rw-r--r--cpukit/score/cpu/avr/avr/io2333.h2
-rw-r--r--cpukit/score/cpu/avr/avr/io2343.h2
-rw-r--r--cpukit/score/cpu/avr/avr/io43u32x.h4
-rw-r--r--cpukit/score/cpu/avr/avr/io43u35x.h4
-rw-r--r--cpukit/score/cpu/avr/avr/io4414.h2
-rw-r--r--cpukit/score/cpu/avr/avr/io4433.h2
-rw-r--r--cpukit/score/cpu/avr/avr/io4434.h2
-rw-r--r--cpukit/score/cpu/avr/avr/io76c711.h2
-rw-r--r--cpukit/score/cpu/avr/avr/io8515.h2
-rw-r--r--cpukit/score/cpu/avr/avr/io8534.h2
-rw-r--r--cpukit/score/cpu/avr/avr/io8535.h2
-rw-r--r--cpukit/score/cpu/avr/avr/io86r401.h2
-rw-r--r--cpukit/score/cpu/avr/avr/io90pwm1.h4
-rw-r--r--cpukit/score/cpu/avr/avr/io90pwm216.h4
-rw-r--r--cpukit/score/cpu/avr/avr/io90pwm2b.h12
-rw-r--r--cpukit/score/cpu/avr/avr/io90pwm316.h4
-rw-r--r--cpukit/score/cpu/avr/avr/io90pwm3b.h12
-rw-r--r--cpukit/score/cpu/avr/avr/io90pwm81.h2
-rw-r--r--cpukit/score/cpu/avr/avr/io90pwmx.h4
-rw-r--r--cpukit/score/cpu/avr/avr/io90scr100.h2
-rw-r--r--cpukit/score/cpu/avr/avr/ioa6289.h2
-rw-r--r--cpukit/score/cpu/avr/avr/ioat94k.h42
-rw-r--r--cpukit/score/cpu/avr/avr/iocan128.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iocan32.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iocan64.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iocanxx.h8
-rw-r--r--cpukit/score/cpu/avr/avr/iom103.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iom128.h26
-rw-r--r--cpukit/score/cpu/avr/avr/iom1280.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom1281.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom128rfa1.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iom16.h10
-rw-r--r--cpukit/score/cpu/avr/avr/iom161.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom162.h8
-rw-r--r--cpukit/score/cpu/avr/avr/iom163.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom164.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iom165.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom165p.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom168.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iom168p.h10
-rw-r--r--cpukit/score/cpu/avr/avr/iom169.h6
-rw-r--r--cpukit/score/cpu/avr/avr/iom169p.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom16hva.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iom16m1.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iom16u4.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iom2560.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom2561.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom32.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom323.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom324.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iom325.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom3250.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom328p.h8
-rw-r--r--cpukit/score/cpu/avr/avr/iom329.h6
-rw-r--r--cpukit/score/cpu/avr/avr/iom3290.h6
-rw-r--r--cpukit/score/cpu/avr/avr/iom32c1.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iom32hvb.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom32m1.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iom32u4.h14
-rw-r--r--cpukit/score/cpu/avr/avr/iom32u6.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iom406.h18
-rw-r--r--cpukit/score/cpu/avr/avr/iom48p.h8
-rw-r--r--cpukit/score/cpu/avr/avr/iom64.h32
-rw-r--r--cpukit/score/cpu/avr/avr/iom640.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom644.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iom645.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom6450.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom649.h6
-rw-r--r--cpukit/score/cpu/avr/avr/iom6490.h6
-rw-r--r--cpukit/score/cpu/avr/avr/iom64c1.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iom64m1.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iom8.h10
-rw-r--r--cpukit/score/cpu/avr/avr/iom8515.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iom8535.h10
-rw-r--r--cpukit/score/cpu/avr/avr/iom88.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iom88p.h10
-rw-r--r--cpukit/score/cpu/avr/avr/iom8hva.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iomx8.h6
-rw-r--r--cpukit/score/cpu/avr/avr/iomxx0_1.h12
-rw-r--r--cpukit/score/cpu/avr/avr/iomxxhva.h6
-rw-r--r--cpukit/score/cpu/avr/avr/iotn11.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iotn12.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iotn13.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iotn13a.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iotn15.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iotn167.h6
-rw-r--r--cpukit/score/cpu/avr/avr/iotn22.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iotn26.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iotn28.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iotn43u.h6
-rw-r--r--cpukit/score/cpu/avr/avr/iotn48.h6
-rw-r--r--cpukit/score/cpu/avr/avr/iotn87.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iotn88.h6
-rw-r--r--cpukit/score/cpu/avr/avr/iotnx4.h6
-rw-r--r--cpukit/score/cpu/avr/avr/iotnx5.h6
-rw-r--r--cpukit/score/cpu/avr/avr/iotnx61.h2
-rw-r--r--cpukit/score/cpu/avr/avr/iousb1286.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iousb1287.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iousb162.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iousb646.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iousb647.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iousb82.h4
-rw-r--r--cpukit/score/cpu/avr/avr/iousbxx2.h6
-rw-r--r--cpukit/score/cpu/avr/avr/iousbxx6_7.h8
-rw-r--r--cpukit/score/cpu/avr/avr/iox128a1.h16
-rw-r--r--cpukit/score/cpu/avr/avr/iox128a3.h16
-rw-r--r--cpukit/score/cpu/avr/avr/iox16a4.h16
-rw-r--r--cpukit/score/cpu/avr/avr/iox16d4.h16
-rw-r--r--cpukit/score/cpu/avr/avr/iox256a3.h16
-rw-r--r--cpukit/score/cpu/avr/avr/iox256a3b.h16
-rw-r--r--cpukit/score/cpu/avr/avr/iox32a4.h16
-rw-r--r--cpukit/score/cpu/avr/avr/iox32d4.h16
-rw-r--r--cpukit/score/cpu/avr/avr/iox64a1.h16
-rw-r--r--cpukit/score/cpu/avr/avr/iox64a3.h16
-rw-r--r--cpukit/score/cpu/avr/avr/lock.h90
-rw-r--r--cpukit/score/cpu/avr/avr/pgmspace.h46
-rw-r--r--cpukit/score/cpu/avr/avr/power.h14
-rw-r--r--cpukit/score/cpu/avr/avr/sfr_defs.h6
-rw-r--r--cpukit/score/cpu/avr/avr/sleep.h10
-rw-r--r--cpukit/score/cpu/avr/avr/wdt.h40
-rw-r--r--cpukit/score/cpu/avr/cpu.c6
-rw-r--r--cpukit/score/cpu/avr/cpu_asm.S12
-rw-r--r--cpukit/score/cpu/avr/rtems/asm.h6
-rw-r--r--cpukit/score/cpu/avr/rtems/score/avr.h12
-rw-r--r--cpukit/score/cpu/avr/rtems/score/cpu.h24
187 files changed, 802 insertions, 802 deletions
diff --git a/cpukit/libnetworking/netinet/in_cksum.c b/cpukit/libnetworking/netinet/in_cksum.c
index c983b797bb..af56d1e7c4 100644
--- a/cpukit/libnetworking/netinet/in_cksum.c
+++ b/cpukit/libnetworking/netinet/in_cksum.c
@@ -38,7 +38,7 @@
*/
-#if (defined(__GNUC__) && (defined(__arm__) && !defined(__thumb__)))
+#if (defined(__GNUC__) && (defined(__arm__) && !defined(__thumb__)))
/* This currently does not support Thumb assembly */
#include "in_cksum_arm.h"
diff --git a/cpukit/libnetworking/netinet/in_cksum_arm.h b/cpukit/libnetworking/netinet/in_cksum_arm.h
index 9b0bab00c4..74a3c6839e 100644
--- a/cpukit/libnetworking/netinet/in_cksum_arm.h
+++ b/cpukit/libnetworking/netinet/in_cksum_arm.h
@@ -239,7 +239,7 @@ int
in4_cksum(
struct mbuf *m,
u_int8_t nxt,
- int off,
+ int off,
int len )
{
u_int sum = 0;
@@ -254,14 +254,14 @@ in4_cksum(
panic("in4_cksum: offset too short");
if (m->m_len < sizeof(struct ip))
panic("in4_cksum: bad mbuf chain");
-
+
bzero(&ipov, sizeof(ipov));
ipov.ih_len = htons(len);
- ipov.ih_pr = nxt;
- ipov.ih_src = mtod(m, struct ip *)->ip_src;
+ ipov.ih_pr = nxt;
+ ipov.ih_src = mtod(m, struct ip *)->ip_src;
ipov.ih_dst = mtod(m, struct ip *)->ip_dst;
w = (u_char *)&ipov;
-
+
/* assumes sizeof(ipov) == 20 */
ADD16;
ADD4;
diff --git a/cpukit/libnetworking/rtems/bsdnet/_types.h b/cpukit/libnetworking/rtems/bsdnet/_types.h
index 898907c1f5..3f600ff670 100644
--- a/cpukit/libnetworking/rtems/bsdnet/_types.h
+++ b/cpukit/libnetworking/rtems/bsdnet/_types.h
@@ -29,7 +29,7 @@
/*
* $Id$
*/
-
+
#ifndef _RTEMS_BSDNET__TYPES_H_
#define _RTEMS_BSDNET__TYPES_H_
diff --git a/cpukit/libnetworking/rtems/bsdnet/servers.h b/cpukit/libnetworking/rtems/bsdnet/servers.h
index 8e017d237d..ca6c702cea 100644
--- a/cpukit/libnetworking/rtems/bsdnet/servers.h
+++ b/cpukit/libnetworking/rtems/bsdnet/servers.h
@@ -1,7 +1,7 @@
/**
* @file rtems/rtems_bsdnet.h
*/
-
+
/*
* $Id$
*/
diff --git a/cpukit/libnetworking/rtems/dhcp.h b/cpukit/libnetworking/rtems/dhcp.h
index fde94b8e4d..b29fc66c65 100644
--- a/cpukit/libnetworking/rtems/dhcp.h
+++ b/cpukit/libnetworking/rtems/dhcp.h
@@ -5,7 +5,7 @@
Copyright Cybertec Pty Ltd, 2005
All rights reserved Cybertec Pty Ltd, 2005
-
+
This software with is provided ``as is'' and with NO WARRANTY.
------------------------------------------------------------------------
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet.h b/cpukit/libnetworking/rtems/rtems_bsdnet.h
index 41ae7132e9..6c40e73f10 100644
--- a/cpukit/libnetworking/rtems/rtems_bsdnet.h
+++ b/cpukit/libnetworking/rtems/rtems_bsdnet.h
@@ -1,7 +1,7 @@
/**
* @file rtems/rtems_bsdnet.h
*/
-
+
/*
* $Id$
*/
@@ -155,7 +155,7 @@ struct rtems_bsdnet_config {
/*
* Default "multiplier" on buffer size. This is
* claimed by the TCP/IP implementation to be for
- * efficiency but you will have to measure the
+ * efficiency but you will have to measure the
* benefit for buffering beyond double buffering
* in your own application.
*
@@ -168,7 +168,7 @@ struct rtems_bsdnet_config {
* Default UDP buffer sizes PER SOCKET!!
*
* TX = 9216 -- max datagram size
- * RX = 40 * (1024 + sizeof(struct sockaddr_in))
+ * RX = 40 * (1024 + sizeof(struct sockaddr_in))
*
* See netinet/udp_usrreq.c for details
*/
@@ -296,7 +296,7 @@ void rtems_bsdnet_malloc_starvation(void);
/*
* mbuf malloc interface to enable custom allocation of mbuf's
- *
+ *
* May be declared in user code. If not, then the default is to
* malloc.
*/
diff --git a/cpukit/libnetworking/rtems/rtems_dhcp.c b/cpukit/libnetworking/rtems/rtems_dhcp.c
index 490c11611c..df1acca710 100644
--- a/cpukit/libnetworking/rtems/rtems_dhcp.c
+++ b/cpukit/libnetworking/rtems/rtems_dhcp.c
@@ -1,5 +1,5 @@
/*
- * DCHP client for RTEMS
+ * DCHP client for RTEMS
* Andrew Bythell, <abythell@nortelnetworks.com>
* based on and uses subroutines from c/src/libnetworking/nfs/bootp_subr.c
*/
@@ -166,7 +166,7 @@ struct dhcp_packet
unsigned char vend[312];
};
-/*
+/*
* External Declarations for Functions found in
* rtems/c/src/libnetworking/nfs/
*/
@@ -236,11 +236,11 @@ printsetup (const char *iface,
char ip_str[15];
printf ("dhcpc: %s: ", iface);
-
+
ip = ntohl (ip_addr.s_addr);
format_ip (ip, ip_str);
printf ("inet: %-15s ", ip_str);
-
+
ip = ntohl (mask_addr.s_addr);
format_ip (ip, ip_str);
printf ("mask: %-15s\n", ip_str);
@@ -248,11 +248,11 @@ printsetup (const char *iface,
ip = ntohl (srv_addr.s_addr);
format_ip (ip, ip_str);
printf (" srv: %-15s ", ip_str);
-
+
ip = ntohl (gw_addr.s_addr);
format_ip (ip, ip_str);
printf (" gw: %-15s\n", ip_str);
-
+
return;
}
@@ -283,13 +283,13 @@ process_options (unsigned char *optbuf, int optbufSize)
}
len = optbuf[j + 1];
j += 2;
-
+
if ((len + j) >= optbufSize)
{
printf ("Truncated field for code %d", code);
return;
}
-
+
ncode = optbuf[j + len];
optbuf[j + len] = '\0';
p = (char*) &optbuf[j];
@@ -420,7 +420,7 @@ process_options (unsigned char *optbuf, int optbufSize)
/* DHCP Requested IP Address */
if (len != 4)
printf ("dhcpc: DHCP option requested IP len is %d", len);
- /*
+ /*
* although nothing happens here, this case keeps the client
* from complaining about unknown options. The Requested IP
* is necessary to return to the server for a DHCP REQUEST
@@ -436,7 +436,7 @@ process_options (unsigned char *optbuf, int optbufSize)
memcpy (&dhcp_lease_time, &p[0], 4);
dhcp_lease_time = ntohl (dhcp_lease_time);
break;
-
+
case 52:
/* DHCP option override */
if (len != 1) {
@@ -455,7 +455,7 @@ process_options (unsigned char *optbuf, int optbufSize)
dhcp_message_type = p[0];
break;
- case 128: /* Site-specific option for DHCP servers that
+ case 128: /* Site-specific option for DHCP servers that
* a) don't supply tag 54
* and
* b) don't supply the server address in siaddr
@@ -501,7 +501,7 @@ dhcp_discover_req (struct dhcp_packet* call,
unsigned long *xid)
{
int len = 0;
-
+
memset (call, 0, sizeof (struct dhcp_packet));
/*
@@ -514,7 +514,7 @@ dhcp_discover_req (struct dhcp_packet* call,
(*xid)++;
call->xid = htonl (*xid);
call->flags = htons (DHCP_BROADCAST);
-
+
memcpy (&call->chaddr, LLADDR (sdl), sdl->sdl_alen);
/*
@@ -567,7 +567,7 @@ dhcp_request_req (struct dhcp_packet* call,
int len = 0;
unsigned long temp;
char *hostname;
-
+
memset (call, 0, sizeof (struct dhcp_packet));
/*
@@ -619,7 +619,7 @@ dhcp_request_req (struct dhcp_packet* call,
call->vend[len++] = sizeof (reply->yiaddr);
memcpy (&call->vend[len], &reply->yiaddr, sizeof (reply->yiaddr));
len += sizeof (reply->yiaddr);
-
+
/*
* DHCP Parameter request list
*/
@@ -690,12 +690,12 @@ dhcp_task (rtems_task_argument _sdl)
struct proc *procp = NULL;
int disconnected;
rtems_status_code ev_st;
-
+
sdl = (struct sockaddr_dl *) _sdl;
-
+
count = dhcp_elapsed_time;
disconnected = 0;
-
+
while (true)
{
/*
@@ -709,7 +709,7 @@ dhcp_task (rtems_task_argument _sdl)
/*
* Check if not a poll timeout. So when ANY event received, exit task.
* Actually, only event RTEMS_EVENT_0 sent from rtem_dhcp_failsafe.c
- * if "failsafe" dhcp enabled when interface down. Otherwise, no
+ * if "failsafe" dhcp enabled when interface down. Otherwise, no
* event should occur, just timeout.
*/
if(ev_st != RTEMS_TIMEOUT)
@@ -720,7 +720,7 @@ dhcp_task (rtems_task_argument _sdl)
if (count >= (dhcp_lease_time / 2))
{
rtems_bsdnet_semaphore_obtain ();
-
+
dhcp_request_req (&call, &dhcp_req, sdl, true);
/*
@@ -744,18 +744,18 @@ dhcp_task (rtems_task_argument _sdl)
printf ("DHCP server did not send Magic Cookie.\n");
continue;
}
-
+
process_options (&dhcp_req.vend[4], sizeof (dhcp_req.vend) - 4);
-
+
if (dhcp_message_type != DHCP_ACK)
{
rtems_bsdnet_semaphore_release ();
printf ("DHCP server did not accept the DHCP request");
continue;
}
-
+
rtems_bsdnet_semaphore_release ();
-
+
count = 0;
}
}
@@ -776,7 +776,7 @@ dhcp_start_task (struct sockaddr_dl *sdl,
int priority)
{
rtems_status_code sc;
-
+
memcpy (&dhcp_req, reply, sizeof (struct dhcp_packet));
sc = rtems_task_create (rtems_build_name ('d','h','c','p'),
@@ -810,14 +810,14 @@ dhcp_interface_has_ip (struct ifreq *ireq, struct socket *so, struct proc *procp
{
struct sockaddr_in* sin;
int error;
-
+
/*
* Check if the interface is already up.
*/
error = ifioctl(so, SIOCGIFFLAGS, (caddr_t)ireq, procp);
if (error)
return 0;
-
+
if ((ireq->ifr_flags & IFF_UP) == 0)
return 0;
@@ -836,7 +836,7 @@ dhcp_interface_has_ip (struct ifreq *ireq, struct socket *so, struct proc *procp
}
/*
- * DCHP Client Routine
+ * DCHP Client Routine
* - The first DHCP offer is always accepted
* - No DHCP DECLINE message is sent if ARPing fails
*
@@ -869,7 +869,7 @@ dhcp_init (int update_files)
printf("Error creating the root filesystem.\nFile not created.\n");
update_files = 0;
}
-
+
/*
* Find a network interface.
*/
@@ -938,7 +938,7 @@ dhcp_init (int update_files)
}
process_options (&reply.vend[4], sizeof (reply.vend) - 4);
-
+
if (dhcp_message_type != DHCP_OFFER) {
printf ("DHCP server did not send a DHCP Offer.\n");
soclose (so);
@@ -946,10 +946,10 @@ dhcp_init (int update_files)
}
/*
- * Send a DHCP REQUEST
+ * Send a DHCP REQUEST
*/
dhcp_request_req (&call, &reply, sdl, true);
-
+
error = bootpc_call (&call, &reply, procp);
if (error) {
printf ("BOOTP call failed -- %s\n", strerror(error));
@@ -965,9 +965,9 @@ dhcp_init (int update_files)
soclose (so);
return -1;
}
-
+
process_options (&reply.vend[4], sizeof (reply.vend) - 4);
-
+
if (dhcp_message_type != DHCP_ACK) {
printf ("DHCP server did not accept the DHCP request\n");
soclose (so);
@@ -997,13 +997,13 @@ dhcp_init (int update_files)
*/
if (memcmp (&reply.vend[0], dhcp_magic_cookie, sizeof (dhcp_magic_cookie)) == 0)
process_options (&reply.vend[4], sizeof (reply.vend) - 4);
-
+
if (dhcp_option_overload & 1)
process_options ((unsigned char*) reply.file, sizeof reply.file);
else
if (reply.file[0])
rtems_bsdnet_bootp_boot_file_name = strdup (reply.file);
-
+
if (dhcp_option_overload & 2)
process_options ((unsigned char*) reply.sname, sizeof reply.sname);
else
@@ -1022,13 +1022,13 @@ dhcp_init (int update_files)
else
dhcp_netmask.sin_addr.s_addr = htonl (IN_CLASSC_NET);
}
-
+
if (!dhcp_gotserver)
rtems_bsdnet_bootp_server_address = reply.siaddr;
-
+
if (!dhcp_gotgw)
dhcp_gw.sin_addr = reply.giaddr;
-
+
if (!dhcp_gotlogserver)
rtems_bsdnet_log_host_address = rtems_bsdnet_bootp_server_address;
@@ -1076,9 +1076,9 @@ dhcp_init (int update_files)
const char *bufl[1];
bufl[0] = buf;
-
+
#define MKFILE_MODE (S_IRUSR | S_IWUSR | S_IWGRP | S_IRGRP | S_IROTH)
-
+
if (rtems_bsdnet_domain_name &&
(strlen(rtems_bsdnet_domain_name) < (sizeof(buf) - 1))) {
strcpy(buf, "search ");
@@ -1096,7 +1096,7 @@ dhcp_init (int update_files)
}
}
}
-
+
/*
* Configure the interface with the new settings
*/
@@ -1108,7 +1108,7 @@ dhcp_init (int update_files)
*/
if (dhcp_lease_time != 0xffffffff)
dhcp_start_task (sdl, &reply, 150);
-
+
soclose (so);
return 0;
@@ -1171,7 +1171,7 @@ rtems_bsdnet_do_dhcp_refresh_only (unsigned long xid,
*/
if (lease_time == 0xffffffff)
return;
-
+
/*
* Find a network interface.
*/
@@ -1199,7 +1199,7 @@ rtems_bsdnet_do_dhcp_refresh_only (unsigned long xid,
(sdl = ((struct sockaddr_dl *) ifa->ifa_addr)) &&
sdl->sdl_type == IFT_ETHER)
break;
-
+
if (!match) {
printf ("dhcpc: no matching interface address\n");
return;
@@ -1220,7 +1220,7 @@ rtems_bsdnet_do_dhcp_refresh_only (unsigned long xid,
dhcp_lease_time = lease_time;
dhcp_elapsed_time = elapsed_time;
-
+
if (hostname)
{
sethostname ((char *) hostname, strlen (hostname));
diff --git a/cpukit/libnetworking/rtems/rtems_dhcp_failsafe.c b/cpukit/libnetworking/rtems/rtems_dhcp_failsafe.c
index 3f69882c33..609a19eb0a 100644
--- a/cpukit/libnetworking/rtems/rtems_dhcp_failsafe.c
+++ b/cpukit/libnetworking/rtems/rtems_dhcp_failsafe.c
@@ -1,4 +1,4 @@
-/*
+/*
$Id$
Description: Wrapper around DHCP client to restart it when the interface
@@ -32,7 +32,7 @@
* Optionally, after the interface is configured (either with DHCP or
statically), a task is started to monitor it. When the interface remains
- disconnected (i.e. its IFF_RUNNING flag is off) for NETWORK_FAIL_TIMEOUT
+ disconnected (i.e. its IFF_RUNNING flag is off) for NETWORK_FAIL_TIMEOUT
seconds, the dhcp lease renewal is stopped. As soon as the interface is
connected again, DHCP is started again as above.
If NETWORK_FAIL_TIMEOUT is set to 0, the monitor task is not started.
diff --git a/cpukit/libnetworking/rtems/rtems_dhcp_failsafe.h b/cpukit/libnetworking/rtems/rtems_dhcp_failsafe.h
index 24c1c900c0..320f9bf151 100644
--- a/cpukit/libnetworking/rtems/rtems_dhcp_failsafe.h
+++ b/cpukit/libnetworking/rtems/rtems_dhcp_failsafe.h
@@ -1,4 +1,4 @@
-/*
+/*
$Id$
Description: Wrapper around DHCP client to restart it when the interface
diff --git a/cpukit/libnetworking/rtems/rtems_malloc_mbuf.c b/cpukit/libnetworking/rtems/rtems_malloc_mbuf.c
index 628d7dc23f..a2bd34a4c4 100644
--- a/cpukit/libnetworking/rtems/rtems_malloc_mbuf.c
+++ b/cpukit/libnetworking/rtems/rtems_malloc_mbuf.c
@@ -27,7 +27,7 @@
extern void *malloc(size_t);
/*
- * Default allocator for mbuf data. Over-ride in user code to change
+ * Default allocator for mbuf data. Over-ride in user code to change
* the way mbuf's are allocated.
*/
diff --git a/cpukit/libnetworking/rtems/rtems_mii_ioctl.c b/cpukit/libnetworking/rtems/rtems_mii_ioctl.c
index fc01f2bc30..6501fc0ae9 100644
--- a/cpukit/libnetworking/rtems/rtems_mii_ioctl.c
+++ b/cpukit/libnetworking/rtems/rtems_mii_ioctl.c
@@ -5,22 +5,22 @@
*
* USERSPACE UTILITIES
*
- * NOTE: This much simpler than the BSD ifmedia API
+ * NOTE: This much simpler than the BSD ifmedia API
*/
-/*
+/*
* Authorship
* ----------
* This software was created by
* Till Straumann <strauman@slac.stanford.edu>, 2005,
* Stanford Linear Accelerator Center, Stanford University.
- *
+ *
* Acknowledgement of sponsorship
* ------------------------------
* This software was produced by
* the Stanford Linear Accelerator Center, Stanford University,
* under Contract DE-AC03-76SFO0515 with the Department of Energy.
- *
+ *
* Government disclaimer of liability
* ----------------------------------
* Neither the United States nor the United States Department of Energy,
@@ -29,18 +29,18 @@
* completeness, or usefulness of any data, apparatus, product, or process
* disclosed, or represents that its use would not infringe privately owned
* rights.
- *
+ *
* Stanford disclaimer of liability
* --------------------------------
* Stanford University makes no representations or warranties, express or
* implied, nor assumes any liability for the use of this software.
- *
+ *
* Stanford disclaimer of copyright
* --------------------------------
* Stanford University, owner of the copyright, hereby disclaims its
* copyright and all other rights in this software. Hence, anyone may
- * freely use it for any purpose without restriction.
- *
+ * freely use it for any purpose without restriction.
+ *
* Maintenance of notices
* ----------------------
* In the interest of clarity regarding the origin and status of this
@@ -49,9 +49,9 @@
* or distributed by the recipient and are to be affixed to any copy of
* software made or distributed by the recipient that contains a copy or
* derivative of this software.
- *
+ *
* ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03
- */
+ */
#include <rtems.h>
#include <inttypes.h>
diff --git a/cpukit/libnetworking/rtems/rtems_mii_ioctl.h b/cpukit/libnetworking/rtems/rtems_mii_ioctl.h
index bbc9f098e5..c24f2787a0 100644
--- a/cpukit/libnetworking/rtems/rtems_mii_ioctl.h
+++ b/cpukit/libnetworking/rtems/rtems_mii_ioctl.h
@@ -1,24 +1,24 @@
/* Simple (default) implementation for SIOCGIFMEDIA/SIOCSIFMEDIA
* to be used by ethernet drivers [from their ioctl].
*
- * NOTE: This much simpler than the BSD ifmedia API
+ * NOTE: This much simpler than the BSD ifmedia API
*
* $Id$
*/
-/*
+/*
* Authorship
* ----------
* This software was created by
* Till Straumann <strauman@slac.stanford.edu>, 2005,
* Stanford Linear Accelerator Center, Stanford University.
- *
+ *
* Acknowledgement of sponsorship
* ------------------------------
* This software was produced by
* the Stanford Linear Accelerator Center, Stanford University,
* under Contract DE-AC03-76SFO0515 with the Department of Energy.
- *
+ *
* Government disclaimer of liability
* ----------------------------------
* Neither the United States nor the United States Department of Energy,
@@ -27,18 +27,18 @@
* completeness, or usefulness of any data, apparatus, product, or process
* disclosed, or represents that its use would not infringe privately owned
* rights.
- *
+ *
* Stanford disclaimer of liability
* --------------------------------
* Stanford University makes no representations or warranties, express or
* implied, nor assumes any liability for the use of this software.
- *
+ *
* Stanford disclaimer of copyright
* --------------------------------
* Stanford University, owner of the copyright, hereby disclaims its
* copyright and all other rights in this software. Hence, anyone may
- * freely use it for any purpose without restriction.
- *
+ * freely use it for any purpose without restriction.
+ *
* Maintenance of notices
* ----------------------
* In the interest of clarity regarding the origin and status of this
@@ -47,9 +47,9 @@
* or distributed by the recipient and are to be affixed to any copy of
* software made or distributed by the recipient that contains a copy or
* derivative of this software.
- *
+ *
* ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03
- */
+ */
#ifndef RTEMS_MII_IOCTL_H
#define RTEMS_MII_IOCTL_H
@@ -122,7 +122,7 @@ int rtems_ifmedia2str (int media, char *buf, int bufsz);
* In addition to IFM_SUBTYPE_ETHERNET_DESCRIPTIONS and
* IFM_SUBTYPE_ETHERNET_ALIASES, the strings
*
- * '10' [ '0' [ '0' ]] 'b' [ 'ase' ] ( 't' | 'T' )
+ * '10' [ '0' [ '0' ]] 'b' [ 'ase' ] ( 't' | 'T' )
* (* if 100bT [ 'x' | 'X' ] is required here *)
*
* are recognized (e.g., 10bT, 100bTX)
diff --git a/cpukit/libnetworking/rtems/rtems_mii_ioctl_kern.c b/cpukit/libnetworking/rtems/rtems_mii_ioctl_kern.c
index 0f9e61f174..2fdf4fb27d 100644
--- a/cpukit/libnetworking/rtems/rtems_mii_ioctl_kern.c
+++ b/cpukit/libnetworking/rtems/rtems_mii_ioctl_kern.c
@@ -5,22 +5,22 @@
*
* KERNEL PART (support for drivers)
*
- * NOTE: This much simpler than the BSD ifmedia API
+ * NOTE: This much simpler than the BSD ifmedia API
*/
-/*
+/*
* Authorship
* ----------
* This software was created by
* Till Straumann <strauman@slac.stanford.edu>, 2005,
* Stanford Linear Accelerator Center, Stanford University.
- *
+ *
* Acknowledgement of sponsorship
* ------------------------------
* This software was produced by
* the Stanford Linear Accelerator Center, Stanford University,
* under Contract DE-AC03-76SFO0515 with the Department of Energy.
- *
+ *
* Government disclaimer of liability
* ----------------------------------
* Neither the United States nor the United States Department of Energy,
@@ -29,18 +29,18 @@
* completeness, or usefulness of any data, apparatus, product, or process
* disclosed, or represents that its use would not infringe privately owned
* rights.
- *
+ *
* Stanford disclaimer of liability
* --------------------------------
* Stanford University makes no representations or warranties, express or
* implied, nor assumes any liability for the use of this software.
- *
+ *
* Stanford disclaimer of copyright
* --------------------------------
* Stanford University, owner of the copyright, hereby disclaims its
* copyright and all other rights in this software. Hence, anyone may
- * freely use it for any purpose without restriction.
- *
+ * freely use it for any purpose without restriction.
+ *
* Maintenance of notices
* ----------------------
* In the interest of clarity regarding the origin and status of this
@@ -49,9 +49,9 @@
* or distributed by the recipient and are to be affixed to any copy of
* software made or distributed by the recipient that contains a copy or
* derivative of this software.
- *
+ *
* ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03
- */
+ */
/* include first to avoid 'malloc' clash with rtems_bsdnet_malloc() hack */
diff --git a/cpukit/libnetworking/rtems/rtems_socketpair.c b/cpukit/libnetworking/rtems/rtems_socketpair.c
index 5e7193cf18..09f93ad69a 100644
--- a/cpukit/libnetworking/rtems/rtems_socketpair.c
+++ b/cpukit/libnetworking/rtems/rtems_socketpair.c
@@ -2,18 +2,18 @@
* socketpair() for RTEMS
*
* This file exists primarily to document what is required to provide
- * a functional implementation of socketpair() for RTEMS.
+ * a functional implementation of socketpair() for RTEMS.
*
* The socketpair() service requires that the "local domain" sockets
* be functional. This is denoted by the domain constants AF_LOCAL
* and AF_UNIX and the protocol constants PF_LOCAL and PF_UNIX. The
* local domain functionality is implemented in the file kern/uipc_usrreq.c
* which was not part of the initial port of the FreeBSD stack to
- * RTEMS.
+ * RTEMS.
*
* The FreeBSD socketpair implementation appears to be dependent on
* file system features which are not available currently in RTEMS.
- *
+ *
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
diff --git a/cpukit/pppd/auth.c b/cpukit/pppd/auth.c
index a419af8ab6..fb84f1e8fc 100644
--- a/cpukit/pppd/auth.c
+++ b/cpukit/pppd/auth.c
@@ -419,7 +419,7 @@ start_networks(void)
*/
void
auth_peer_fail(
- int unit,
+ int unit,
int protocol)
{
/*
@@ -434,7 +434,7 @@ auth_peer_fail(
*/
void
auth_peer_success(
- int unit,
+ int unit,
int protocol,
char *name,
int namelen)
@@ -474,7 +474,7 @@ auth_peer_success(
*/
void
auth_withpeer_fail(
- int unit,
+ int unit,
int protocol )
{
if (passwd_from_file)
@@ -494,7 +494,7 @@ auth_withpeer_fail(
*/
void
auth_withpeer_success(
- int unit,
+ int unit,
int protocol )
{
int bit;
@@ -527,7 +527,7 @@ auth_withpeer_success(
*/
void
np_up(
- int unit,
+ int unit,
int proto )
{
int tlim;
@@ -576,7 +576,7 @@ np_down(
*/
void
np_finished(
- int unit,
+ int unit,
int proto )
{
if (--num_np_open <= 0) {
diff --git a/cpukit/pppd/cbcp.c b/cpukit/pppd/cbcp.c
index b64e95b483..eb750838cc 100644
--- a/cpukit/pppd/cbcp.c
+++ b/cpukit/pppd/cbcp.c
@@ -166,7 +166,7 @@ cbcp_input(unit, inpacket, pktlen)
#endif
len -= CBCP_MINLEN;
-
+
switch(code) {
case CBCP_REQ:
us->us_id = id;
@@ -229,7 +229,7 @@ cbcp_printpkt(p, plen, printer, arg)
if (code >= 1 && code <= sizeof(cbcp_codenames) / sizeof(char *))
printer(arg, " %s", cbcp_codenames[code-1]);
else
- printer(arg, " code=0x%x", code);
+ printer(arg, " code=0x%x", code);
printer(arg, " id=0x%x", id);
len -= HEADERLEN;
@@ -252,7 +252,7 @@ cbcp_printpkt(p, plen, printer, arg)
if (opt >= 1 && opt <= sizeof(cbcp_optionnames) / sizeof(char *))
printer(arg, " %s", cbcp_optionnames[opt-1]);
else
- printer(arg, " option=0x%x", opt);
+ printer(arg, " option=0x%x", opt);
if (olen > 2) {
GETCHAR(delay, p);
@@ -401,13 +401,13 @@ cbcp_send(us, code, buf, len)
outp = outpacket_buf;
outlen = 4 + len;
-
+
MAKEHEADER(outp, PPP_CBCP);
PUTCHAR(code, outp);
PUTCHAR(us->us_id, outp);
PUTSHORT(outlen, outp);
-
+
if (len)
BCOPY(buf, outp, len);
@@ -427,7 +427,7 @@ cbcp_recvack(us, pckt, len)
if (len) {
GETCHAR(type, pckt);
GETCHAR(opt_len, pckt);
-
+
if (opt_len > 2)
GETCHAR(delay, pckt);
diff --git a/cpukit/pppd/ccp.c b/cpukit/pppd/ccp.c
index 5f27c34d57..d80df270f7 100644
--- a/cpukit/pppd/ccp.c
+++ b/cpukit/pppd/ccp.c
@@ -68,7 +68,7 @@ static option_t ccp_option_list[] = {
"don't use draft deflate #", OPT_A2COPY,
&ccp_allowoptions[0].deflate_draft, 0, 0 },
{ "predictor1", o_bool, &ccp_wantoptions[0].predictor_1,
- "request Predictor-1", 1,
+ "request Predictor-1", 1,
&ccp_allowoptions[0].predictor_1, 0, 0 },
{ "nopredictor1", o_bool, &ccp_wantoptions[0].predictor_1,
"don't allow Predictor-1", OPT_A2COPY,
@@ -979,7 +979,7 @@ ccp_reqci(
*/
static char *
method_name(
- ccp_options *opt,
+ ccp_options *opt,
ccp_options *opt2)
{
static char result[64];
diff --git a/cpukit/pppd/chap.c b/cpukit/pppd/chap.c
index 0f4ad27451..3fe766f3a5 100644
--- a/cpukit/pppd/chap.c
+++ b/cpukit/pppd/chap.c
@@ -159,7 +159,7 @@ ChapAuthWithPeer(
/*
* We get here as a result of LCP coming up.
- * So even if CHAP was open before, we will
+ * So even if CHAP was open before, we will
* have to re-authenticate ourselves.
*/
cstate->clientstate = CHAPCS_LISTEN;
@@ -176,7 +176,7 @@ ChapAuthPeer(
int digest)
{
chap_state *cstate = &chap[unit];
-
+
cstate->chal_name = our_name;
cstate->chal_type = digest;
@@ -201,7 +201,7 @@ ChapChallengeTimeout(
void *arg)
{
chap_state *cstate = (chap_state *) arg;
-
+
/* if we aren't sending challenges, don't worry. then again we */
/* probably shouldn't be here either */
if (cstate->serverstate != CHAPSS_INITIAL_CHAL &&
@@ -266,7 +266,7 @@ ChapLowerUp(
int unit)
{
chap_state *cstate = &chap[unit];
-
+
if (cstate->clientstate == CHAPCS_INITIAL)
cstate->clientstate = CHAPCS_CLOSED;
else if (cstate->clientstate == CHAPCS_PENDING)
@@ -292,7 +292,7 @@ ChapLowerDown(
int unit)
{
chap_state *cstate = &chap[unit];
-
+
/* Timeout(s) pending? Cancel if so. */
if (cstate->serverstate == CHAPSS_INITIAL_CHAL ||
cstate->serverstate == CHAPSS_RECHALLENGE)
@@ -340,7 +340,7 @@ ChapInput(
u_char *inp;
u_char code, id;
int len;
-
+
/*
* Parse header (code, id and length).
* If packet too short, drop it.
@@ -362,7 +362,7 @@ ChapInput(
return;
}
len -= CHAP_HEADERLEN;
-
+
/*
* Action depends on code (as in fact it usually does :-).
*/
@@ -370,11 +370,11 @@ ChapInput(
case CHAP_CHALLENGE:
ChapReceiveChallenge(cstate, inp, id, len);
break;
-
+
case CHAP_RESPONSE:
ChapReceiveResponse(cstate, inp, id, len);
break;
-
+
case CHAP_FAILURE:
ChapReceiveFailure(cstate, inp, id, len);
break;
@@ -407,7 +407,7 @@ ChapReceiveChallenge(
char rhostname[256];
MD5_CTX mdContext;
u_char hash[MD5_SIGNATURE_SIZE];
-
+
if (cstate->clientstate == CHAPCS_CLOSED ||
cstate->clientstate == CHAPCS_PENDING) {
CHAPDEBUG(("ChapReceiveChallenge: in state %d", cstate->clientstate));
@@ -455,7 +455,7 @@ ChapReceiveChallenge(
cstate->resp_transmits = 0;
/* generate MD based on negotiated type */
- switch (cstate->resp_type) {
+ switch (cstate->resp_type) {
case CHAP_DIGEST_MD5:
MD5Init(&mdContext);
@@ -556,7 +556,7 @@ ChapReceiveResponse(
} else {
/* generate MD based on negotiated type */
- switch (cstate->chal_type) {
+ switch (cstate->chal_type) {
case CHAP_DIGEST_MD5: /* only MD5 is defined for now */
if (remmd_len != MD5_SIGNATURE_SIZE)
@@ -565,7 +565,7 @@ ChapReceiveResponse(
MD5Update(&mdContext, &cstate->chal_id, 1);
MD5Update(&mdContext, secret, secret_len);
MD5Update(&mdContext, cstate->challenge, cstate->chal_len);
- MD5Final(hash, &mdContext);
+ MD5Final(hash, &mdContext);
/* compare local and remote MDs and send the appropriate status */
if (memcmp (hash, remmd, MD5_SIGNATURE_SIZE) == 0)
@@ -690,7 +690,7 @@ ChapSendChallenge(
BCOPY(cstate->chal_name, outp, name_len); /* append hostname */
output(cstate->unit, outpacket_buf, outlen + PPP_HDRLEN);
-
+
TIMEOUT(ChapChallengeTimeout, cstate, cstate->timeouttime);
++cstate->chal_transmits;
}
@@ -718,7 +718,7 @@ ChapSendStatus(
outp = outpacket_buf;
MAKEHEADER(outp, PPP_CHAP); /* paste in a header */
-
+
PUTCHAR(code, outp);
PUTCHAR(cstate->chal_id, outp);
PUTSHORT(outlen, outp);
@@ -741,8 +741,8 @@ ChapGenChallenge(
u_char *ptr = cstate->challenge;
int i;
- /* pick a random challenge length between MIN_CHALLENGE_LENGTH and
- MAX_CHALLENGE_LENGTH */
+ /* pick a random challenge length between MIN_CHALLENGE_LENGTH and
+ MAX_CHALLENGE_LENGTH */
chal_len = (unsigned) ((drand48() *
(MAX_CHALLENGE_LENGTH - MIN_CHALLENGE_LENGTH)) +
MIN_CHALLENGE_LENGTH);
diff --git a/cpukit/pppd/chat.c b/cpukit/pppd/chat.c
index 8b6311221d..45e2707158 100644
--- a/cpukit/pppd/chat.c
+++ b/cpukit/pppd/chat.c
@@ -47,7 +47,7 @@
* In the same vein as above, added CLR_REPORT keyword.
*
* Allow for comments. Line starting with '#' are comments and are
- * ignored. If a '#' is to be expected as the first character, the
+ * ignored. If a '#' is to be expected as the first character, the
* expect string must be quoted.
*
*
@@ -85,7 +85,7 @@
/* $Id$ */
/*
- Fixes and some Changes by Wilfried Busalski Lancier-Monitoring GmbH Germany
+ Fixes and some Changes by Wilfried Busalski Lancier-Monitoring GmbH Germany
wilfried.busalski@muenster.de
Fixes: put_string() Free memory allocated by clean()
@@ -179,7 +179,7 @@ int clear_abort_next = 0;
char *report_string[MAX_REPORTS] ;
char report_buffer[50] ;
-int n_reports = 0, report_next = 0, report_gathering = 0 ;
+int n_reports = 0, report_next = 0, report_gathering = 0 ;
int clear_report_next = 0;
int say_next = 0, hup_next = 0;
@@ -246,7 +246,7 @@ int chatmain(int fd, int mode, char *pScript)
ttyfd = fd;
script=pScript;
-
+
if ( debug ) {
dbglog("chat_main: %s\n", script);
}
@@ -359,7 +359,7 @@ static char *clean(
case 'T':
if (sending && phone_num) {
- for (phchar = phone_num; *phchar != '\0'; phchar++)
+ for (phchar = phone_num; *phchar != '\0'; phchar++)
*s1++ = *phchar;
}
else {
@@ -370,7 +370,7 @@ static char *clean(
case 'U':
if (sending && phone_num2) {
- for (phchar = phone_num2; *phchar != '\0'; phchar++)
+ for (phchar = phone_num2; *phchar != '\0'; phchar++)
*s1++ = *phchar;
}
else {
@@ -407,7 +407,7 @@ static char *clean(
else
*s1++ = 'N';
break;
-
+
case '$': /* ARI */
if (use_env) {
*s1++ = cur_chr;
@@ -517,7 +517,7 @@ void chat_expect (
++hup_next;
return;
}
-
+
if (strcmp(s, "ABORT") == 0) {
++abort_next;
return;
diff --git a/cpukit/pppd/fsm.c b/cpukit/pppd/fsm.c
index 965323ae49..ce06401b1f 100644
--- a/cpukit/pppd/fsm.c
+++ b/cpukit/pppd/fsm.c
@@ -326,28 +326,28 @@ fsm_input(
case CONFREQ:
fsm_rconfreq(f, id, inp, len);
break;
-
+
case CONFACK:
fsm_rconfack(f, id, inp, len);
break;
-
+
case CONFNAK:
case CONFREJ:
fsm_rconfnakrej(f, code, id, inp, len);
break;
-
+
case TERMREQ:
fsm_rtermreq(f, id, inp, len);
break;
-
+
case TERMACK:
fsm_rtermack(f);
break;
-
+
case CODEREJ:
fsm_rcoderej(f, inp, len);
break;
-
+
default:
if( !f->callbacks->extcode
|| !(*f->callbacks->extcode)(f, code, id, inp, len) )
diff --git a/cpukit/pppd/ipcp.c b/cpukit/pppd/ipcp.c
index 1ace9cf311..ae8f15ba7c 100644
--- a/cpukit/pppd/ipcp.c
+++ b/cpukit/pppd/ipcp.c
@@ -1019,7 +1019,7 @@ ipcp_reqci(
* Reset all his options.
*/
BZERO(ho, sizeof(*ho));
-
+
/*
* Process all his options.
*/
@@ -1193,7 +1193,7 @@ ipcp_reqci(
ho->vj_protocol = cishort;
if (cilen == CILEN_VJ) {
GETCHAR(maxslotindex, p);
- if (maxslotindex > ao->maxslotindex) {
+ if (maxslotindex > ao->maxslotindex) {
orc = CONFNAK;
if (!reject_if_disagree){
DECPTR(1, p);
@@ -1427,7 +1427,7 @@ ipcp_up(
}
/* assign a default route through the interface if required */
- if (ipcp_wantoptions[f->unit].default_route)
+ if (ipcp_wantoptions[f->unit].default_route)
if (sifdefaultroute(f->unit, go->ouraddr, ho->hisaddr))
default_route_set[f->unit] = 1;
@@ -1474,7 +1474,7 @@ ipcp_up(
sifnpmode(f->unit, PPP_IP, NPMODE_PASS);
/* assign a default route through the interface if required */
- if (ipcp_wantoptions[f->unit].default_route)
+ if (ipcp_wantoptions[f->unit].default_route)
if (sifdefaultroute(f->unit, go->ouraddr, ho->hisaddr))
default_route_set[f->unit] = 1;
diff --git a/cpukit/pppd/ipcp.h b/cpukit/pppd/ipcp.h
index d3b099bb18..e841cf8b22 100644
--- a/cpukit/pppd/ipcp.h
+++ b/cpukit/pppd/ipcp.h
@@ -40,7 +40,7 @@
#define IPCP_VJ_COMP 0x002d /* current value for VJ compression option*/
#define IPCP_VJ_COMP_OLD 0x0037 /* "old" (i.e, broken) value for VJ */
- /* compression option*/
+ /* compression option*/
typedef struct ipcp_options {
bool neg_addr; /* Negotiate IP Address? */
diff --git a/cpukit/pppd/lcp.c b/cpukit/pppd/lcp.c
index 66d4c16f35..9da1326a1a 100644
--- a/cpukit/pppd/lcp.c
+++ b/cpukit/pppd/lcp.c
@@ -419,7 +419,7 @@ lcp_extcode(
case PROTREJ:
lcp_rprotrej(f, inp, len);
break;
-
+
case ECHOREQ:
if (f->state != OPENED)
break;
@@ -427,7 +427,7 @@ lcp_extcode(
PUTLONG(lcp_gotoptions[f->unit].magicnumber, magp);
fsm_sdata(f, ECHOREP, id, inp, len);
break;
-
+
case ECHOREP:
lcp_received_echo_reply(f, id, inp, len);
break;
@@ -441,7 +441,7 @@ lcp_extcode(
return 1;
}
-
+
/*
* lcp_rprotrej - Receive an Protocol-Reject.
*
@@ -1930,7 +1930,7 @@ lcp_echo_lowerup (
lcp_echos_pending = 0;
lcp_echo_number = 0;
lcp_echo_timer_running = 0;
-
+
/* If a timeout interval is specified then start the timer */
if (lcp_echo_interval != 0)
LcpEchoCheck (f);
diff --git a/cpukit/pppd/options.c b/cpukit/pppd/options.c
index 8ca387f042..9b010e3b37 100644
--- a/cpukit/pppd/options.c
+++ b/cpukit/pppd/options.c
@@ -1168,7 +1168,7 @@ setpassfilter(
{
pc.linktype = DLT_PPP;
pc.snapshot = PPP_HDRLEN;
-
+
if (pcap_compile(&pc, &pass_filter, *argv, 1, netmask) == 0)
return 1;
option_error("error in pass-filter expression: %s\n", pcap_geterr(&pc));
@@ -1184,7 +1184,7 @@ setactivefilter(
{
pc.linktype = DLT_PPP;
pc.snapshot = PPP_HDRLEN;
-
+
if (pcap_compile(&pc, &active_filter, *argv, 1, netmask) == 0)
return 1;
option_error("error in active-filter expression: %s\n", pcap_geterr(&pc));
@@ -1208,7 +1208,7 @@ noopt(
}
/*
- * setdomain - Set domain name to append to hostname
+ * setdomain - Set domain name to append to hostname
*/
static int
setdomain(
@@ -1335,7 +1335,7 @@ setdevname(
default_device = 0;
devnam_info.priv = privileged_option;
devnam_info.source = option_source;
-
+
return 1;
}
@@ -1351,7 +1351,7 @@ setipaddr(
char *colon;
uint32_t local, remote;
ipcp_options *wo = &ipcp_wantoptions[0];
-
+
/*
* IP address pair separated by ":".
*/
@@ -1359,7 +1359,7 @@ setipaddr(
return 0;
if (prepass)
return 1;
-
+
/*
* If colon first character, then no local addr.
*/
@@ -1381,7 +1381,7 @@ setipaddr(
wo->ouraddr = local;
*colon = ':';
}
-
+
/*
* If colon last character, then no remote addr.
*/
diff --git a/cpukit/pppd/rtemsmain.c b/cpukit/pppd/rtemsmain.c
index dc14971bad..89ed77682e 100644
--- a/cpukit/pppd/rtemsmain.c
+++ b/cpukit/pppd/rtemsmain.c
@@ -758,9 +758,9 @@ ppptimeout(
int time)
{
struct callout *newp, *p, **pp;
-
+
MAINDEBUG(("Timeout %p:%p in %d seconds.", func, arg, time));
-
+
/*
* Allocate timeout.
*/
@@ -771,7 +771,7 @@ ppptimeout(
gettimeofday(&timenow, NULL);
newp->c_time.tv_sec = timenow.tv_sec + time;
newp->c_time.tv_usec = timenow.tv_usec;
-
+
/*
* Find correct place and link it in.
*/
@@ -794,9 +794,9 @@ pppuntimeout(
void *arg)
{
struct callout **copp, *freep;
-
+
MAINDEBUG(("Untimeout %p:%p.", func, arg));
-
+
/*
* Find first matching timeout and remove it from the list.
*/
diff --git a/cpukit/pppd/rtemspppd.c b/cpukit/pppd/rtemspppd.c
index c1c12cd622..6f58fce68a 100644
--- a/cpukit/pppd/rtemspppd.c
+++ b/cpukit/pppd/rtemspppd.c
@@ -6,7 +6,7 @@
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
- *
+ *
* $Id$
*/
diff --git a/cpukit/pppd/rtemspppd.h b/cpukit/pppd/rtemspppd.h
index 8503d402f6..7905b4bb0e 100644
--- a/cpukit/pppd/rtemspppd.h
+++ b/cpukit/pppd/rtemspppd.h
@@ -6,7 +6,7 @@
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
- *
+ *
* $Id$
*/
diff --git a/cpukit/pppd/sys-rtems.c b/cpukit/pppd/sys-rtems.c
index 9d4fd2c683..ac87957c1d 100644
--- a/cpukit/pppd/sys-rtems.c
+++ b/cpukit/pppd/sys-rtems.c
@@ -583,7 +583,7 @@ ppp_send_config(
int unit,
int mtu,
uint32_t asyncmap,
- int pcomp,
+ int pcomp,
int accomp)
{
u_int x;
@@ -626,7 +626,7 @@ ppp_set_xaccm(
*/
void
ppp_recv_config(
- int unit,
+ int unit,
int mru,
uint32_t asyncmap,
int pcomp, int accomp)
@@ -977,7 +977,7 @@ dodefaultroute(
memset((void *) &netmask, 0, sizeof(netmask));
netmask.sin_len = sizeof netmask;
- netmask.sin_addr.s_addr = INADDR_ANY;
+ netmask.sin_addr.s_addr = INADDR_ANY;
netmask.sin_family = AF_INET;
if (cmd=='s') {
diff --git a/cpukit/pppd/upap.c b/cpukit/pppd/upap.c
index 527d05a868..e8115a68c7 100644
--- a/cpukit/pppd/upap.c
+++ b/cpukit/pppd/upap.c
@@ -122,7 +122,7 @@ upap_init(int unit)
void
upap_authwithpeer(
int unit,
- char *user,
+ char *user,
char *password)
{
upap_state *u = &upap[unit];
@@ -505,7 +505,7 @@ upap_sauthreq(upap_state *u)
outlen = UPAP_HEADERLEN + 2 * sizeof (u_char) +
u->us_userlen + u->us_passwdlen;
outp = outpacket_buf;
-
+
MAKEHEADER(outp, PPP_PAP);
PUTCHAR(UPAP_AUTHREQ, outp);
diff --git a/cpukit/rtems/src/clockget.c b/cpukit/rtems/src/clockget.c
index bebc100fd6..03d8ec453f 100644
--- a/cpukit/rtems/src/clockget.c
+++ b/cpukit/rtems/src/clockget.c
@@ -49,21 +49,21 @@ rtems_status_code rtems_clock_get(
return RTEMS_INVALID_ADDRESS;
if ( option == RTEMS_CLOCK_GET_TOD )
- return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
+ return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH )
return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer);
if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) {
rtems_interval *interval = (rtems_interval *)time_buffer;
-
+
*interval = rtems_clock_get_ticks_since_boot();
return RTEMS_SUCCESSFUL;
}
if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) {
rtems_interval *interval = (rtems_interval *)time_buffer;
-
+
*interval = rtems_clock_get_ticks_per_second();
return RTEMS_SUCCESSFUL;
}
diff --git a/cpukit/rtems/src/clockgettod.c b/cpukit/rtems/src/clockgettod.c
index 128fd3480e..4c4e77c2ae 100644
--- a/cpukit/rtems/src/clockgettod.c
+++ b/cpukit/rtems/src/clockgettod.c
@@ -53,6 +53,6 @@ rtems_status_code rtems_clock_get_tod(
tmbuf->second = time.tm_sec;
tmbuf->ticks = now.tv_usec /
rtems_configuration_get_microseconds_per_tick();
-
+
return RTEMS_SUCCESSFUL;
}
diff --git a/cpukit/rtems/src/clockgetuptime.c b/cpukit/rtems/src/clockgetuptime.c
index 9ac834c5f5..b6ea0e5448 100644
--- a/cpukit/rtems/src/clockgetuptime.c
+++ b/cpukit/rtems/src/clockgetuptime.c
@@ -45,7 +45,7 @@ rtems_status_code rtems_clock_get_uptime(
{
if ( !uptime )
return RTEMS_INVALID_ADDRESS;
-
+
_TOD_Get_uptime_as_timespec( uptime );
return RTEMS_SUCCESSFUL;
}
diff --git a/cpukit/rtems/src/clockset.c b/cpukit/rtems/src/clockset.c
index 30127cdc39..bb27697829 100644
--- a/cpukit/rtems/src/clockset.c
+++ b/cpukit/rtems/src/clockset.c
@@ -49,7 +49,7 @@ rtems_status_code rtems_clock_set(
if ( _TOD_Validate( time_buffer ) ) {
newtime.tv_sec = _TOD_To_seconds( time_buffer );
- newtime.tv_nsec = time_buffer->ticks *
+ newtime.tv_nsec = time_buffer->ticks *
rtems_configuration_get_nanoseconds_per_tick();
_Thread_Disable_dispatch();
diff --git a/cpukit/rtems/src/clocktodvalidate.c b/cpukit/rtems/src/clocktodvalidate.c
index 6d0bf45be7..1dac1dc6b1 100644
--- a/cpukit/rtems/src/clocktodvalidate.c
+++ b/cpukit/rtems/src/clocktodvalidate.c
@@ -54,7 +54,7 @@ bool _TOD_Validate(
uint32_t days_in_month;
uint32_t ticks_per_second;
- ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
+ ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
if ((!the_tod) ||
(the_tod->ticks >= ticks_per_second) ||
diff --git a/cpukit/rtems/src/eventsurrender.c b/cpukit/rtems/src/eventsurrender.c
index 904a7e2b07..179727f523 100644
--- a/cpukit/rtems/src/eventsurrender.c
+++ b/cpukit/rtems/src/eventsurrender.c
@@ -75,13 +75,13 @@ void _Event_Surrender(
* If we are in an ISR and sending to the current thread, then
* we have a critical section issue to deal with.
*/
- if ( _ISR_Is_in_progress() &&
+ if ( _ISR_Is_in_progress() &&
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
api->pending_events = _Event_sets_Clear( pending_events,seized_events );
- the_thread->Wait.count = 0;
+ the_thread->Wait.count = 0;
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;
}
diff --git a/cpukit/rtems/src/msg.c b/cpukit/rtems/src/msg.c
index 2f00db3e24..25e65aaaa5 100644
--- a/cpukit/rtems/src/msg.c
+++ b/cpukit/rtems/src/msg.c
@@ -53,7 +53,7 @@ void _Message_queue_Manager_initialization(void)
&_Message_queue_Information, /* object information table */
OBJECTS_CLASSIC_API, /* object API */
OBJECTS_RTEMS_MESSAGE_QUEUES, /* object class */
- Configuration_RTEMS_API.maximum_message_queues,
+ Configuration_RTEMS_API.maximum_message_queues,
/* maximum objects of this class */
sizeof( Message_queue_Control ),
/* size of this object's control block */
diff --git a/cpukit/rtems/src/ratemonperiod.c b/cpukit/rtems/src/ratemonperiod.c
index 5796f0fe07..9d2ed6006a 100644
--- a/cpukit/rtems/src/ratemonperiod.c
+++ b/cpukit/rtems/src/ratemonperiod.c
@@ -61,7 +61,7 @@ void _Rate_monotonic_Initiate_statistics(
* When this routine is invoked from _Rate_monotonic_Timeout, it will not.
*/
#ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS
- if (owning_thread == _Thread_Executing) {
+ if (owning_thread == _Thread_Executing) {
rtems_thread_cpu_usage_t ran;
@@ -126,7 +126,7 @@ void _Rate_monotonic_Update_statistics(
#ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS
{
Thread_CPU_usage_t ran, used;
-
+
/* Grab CPU usage when the thread got switched in */
used = _Thread_Executing->cpu_time_used;
@@ -141,7 +141,7 @@ void _Rate_monotonic_Update_statistics(
_Timestamp_Add_to( &used, &ran );
/* executed = current cpu usage - value at start of period */
- _Timestamp_Subtract(
+ _Timestamp_Subtract(
&the_period->owner_executed_at_period,
&used,
&executed
@@ -163,10 +163,10 @@ void _Rate_monotonic_Update_statistics(
#ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS
_Timestamp_Add_to( &stats->total_cpu_time, &executed );
- if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )
+ if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )
stats->min_cpu_time = executed;
- if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) )
+ if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) )
stats->max_cpu_time = executed;
#else
stats->total_cpu_time += executed;
diff --git a/cpukit/rtems/src/ratemonreportstatistics.c b/cpukit/rtems/src/ratemonreportstatistics.c
index 59bb07c96f..2aa5129bcc 100644
--- a/cpukit/rtems/src/ratemonreportstatistics.c
+++ b/cpukit/rtems/src/ratemonreportstatistics.c
@@ -110,7 +110,7 @@ ididididid NNNN ccccc mmmmmm X
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
if ( status != RTEMS_SUCCESSFUL )
continue;
-
+
/* If the above passed, so should this but check it anyway */
status = rtems_rate_monotonic_get_status( id, &the_status );
#if defined(RTEMS_DEBUG)
@@ -121,7 +121,7 @@ ididididid NNNN ccccc mmmmmm X
rtems_object_get_name( the_status.owner, sizeof(name), name );
/*
- * Print part of report line that is not dependent on granularity
+ * Print part of report line that is not dependent on granularity
*/
(*print)( context,
"0x%08" PRIx32 " %4s %5" PRId32 " %6" PRId32 " ",
diff --git a/cpukit/rtems/src/regionprocessqueue.c b/cpukit/rtems/src/regionprocessqueue.c
index bd138fc686..011e646a6c 100644
--- a/cpukit/rtems/src/regionprocessqueue.c
+++ b/cpukit/rtems/src/regionprocessqueue.c
@@ -51,10 +51,10 @@ void _Region_Process_queue(
* Switch from using the memory allocation mutex to using a
* dispatching disabled critical section. We have to do this
* because this thread may unblock one or more threads that were
- * waiting on memory.
+ * waiting on memory.
*
* NOTE: Be sure to disable dispatching before unlocking the mutex
- * since we do not want to open a window where a context
+ * since we do not want to open a window where a context
* switch could occur.
*/
_Thread_Disable_dispatch();
diff --git a/cpukit/rtems/src/rtemsbuildid.c b/cpukit/rtems/src/rtemsbuildid.c
index 9212ee32dd..916d1dfab5 100644
--- a/cpukit/rtems/src/rtemsbuildid.c
+++ b/cpukit/rtems/src/rtemsbuildid.c
@@ -28,4 +28,4 @@ rtems_id rtems_build_id(
)
{
return _Objects_Build_id( api, class, node, index );
-}
+}
diff --git a/cpukit/rtems/src/rtemsbuildname.c b/cpukit/rtems/src/rtemsbuildname.c
index 7f299863fa..1fbd727297 100644
--- a/cpukit/rtems/src/rtemsbuildname.c
+++ b/cpukit/rtems/src/rtemsbuildname.c
@@ -28,4 +28,4 @@ rtems_name rtems_build_name(
)
{
return _Objects_Build_name( C1, C2, C3, C4 );
-}
+}
diff --git a/cpukit/rtems/src/rtemsobjectgetapiclassname.c b/cpukit/rtems/src/rtemsobjectgetapiclassname.c
index 56cf8a3197..c85da43197 100644
--- a/cpukit/rtems/src/rtemsobjectgetapiclassname.c
+++ b/cpukit/rtems/src/rtemsobjectgetapiclassname.c
@@ -70,13 +70,13 @@ rtems_assoc_t rtems_object_api_itron_assoc[] = {
#endif
const char *rtems_object_get_api_class_name(
- int the_api,
+ int the_api,
int the_class
)
{
const rtems_assoc_t *api_assoc;
const rtems_assoc_t *class_assoc;
-
+
if ( the_api == OBJECTS_INTERNAL_API )
api_assoc = rtems_object_api_internal_assoc;
else if ( the_api == OBJECTS_CLASSIC_API )
diff --git a/cpukit/rtems/src/rtemsobjectgetapiname.c b/cpukit/rtems/src/rtemsobjectgetapiname.c
index 026bd55a7d..d4c2759ece 100644
--- a/cpukit/rtems/src/rtemsobjectgetapiname.c
+++ b/cpukit/rtems/src/rtemsobjectgetapiname.c
@@ -22,10 +22,10 @@
#include <rtems/assoc.h>
rtems_assoc_t rtems_objects_api_assoc[] = {
- { "Internal", OBJECTS_INTERNAL_API, 0},
- { "Classic", OBJECTS_CLASSIC_API, 0},
- { "POSIX", OBJECTS_POSIX_API, 0},
- { "ITRON", OBJECTS_ITRON_API, 0},
+ { "Internal", OBJECTS_INTERNAL_API, 0},
+ { "Classic", OBJECTS_CLASSIC_API, 0},
+ { "POSIX", OBJECTS_POSIX_API, 0},
+ { "ITRON", OBJECTS_ITRON_API, 0},
{ 0, 0, 0 }
};
diff --git a/cpukit/rtems/src/rtemsobjectgetname.c b/cpukit/rtems/src/rtemsobjectgetname.c
index 0f03924348..c414d2e478 100644
--- a/cpukit/rtems/src/rtemsobjectgetname.c
+++ b/cpukit/rtems/src/rtemsobjectgetname.c
@@ -30,4 +30,4 @@ char *rtems_object_get_name(
)
{
return _Objects_Get_name_as_string( id, length, name );
-}
+}
diff --git a/cpukit/rtems/src/rtemsobjectidgetapi.c b/cpukit/rtems/src/rtemsobjectidgetapi.c
index 999d5702f0..859e4b5bc6 100644
--- a/cpukit/rtems/src/rtemsobjectidgetapi.c
+++ b/cpukit/rtems/src/rtemsobjectidgetapi.c
@@ -25,4 +25,4 @@ int rtems_object_id_get_api(
)
{
return _Objects_Get_API( id );
-}
+}
diff --git a/cpukit/rtems/src/rtemsobjectidgetclass.c b/cpukit/rtems/src/rtemsobjectidgetclass.c
index db31e794e8..fe85050c4a 100644
--- a/cpukit/rtems/src/rtemsobjectidgetclass.c
+++ b/cpukit/rtems/src/rtemsobjectidgetclass.c
@@ -25,4 +25,4 @@ int rtems_object_id_get_class(
)
{
return _Objects_Get_class( id );
-}
+}
diff --git a/cpukit/rtems/src/rtemsobjectidgetindex.c b/cpukit/rtems/src/rtemsobjectidgetindex.c
index 167b238767..67f795be8d 100644
--- a/cpukit/rtems/src/rtemsobjectidgetindex.c
+++ b/cpukit/rtems/src/rtemsobjectidgetindex.c
@@ -25,4 +25,4 @@ int rtems_object_id_get_index(
)
{
return _Objects_Get_index( id );
-}
+}
diff --git a/cpukit/rtems/src/rtemsobjectidgetnode.c b/cpukit/rtems/src/rtemsobjectidgetnode.c
index b6278050f9..5dfae4b1f9 100644
--- a/cpukit/rtems/src/rtemsobjectidgetnode.c
+++ b/cpukit/rtems/src/rtemsobjectidgetnode.c
@@ -25,4 +25,4 @@ int rtems_object_id_get_node(
)
{
return _Objects_Get_node( id );
-}
+}
diff --git a/cpukit/rtems/src/rtemsobjectsetname.c b/cpukit/rtems/src/rtemsobjectsetname.c
index 42a5f5f235..91fac13e7c 100644
--- a/cpukit/rtems/src/rtemsobjectsetname.c
+++ b/cpukit/rtems/src/rtemsobjectsetname.c
@@ -44,7 +44,7 @@ rtems_status_code rtems_object_set_name(
information = _Objects_Get_information_id( tmpId );
if ( !information )
return RTEMS_INVALID_ID;
-
+
the_object = _Objects_Get( information, tmpId, &location );
switch ( location ) {
diff --git a/cpukit/rtems/src/semcreate.c b/cpukit/rtems/src/semcreate.c
index 27da93a603..49cffc8e10 100644
--- a/cpukit/rtems/src/semcreate.c
+++ b/cpukit/rtems/src/semcreate.c
@@ -196,7 +196,7 @@ rtems_status_code rtems_semaphore_create(
&the_semaphore->Core_control.mutex,
&the_mutex_attr,
(count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED
- );
+ );
if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) {
_Semaphore_Free( the_semaphore );
diff --git a/cpukit/rtems/src/taskgetnote.c b/cpukit/rtems/src/taskgetnote.c
index b3983f322a..dda1ddb7ae 100644
--- a/cpukit/rtems/src/taskgetnote.c
+++ b/cpukit/rtems/src/taskgetnote.c
@@ -63,7 +63,7 @@ rtems_status_code rtems_task_get_note(
if ( !rtems_configuration_get_notepads_enabled() )
return RTEMS_NOT_CONFIGURED;
-
+
if ( !note )
return RTEMS_INVALID_ADDRESS;
diff --git a/cpukit/rtems/src/tasksetnote.c b/cpukit/rtems/src/tasksetnote.c
index e104ba5069..45825aeb46 100644
--- a/cpukit/rtems/src/tasksetnote.c
+++ b/cpukit/rtems/src/tasksetnote.c
@@ -61,7 +61,7 @@ rtems_status_code rtems_task_set_note(
if ( !rtems_configuration_get_notepads_enabled() )
return RTEMS_NOT_CONFIGURED;
-
+
/*
* NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would
* be checking an unsigned number for being negative.
diff --git a/cpukit/rtems/src/taskvariabledelete.c b/cpukit/rtems/src/taskvariabledelete.c
index e376c0167e..fe34732f57 100644
--- a/cpukit/rtems/src/taskvariabledelete.c
+++ b/cpukit/rtems/src/taskvariabledelete.c
@@ -49,7 +49,7 @@ rtems_status_code rtems_task_variable_delete(
if (tvp->ptr == ptr) {
if (prev)
prev->next = tvp->next;
- else
+ else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
_RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );
diff --git a/cpukit/score/cpu/avr/avr/boot.h b/cpukit/score/cpu/avr/avr/boot.h
index 562f401a85..b7c8dafdff 100644
--- a/cpukit/score/cpu/avr/avr/boot.h
+++ b/cpukit/score/cpu/avr/avr/boot.h
@@ -43,8 +43,8 @@
macros are designed to work with all sizes of flash memory.
Global interrupts are not automatically disabled for these macros. It
- is left up to the programmer to do this. See the code example below.
- Also see the processor datasheet for caveats on having global interrupts
+ is left up to the programmer to do this. See the code example below.
+ Also see the processor datasheet for caveats on having global interrupts
enabled during writing of the Flash.
\note Not all AVR processors provide bootloader support. See your
@@ -62,7 +62,7 @@
#include <inttypes.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
-
+
void boot_program_page (uint32_t page, uint8_t *buf)
{
uint16_t i;
@@ -72,7 +72,7 @@
sreg = SREG;
cli();
-
+
eeprom_busy_wait ();
boot_page_erase (page);
@@ -84,7 +84,7 @@
uint16_t w = *buf++;
w += (*buf++) << 8;
-
+
boot_page_fill (page + i, w);
}
@@ -379,11 +379,11 @@
If bits 5..2 in R0 are cleared (zero), the corresponding Boot Lock bit
will be programmed if an SPM instruction is executed within four cycles
- after BLBSET and SPMEN (or SELFPRGEN) are set in SPMCR. The Z-pointer is
- don't care during this operation, but for future compatibility it is
- recommended to load the Z-pointer with $0001 (same as used for reading the
- Lock bits). For future compatibility It is also recommended to set bits 7,
- 6, 1, and 0 in R0 to 1 when writing the Lock bits. When programming the
+ after BLBSET and SPMEN (or SELFPRGEN) are set in SPMCR. The Z-pointer is
+ don't care during this operation, but for future compatibility it is
+ recommended to load the Z-pointer with $0001 (same as used for reading the
+ Lock bits). For future compatibility It is also recommended to set bits 7,
+ 6, 1, and 0 in R0 to 1 when writing the Lock bits. When programming the
Lock bits the entire Flash can be read during the operation. */
#define __boot_lock_bits_set(lock_bits) \
@@ -427,8 +427,8 @@
/*
Reading lock and fuse bits:
- Similarly to writing the lock bits above, set BLBSET and SPMEN (or
- SELFPRGEN) bits in __SPMREG, and then (within four clock cycles) issue an
+ Similarly to writing the lock bits above, set BLBSET and SPMEN (or
+ SELFPRGEN) bits in __SPMREG, and then (within four clock cycles) issue an
LPM instruction.
Z address: contents:
@@ -526,13 +526,13 @@
/** \ingroup avr_boot
\def boot_page_fill(address, data)
- Fill the bootloader temporary page buffer for flash
- address with data word.
+ Fill the bootloader temporary page buffer for flash
+ address with data word.
- \note The address is a byte address. The data is a word. The AVR
+ \note The address is a byte address. The data is a word. The AVR
writes data to the buffer a word at a time, but addresses the buffer
per byte! So, increment your address by 2 between calls, and send 2
- data bytes in a word format! The LSB of the data is written to the lower
+ data bytes in a word format! The LSB of the data is written to the lower
address; the MSB of the data is written to the higher address.*/
/** \ingroup avr_boot
@@ -545,9 +545,9 @@
/** \ingroup avr_boot
\def boot_page_write(address)
- Write the bootloader temporary page buffer
+ Write the bootloader temporary page buffer
to flash page that contains address.
-
+
\note address is a byte address in flash, not a word address. */
/** \ingroup avr_boot
@@ -582,7 +582,7 @@
instruction sequences after LPM.
FLASHEND is defined in the ioXXXX.h file.
- USHRT_MAX is defined in <limits.h>. */
+ USHRT_MAX is defined in <limits.h>. */
#if defined(__AVR_ATmega161__) || defined(__AVR_ATmega163__) \
|| defined(__AVR_ATmega323__)
diff --git a/cpukit/score/cpu/avr/avr/common.h b/cpukit/score/cpu/avr/avr/common.h
index 1df2bf7e72..ab464ab1b8 100644
--- a/cpukit/score/cpu/avr/avr/common.h
+++ b/cpukit/score/cpu/avr/avr/common.h
@@ -36,9 +36,9 @@
#include <avr/sfr_defs.h>
-/*
-This purpose of this header is to define registers that have not been
-previously defined in the individual device IO header files, and to define
+/*
+This purpose of this header is to define registers that have not been
+previously defined in the individual device IO header files, and to define
other symbols that are common across AVR device families.
This file is designed to be included in <avr/io.h> after the individual
@@ -48,7 +48,7 @@ device IO header files, and after <avr/sfr_defs.h>
/*------------ Registers Not Previously Defined ------------*/
-/*
+/*
These are registers that are not previously defined in the individual
IO header files, OR they are defined here because they are used in parts of
avr-libc even if a device is not selected but a general architecture has
@@ -59,7 +59,7 @@ been selected.
/*
Stack pointer register.
-AVR architecture 1 has no RAM, thus no stack pointer.
+AVR architecture 1 has no RAM, thus no stack pointer.
All other architectures do have a stack pointer. Some devices have only
less than 256 bytes of possible RAM locations (128 Bytes of SRAM
@@ -76,7 +76,7 @@ for them.
# ifndef SP
# define SP _SFR_MEM16(0x3D)
# endif
-#elif __AVR_ARCH__ != 1
+#elif __AVR_ARCH__ != 1
# ifndef SPL
# define SPL _SFR_IO8(0x3D)
# endif
@@ -193,7 +193,7 @@ keep the EEPROM-related definitions here.
/*------------ Common Symbols ------------*/
-/*
+/*
Generic definitions for registers that are common across multiple AVR devices
and families.
*/
diff --git a/cpukit/score/cpu/avr/avr/eeprom.h b/cpukit/score/cpu/avr/avr/eeprom.h
index 3247cb0a3c..5d2cc4f445 100644
--- a/cpukit/score/cpu/avr/avr/eeprom.h
+++ b/cpukit/score/cpu/avr/avr/eeprom.h
@@ -185,7 +185,7 @@ void __eewr_block (void *, const void *, size_t, void (*)(uint8_t *, uint8_t));
\ingroup avr_eeprom
Loops until the eeprom is no longer busy.
\returns Nothing.
- */
+ */
#define eeprom_busy_wait() do {} while (!eeprom_is_ready())
@@ -201,7 +201,7 @@ __ATTR_PURE__ static __inline__ uint8_t eeprom_read_byte (const uint8_t *__p)
EEAR = (size_t)__p;
#endif
/* Use inline assembly below as some AVRs have problems with accessing
- EECR with STS instructions. For example, see errata for ATmega64.
+ EECR with STS instructions. For example, see errata for ATmega64.
The code below also assumes that EECR and EEDR are in the I/O space.
*/
uint8_t __result;
diff --git a/cpukit/score/cpu/avr/avr/fuse.h b/cpukit/score/cpu/avr/avr/fuse.h
index 8e43f898c3..3ba09366f0 100644
--- a/cpukit/score/cpu/avr/avr/fuse.h
+++ b/cpukit/score/cpu/avr/avr/fuse.h
@@ -49,37 +49,37 @@
the ELF file, by extracting this information and determining if the fuses
need to be programmed before programming the Flash and EEPROM memories.
This also allows a single ELF file to contain all the
- information needed to program an AVR.
+ information needed to program an AVR.
To use the Fuse API, include the <avr/io.h> header file, which in turn
automatically includes the individual I/O header file and the <avr/fuse.h>
file. These other two files provides everything necessary to set the AVR
fuses.
-
+
\par Fuse API
-
+
Each I/O header file must define the FUSE_MEMORY_SIZE macro which is
defined to the number of fuse bytes that exist in the AVR device.
-
- A new type, __fuse_t, is defined as a structure. The number of fields in
- this structure are determined by the number of fuse bytes in the
+
+ A new type, __fuse_t, is defined as a structure. The number of fields in
+ this structure are determined by the number of fuse bytes in the
FUSE_MEMORY_SIZE macro.
-
+
If FUSE_MEMORY_SIZE == 1, there is only a single field: byte, of type
unsigned char.
-
+
If FUSE_MEMORY_SIZE == 2, there are two fields: low, and high, of type
unsigned char.
-
+
If FUSE_MEMORY_SIZE == 3, there are three fields: low, high, and extended,
of type unsigned char.
-
+
If FUSE_MEMORY_SIZE > 3, there is a single field: byte, which is an array
of unsigned char with the size of the array being FUSE_MEMORY_SIZE.
-
- A convenience macro, FUSEMEM, is defined as a GCC attribute for a
+
+ A convenience macro, FUSEMEM, is defined as a GCC attribute for a
custom-named section of ".fuse".
-
+
A convenience macro, FUSES, is defined that declares a variable, __fuse, of
type __fuse_t with the attribute defined by FUSEMEM. This variable
allows the end user to easily set the fuse data.
@@ -97,20 +97,20 @@
\code
#define FUSE_EESAVE ~_BV(3)
\endcode
- \note The _BV macro creates a bit mask from a bit number. It is then
+ \note The _BV macro creates a bit mask from a bit number. It is then
inverted to represent logical values for a fuse memory byte.
-
+
To combine the fuse bits macros together to represent a whole fuse byte,
use the bitwise AND operator, like so:
\code
(FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_EESAVE & FUSE_SPIEN & FUSE_JTAGEN)
\endcode
-
+
Each device I/O header file also defines macros that provide default values
for each fuse byte that is available. LFUSE_DEFAULT is defined for a Low
Fuse byte. HFUSE_DEFAULT is defined for a High Fuse byte. EFUSE_DEFAULT
is defined for an Extended Fuse byte.
-
+
If FUSE_MEMORY_SIZE > 3, then the I/O header file defines macros that
provide default values for each fuse byte like so:
FUSE0_DEFAULT
@@ -119,15 +119,15 @@
FUSE3_DEFAULT
FUSE4_DEFAULT
....
-
+
\par API Usage Example
-
+
Putting all of this together is easy. Using C99's designated initializers:
-
+
\code
#include <avr/io.h>
- FUSES =
+ FUSES =
{
.low = LFUSE_DEFAULT,
.high = (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_EESAVE & FUSE_SPIEN & FUSE_JTAGEN),
@@ -139,13 +139,13 @@
return 0;
}
\endcode
-
+
Or, using the variable directly instead of the FUSES macro,
-
+
\code
#include <avr/io.h>
- __fuse_t __fuse __attribute__((section (".fuse"))) =
+ __fuse_t __fuse __attribute__((section (".fuse"))) =
{
.low = LFUSE_DEFAULT,
.high = (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_EESAVE & FUSE_SPIEN & FUSE_JTAGEN),
@@ -157,14 +157,14 @@
return 0;
}
\endcode
-
+
If you are compiling in C++, you cannot use the designated intializers so
you must do:
\code
#include <avr/io.h>
- FUSES =
+ FUSES =
{
LFUSE_DEFAULT, // .low
(FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_EESAVE & FUSE_SPIEN & FUSE_JTAGEN), // .high
@@ -176,33 +176,33 @@
return 0;
}
\endcode
-
-
+
+
However there are a number of caveats that you need to be aware of to
use this API properly.
-
+
Be sure to include <avr/io.h> to get all of the definitions for the API.
- The FUSES macro defines a global variable to store the fuse data. This
- variable is assigned to its own linker section. Assign the desired fuse
+ The FUSES macro defines a global variable to store the fuse data. This
+ variable is assigned to its own linker section. Assign the desired fuse
values immediately in the variable initialization.
-
- The .fuse section in the ELF file will get its values from the initial
- variable assignment ONLY. This means that you can NOT assign values to
+
+ The .fuse section in the ELF file will get its values from the initial
+ variable assignment ONLY. This means that you can NOT assign values to
this variable in functions and the new values will not be put into the
ELF .fuse section.
-
- The global variable is declared in the FUSES macro has two leading
+
+ The global variable is declared in the FUSES macro has two leading
underscores, which means that it is reserved for the "implementation",
meaning the library, so it will not conflict with a user-named variable.
-
+
You must initialize ALL fields in the __fuse_t structure. This is because
- the fuse bits in all bytes default to a logical 1, meaning unprogrammed.
+ the fuse bits in all bytes default to a logical 1, meaning unprogrammed.
Normal uninitialized data defaults to all locgial zeros. So it is vital that
all fuse bytes are initialized, even with default data. If they are not,
then the fuse bits may not programmed to the desired settings.
-
+
Be sure to have the -mmcu=<em>device</em> flag in your compile command line and
- your linker command line to have the correct device selected and to have
+ your linker command line to have the correct device selected and to have
the correct I/O header file included when you include <avr/io.h>.
You can print out the contents of the .fuse section in the ELF file by
diff --git a/cpukit/score/cpu/avr/avr/interrupt.h b/cpukit/score/cpu/avr/avr/interrupt.h
index 9b10b414b4..339e3a13e6 100644
--- a/cpukit/score/cpu/avr/avr/interrupt.h
+++ b/cpukit/score/cpu/avr/avr/interrupt.h
@@ -42,16 +42,16 @@
#define __STRINGIFY(x) #x
#endif /* !defined(__DOXYGEN__) */
-/**
-\file
-\@{
+/**
+\file
+\@{
*/
/** \name Global manipulation of the interrupt flag
The global interrupt flag is maintained in the I bit of the status
- register (SREG).
+ register (SREG).
*/
#if defined(__DOXYGEN__)
@@ -209,7 +209,7 @@
}
ISR_ALIAS(INT1_vect, INT0_vect);
- \endcode
+ \endcode
*/
# define ISR_ALIAS(vector, target_vector)
#else /* real code */
diff --git a/cpukit/score/cpu/avr/avr/io.h b/cpukit/score/cpu/avr/avr/io.h
index c5437b9b6f..409d3c69bb 100644
--- a/cpukit/score/cpu/avr/avr/io.h
+++ b/cpukit/score/cpu/avr/avr/io.h
@@ -45,7 +45,7 @@
but most of the details come from the respective include file.
Note that this file always includes the following files:
- \code
+ \code
#include <avr/sfr_defs.h>
#include <avr/portpins.h>
#include <avr/common.h>
@@ -71,8 +71,8 @@
<br>
- \b XRAMEND
<br>
- The last possible RAM location that is addressable. This is equal to
- RAMEND for devices that do not allow for external RAM. For devices
+ The last possible RAM location that is addressable. This is equal to
+ RAMEND for devices that do not allow for external RAM. For devices
that allow external RAM, this will be larger than RAMEND.
<br>
- \b E2END
@@ -86,11 +86,11 @@
- \b SPM_PAGESIZE
<br>
For devices with bootloader support, the flash pagesize
- (in bytes) to be used for the \c SPM instruction.
+ (in bytes) to be used for the \c SPM instruction.
- \b E2PAGESIZE
<br>
The size of the EEPROM page.
-
+
*/
#ifndef _AVR_IO_H_
diff --git a/cpukit/score/cpu/avr/avr/io1200.h b/cpukit/score/cpu/avr/avr/io1200.h
index 6268b26fe9..4d8165ef38 100644
--- a/cpukit/score/cpu/avr/avr/io1200.h
+++ b/cpukit/score/cpu/avr/avr/io1200.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io1200.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef __ASSEMBLER__
# warning "MCU not supported by the C compiler"
diff --git a/cpukit/score/cpu/avr/avr/io2313.h b/cpukit/score/cpu/avr/avr/io2313.h
index 4069ff1413..780a8bbe0d 100644
--- a/cpukit/score/cpu/avr/avr/io2313.h
+++ b/cpukit/score/cpu/avr/avr/io2313.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io2313.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -190,48 +190,48 @@
/*
* The Register Bit names are represented by their bit number (0-7).
- */
-
+ */
+
/* General Interrupt MaSK register */
#define INT1 7
#define INT0 6
-
+
/* General Interrupt Flag Register */
#define INTF1 7
#define INTF0 6
-
-/* Timer/Counter Interrupt MaSK register */
+
+/* Timer/Counter Interrupt MaSK register */
#define TOIE1 7
#define OCIE1A 6
-#define TICIE 3 /* old name */
+#define TICIE 3 /* old name */
#define TICIE1 3
#define TOIE0 1
-
-/* Timer/Counter Interrupt Flag register */
+
+/* Timer/Counter Interrupt Flag register */
#define TOV1 7
#define OCF1A 6
#define ICF1 3
#define TOV0 1
-
-/* MCU general Control Register */
+
+/* MCU general Control Register */
#define SE 5
#define SM 4
#define ISC11 3
#define ISC10 2
#define ISC01 1
#define ISC00 0
-
+
/* Timer/Counter 0 Control Register */
#define CS02 2
#define CS01 1
#define CS00 0
-
+
/* Timer/Counter 1 Control Register */
#define COM1A1 7
#define COM1A0 6
#define PWM11 1
#define PWM10 0
-
+
/* Timer/Counter 1 Control and Status Register */
#define ICNC1 7
#define ICES1 6
@@ -239,20 +239,20 @@
#define CS12 2
#define CS11 1
#define CS10 0
-
+
/* Watchdog Timer Control Register */
#define WDTOE 4
#define WDE 3
#define WDP2 2
#define WDP1 1
#define WDP0 0
-
+
/* EEPROM Control Register */
#define EEMWE 2
#define EEWE 1
#define EERE 0
-
-/* Data Register, Port B */
+
+/* Data Register, Port B */
#define PB7 7
#define PB6 6
#define PB5 5
@@ -261,7 +261,7 @@
#define PB2 2
#define PB1 1
#define PB0 0
-
+
/* Data Direction Register, Port B */
#define DDB7 7
#define DDB6 6
@@ -271,7 +271,7 @@
#define DDB2 2
#define DDB1 1
#define DDB0 0
-
+
/* Input Pins, Port B */
#define PINB7 7
#define PINB6 6
@@ -281,7 +281,7 @@
#define PINB2 2
#define PINB1 1
#define PINB0 0
-
+
/* Data Register, Port D */
#define PD6 6
#define PD5 5
@@ -290,7 +290,7 @@
#define PD2 2
#define PD1 1
#define PD0 0
-
+
/* Data Direction Register, Port D */
#define DDD6 6
#define DDD5 5
@@ -299,7 +299,7 @@
#define DDD2 2
#define DDD1 1
#define DDD0 0
-
+
/* Input Pins, Port D */
#define PIND6 6
#define PIND5 5
@@ -308,14 +308,14 @@
#define PIND2 2
#define PIND1 1
#define PIND0 0
-
+
/* UART Status Register */
#define RXC 7
#define TXC 6
#define UDRE 5
#define FE 4
#define DOR 3
-
+
/* UART Control Register */
#define RXCIE 7
#define TXCIE 6
@@ -325,8 +325,8 @@
#define CHR9 2
#define RXB8 1
#define TXB8 0
-
-/* Analog Comparator Control and Status Register */
+
+/* Analog Comparator Control and Status Register */
#define ACD 7
#define ACO 5
#define ACI 4
@@ -340,8 +340,8 @@
#define EEMWE 2
#define EEWE 1
#define EERE 0
-
-/* Constants */
+
+/* Constants */
#define RAMEND 0xDF
#define XRAMEND RAMEND
#define E2END 0x7F
diff --git a/cpukit/score/cpu/avr/avr/io2323.h b/cpukit/score/cpu/avr/avr/io2323.h
index b0da337466..97984fae66 100644
--- a/cpukit/score/cpu/avr/avr/io2323.h
+++ b/cpukit/score/cpu/avr/avr/io2323.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io2323.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
diff --git a/cpukit/score/cpu/avr/avr/io2333.h b/cpukit/score/cpu/avr/avr/io2333.h
index c239144b1d..5119dbb5e5 100644
--- a/cpukit/score/cpu/avr/avr/io2333.h
+++ b/cpukit/score/cpu/avr/avr/io2333.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io2333.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
diff --git a/cpukit/score/cpu/avr/avr/io2343.h b/cpukit/score/cpu/avr/avr/io2343.h
index 1e952d3fd9..9fa8446002 100644
--- a/cpukit/score/cpu/avr/avr/io2343.h
+++ b/cpukit/score/cpu/avr/avr/io2343.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io2343.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
diff --git a/cpukit/score/cpu/avr/avr/io43u32x.h b/cpukit/score/cpu/avr/avr/io43u32x.h
index 750920f9ae..42de40eb97 100644
--- a/cpukit/score/cpu/avr/avr/io43u32x.h
+++ b/cpukit/score/cpu/avr/avr/io43u32x.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io43u32x.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -71,7 +71,7 @@
#define DDRE _SFR_IO8(0x02)
/* Data Register, Port E */
-#define PORTE _SFR_IO8(0x03)
+#define PORTE _SFR_IO8(0x03)
/* SPI Control Register */
#define SPCR _SFR_IO8(0x0D)
diff --git a/cpukit/score/cpu/avr/avr/io43u35x.h b/cpukit/score/cpu/avr/avr/io43u35x.h
index 364e2776bc..6a87ed7542 100644
--- a/cpukit/score/cpu/avr/avr/io43u35x.h
+++ b/cpukit/score/cpu/avr/avr/io43u35x.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io43u35x.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -417,7 +417,7 @@
#define ADIE 3
#define ADPS2 2
#define ADPS1 1
-#define ADPS0 0
+#define ADPS0 0
/* Constants */
#define RAMEND 0x045F /*Last On-Chip SRAM Location*/
diff --git a/cpukit/score/cpu/avr/avr/io4414.h b/cpukit/score/cpu/avr/avr/io4414.h
index ec6b8bf5a3..2f3ec5f47b 100644
--- a/cpukit/score/cpu/avr/avr/io4414.h
+++ b/cpukit/score/cpu/avr/avr/io4414.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io4414.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
diff --git a/cpukit/score/cpu/avr/avr/io4433.h b/cpukit/score/cpu/avr/avr/io4433.h
index 1452e85044..17e5ed41cd 100644
--- a/cpukit/score/cpu/avr/avr/io4433.h
+++ b/cpukit/score/cpu/avr/avr/io4433.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io4433.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
diff --git a/cpukit/score/cpu/avr/avr/io4434.h b/cpukit/score/cpu/avr/avr/io4434.h
index e8231f0907..d4d0017dce 100644
--- a/cpukit/score/cpu/avr/avr/io4434.h
+++ b/cpukit/score/cpu/avr/avr/io4434.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io4434.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
diff --git a/cpukit/score/cpu/avr/avr/io76c711.h b/cpukit/score/cpu/avr/avr/io76c711.h
index dec1d52844..27b29352aa 100644
--- a/cpukit/score/cpu/avr/avr/io76c711.h
+++ b/cpukit/score/cpu/avr/avr/io76c711.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io76c711.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
diff --git a/cpukit/score/cpu/avr/avr/io8515.h b/cpukit/score/cpu/avr/avr/io8515.h
index f9fa50de75..9c65136c66 100644
--- a/cpukit/score/cpu/avr/avr/io8515.h
+++ b/cpukit/score/cpu/avr/avr/io8515.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io8515.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
diff --git a/cpukit/score/cpu/avr/avr/io8534.h b/cpukit/score/cpu/avr/avr/io8534.h
index d1a88c3f01..e1cacb42e9 100644
--- a/cpukit/score/cpu/avr/avr/io8534.h
+++ b/cpukit/score/cpu/avr/avr/io8534.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io8534.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
diff --git a/cpukit/score/cpu/avr/avr/io8535.h b/cpukit/score/cpu/avr/avr/io8535.h
index 5a4bf4a175..f89007eb05 100644
--- a/cpukit/score/cpu/avr/avr/io8535.h
+++ b/cpukit/score/cpu/avr/avr/io8535.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io8535.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
diff --git a/cpukit/score/cpu/avr/avr/io86r401.h b/cpukit/score/cpu/avr/avr/io86r401.h
index 5fa29c25b4..a8325b625f 100644
--- a/cpukit/score/cpu/avr/avr/io86r401.h
+++ b/cpukit/score/cpu/avr/avr/io86r401.h
@@ -83,7 +83,7 @@
#define BTCNT _SFR_IO8(0x20)
-/*
+/*
NOTE: EEPROM name's changed to have D in front on them, per datasheet, but
you may want to remove the leading D.
*/
diff --git a/cpukit/score/cpu/avr/avr/io90pwm1.h b/cpukit/score/cpu/avr/avr/io90pwm1.h
index 2277154656..ac0fc940ff 100644
--- a/cpukit/score/cpu/avr/avr/io90pwm1.h
+++ b/cpukit/score/cpu/avr/avr/io90pwm1.h
@@ -46,7 +46,7 @@
# define _AVR_IOXXX_H_ "iopwm1.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -1115,7 +1115,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
#endif /* _AVR_IOPWM1_H_ */
diff --git a/cpukit/score/cpu/avr/avr/io90pwm216.h b/cpukit/score/cpu/avr/avr/io90pwm216.h
index 14ad598dc1..40591a2416 100644
--- a/cpukit/score/cpu/avr/avr/io90pwm216.h
+++ b/cpukit/score/cpu/avr/avr/io90pwm216.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io90pwm216.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -1169,7 +1169,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/io90pwm2b.h b/cpukit/score/cpu/avr/avr/io90pwm2b.h
index 59335f716c..2de8304141 100644
--- a/cpukit/score/cpu/avr/avr/io90pwm2b.h
+++ b/cpukit/score/cpu/avr/avr/io90pwm2b.h
@@ -26,7 +26,7 @@
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
+ POSSIBILITY OF SUCH DAMAGE.
*/
/* $Id$ */
@@ -43,7 +43,7 @@
# define _AVR_IOXXX_H_ "io90pwm2b.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_IO90PWM2B_H_
@@ -80,7 +80,7 @@
#define PORTB5 5
#define PORTB6 6
#define PORTB7 7
-
+
#define PINC _SFR_IO8(0x06)
#define PINC0 0
#define PINC1 1
@@ -818,7 +818,7 @@
#define STP0 0
#define STP1 1
#define F1617 2
-#define FEM 3
+#define FEM 3
#define MUBRR _SFR_MEM16(0xCC)
@@ -1363,7 +1363,7 @@
#define FUSE_SPIEN (unsigned char)~_BV(5) /* Enable Serial programming and Data Downloading */
#define FUSE_DWEN (unsigned char)~_BV(6) /* debugWIRE Enable */
#define FUSE_RSTDISBL (unsigned char)~_BV(7) /* External Reset Disable */
-#define HFUSE_DEFAULT (FUSE_SPIEN)
+#define HFUSE_DEFAULT (FUSE_SPIEN)
/* Extended Fuse Byte */
@@ -1380,7 +1380,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/io90pwm316.h b/cpukit/score/cpu/avr/avr/io90pwm316.h
index f4f27f3ee3..4141f4e08e 100644
--- a/cpukit/score/cpu/avr/avr/io90pwm316.h
+++ b/cpukit/score/cpu/avr/avr/io90pwm316.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io90pwm316.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -1212,7 +1212,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/io90pwm3b.h b/cpukit/score/cpu/avr/avr/io90pwm3b.h
index aba1b7dffa..38a91d09a1 100644
--- a/cpukit/score/cpu/avr/avr/io90pwm3b.h
+++ b/cpukit/score/cpu/avr/avr/io90pwm3b.h
@@ -26,7 +26,7 @@
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
+ POSSIBILITY OF SUCH DAMAGE.
*/
/* $Id$ */
@@ -43,7 +43,7 @@
# define _AVR_IOXXX_H_ "io90pwm3b.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_IO90PWM3B_H_
@@ -80,7 +80,7 @@
#define PORTB5 5
#define PORTB6 6
#define PORTB7 7
-
+
#define PINC _SFR_IO8(0x06)
#define PINC0 0
#define PINC1 1
@@ -818,7 +818,7 @@
#define STP0 0
#define STP1 1
#define F1617 2
-#define FEM 3
+#define FEM 3
#define MUBRR _SFR_MEM16(0xCC)
@@ -1363,7 +1363,7 @@
#define FUSE_SPIEN (unsigned char)~_BV(5) /* Enable Serial programming and Data Downloading */
#define FUSE_DWEN (unsigned char)~_BV(6) /* debugWIRE Enable */
#define FUSE_RSTDISBL (unsigned char)~_BV(7) /* External Reset Disable */
-#define HFUSE_DEFAULT (FUSE_SPIEN)
+#define HFUSE_DEFAULT (FUSE_SPIEN)
/* Extended Fuse Byte */
@@ -1380,7 +1380,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/io90pwm81.h b/cpukit/score/cpu/avr/avr/io90pwm81.h
index 0844a4ef8c..8aae75fe2d 100644
--- a/cpukit/score/cpu/avr/avr/io90pwm81.h
+++ b/cpukit/score/cpu/avr/avr/io90pwm81.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "io90pwm81.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_AT90PWM81_H_
diff --git a/cpukit/score/cpu/avr/avr/io90pwmx.h b/cpukit/score/cpu/avr/avr/io90pwmx.h
index 40bf324727..8739837211 100644
--- a/cpukit/score/cpu/avr/avr/io90pwmx.h
+++ b/cpukit/score/cpu/avr/avr/io90pwmx.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "io90pwmX.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -1365,7 +1365,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
#endif /* _AVR_IO90PWMX_H_ */
diff --git a/cpukit/score/cpu/avr/avr/io90scr100.h b/cpukit/score/cpu/avr/avr/io90scr100.h
index c863b391ac..7754605120 100644
--- a/cpukit/score/cpu/avr/avr/io90scr100.h
+++ b/cpukit/score/cpu/avr/avr/io90scr100.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "io90scr100.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_AT90SCR100_H_
diff --git a/cpukit/score/cpu/avr/avr/ioa6289.h b/cpukit/score/cpu/avr/avr/ioa6289.h
index 9ac279cbe2..afaf8387c0 100644
--- a/cpukit/score/cpu/avr/avr/ioa6289.h
+++ b/cpukit/score/cpu/avr/avr/ioa6289.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "ioa6289.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATA6289_H_
diff --git a/cpukit/score/cpu/avr/avr/ioat94k.h b/cpukit/score/cpu/avr/avr/ioat94k.h
index 40d19dd695..bd41d52215 100644
--- a/cpukit/score/cpu/avr/avr/ioat94k.h
+++ b/cpukit/score/cpu/avr/avr/ioat94k.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "ioat94k.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -210,33 +210,33 @@
/* Interrupt vectors */
-#define SIG_FPGA_INTERRUPT0 _VECTOR(1) /* FPGA_INT0 */
+#define SIG_FPGA_INTERRUPT0 _VECTOR(1) /* FPGA_INT0 */
#define SIG_INTERRUPT0 _VECTOR(2) /* EXT_INT0 */
-#define SIG_FPGA_INTERRUPT1 _VECTOR(3) /* FPGA_INT1 */
+#define SIG_FPGA_INTERRUPT1 _VECTOR(3) /* FPGA_INT1 */
#define SIG_INTERRUPT1 _VECTOR(4) /* EXT_INT1 */
-#define SIG_FPGA_INTERRUPT2 _VECTOR(5) /* FPGA_INT2 */
+#define SIG_FPGA_INTERRUPT2 _VECTOR(5) /* FPGA_INT2 */
#define SIG_INTERRUPT2 _VECTOR(6) /* EXT_INT2 */
-#define SIG_FPGA_INTERRUPT3 _VECTOR(7) /* FPGA_INT3 */
+#define SIG_FPGA_INTERRUPT3 _VECTOR(7) /* FPGA_INT3 */
#define SIG_INTERRUPT3 _VECTOR(8) /* EXT_INT3 */
-#define SIG_OUTPUT_COMPARE2 _VECTOR(9) /* TIM2_COMP */
-#define SIG_OVERFLOW2 _VECTOR(10) /* TIM2_OVF */
-#define SIG_INPUT_CAPTURE1 _VECTOR(11) /* TIM1_CAPT */
-#define SIG_OUTPUT_COMPARE1A _VECTOR(12) /* TIM1_COMPA */
-#define SIG_OUTPUT_COMPARE1B _VECTOR(13) /* TIM1_COMPB */
-#define SIG_OVERFLOW1 _VECTOR(14) /* TIM1_OVF */
-#define SIG_OUTPUT_COMPARE0 _VECTOR(15) /* TIM0_COMP */
-#define SIG_OVERFLOW0 _VECTOR(16) /* TIM0_OVF */
-#define SIG_FPGA_INTERRUPT4 _VECTOR(17) /* FPGA_INT4 */
-#define SIG_FPGA_INTERRUPT5 _VECTOR(18) /* FPGA_INT5 */
-#define SIG_FPGA_INTERRUPT6 _VECTOR(19) /* FPGA_INT6 */
-#define SIG_FPGA_INTERRUPT7 _VECTOR(20) /* FPGA_INT7 */
+#define SIG_OUTPUT_COMPARE2 _VECTOR(9) /* TIM2_COMP */
+#define SIG_OVERFLOW2 _VECTOR(10) /* TIM2_OVF */
+#define SIG_INPUT_CAPTURE1 _VECTOR(11) /* TIM1_CAPT */
+#define SIG_OUTPUT_COMPARE1A _VECTOR(12) /* TIM1_COMPA */
+#define SIG_OUTPUT_COMPARE1B _VECTOR(13) /* TIM1_COMPB */
+#define SIG_OVERFLOW1 _VECTOR(14) /* TIM1_OVF */
+#define SIG_OUTPUT_COMPARE0 _VECTOR(15) /* TIM0_COMP */
+#define SIG_OVERFLOW0 _VECTOR(16) /* TIM0_OVF */
+#define SIG_FPGA_INTERRUPT4 _VECTOR(17) /* FPGA_INT4 */
+#define SIG_FPGA_INTERRUPT5 _VECTOR(18) /* FPGA_INT5 */
+#define SIG_FPGA_INTERRUPT6 _VECTOR(19) /* FPGA_INT6 */
+#define SIG_FPGA_INTERRUPT7 _VECTOR(20) /* FPGA_INT7 */
#define SIG_UART0_RECV _VECTOR(21) /* UART0_RXC */
#define SIG_UART0_DATA _VECTOR(22) /* UART0_DRE */
#define SIG_UART0_TRANS _VECTOR(23) /* UART0_TXC */
-#define SIG_FPGA_INTERRUPT8 _VECTOR(24) /* FPGA_INT8 */
-#define SIG_FPGA_INTERRUPT9 _VECTOR(25) /* FPGA_INT9 */
-#define SIG_FPGA_INTERRUPT10 _VECTOR(26) /* FPGA_INT10 */
-#define SIG_FPGA_INTERRUPT11 _VECTOR(27) /* FPGA_INT11 */
+#define SIG_FPGA_INTERRUPT8 _VECTOR(24) /* FPGA_INT8 */
+#define SIG_FPGA_INTERRUPT9 _VECTOR(25) /* FPGA_INT9 */
+#define SIG_FPGA_INTERRUPT10 _VECTOR(26) /* FPGA_INT10 */
+#define SIG_FPGA_INTERRUPT11 _VECTOR(27) /* FPGA_INT11 */
#define SIG_UART1_RECV _VECTOR(28) /* UART1_RXC */
#define SIG_UART1_DATA _VECTOR(29) /* UART1_DRE */
#define SIG_UART1_TRANS _VECTOR(30) /* UART1_TXC */
diff --git a/cpukit/score/cpu/avr/avr/iocan128.h b/cpukit/score/cpu/avr/avr/iocan128.h
index 3d9f5a2372..9024fb35d4 100644
--- a/cpukit/score/cpu/avr/avr/iocan128.h
+++ b/cpukit/score/cpu/avr/avr/iocan128.h
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iocan32.h b/cpukit/score/cpu/avr/avr/iocan32.h
index 69f9d63973..f5a2193a2d 100644
--- a/cpukit/score/cpu/avr/avr/iocan32.h
+++ b/cpukit/score/cpu/avr/avr/iocan32.h
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iocan64.h b/cpukit/score/cpu/avr/avr/iocan64.h
index efd2279049..55aef6b146 100644
--- a/cpukit/score/cpu/avr/avr/iocan64.h
+++ b/cpukit/score/cpu/avr/avr/iocan64.h
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iocanxx.h b/cpukit/score/cpu/avr/avr/iocanxx.h
index bace79ea77..ec23acd4f1 100644
--- a/cpukit/score/cpu/avr/avr/iocanxx.h
+++ b/cpukit/score/cpu/avr/avr/iocanxx.h
@@ -53,7 +53,7 @@
# define _AVR_IOXXX_H_ "iocanxx.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers and bit definitions. */
@@ -952,9 +952,9 @@
#define ADPS0 0
/* End Register Bits */
-/*
- The ADHSM bit has been removed from all documentation,
- as being not needed at all since the comparator has proven
+/*
+ The ADHSM bit has been removed from all documentation,
+ as being not needed at all since the comparator has proven
to be fast enough even without feeding it more power.
*/
diff --git a/cpukit/score/cpu/avr/avr/iom103.h b/cpukit/score/cpu/avr/avr/iom103.h
index 89af7f561e..cd4d5acc41 100644
--- a/cpukit/score/cpu/avr/avr/iom103.h
+++ b/cpukit/score/cpu/avr/avr/iom103.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom103.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
diff --git a/cpukit/score/cpu/avr/avr/iom128.h b/cpukit/score/cpu/avr/avr/iom128.h
index 088c068a16..c78d6e64b2 100644
--- a/cpukit/score/cpu/avr/avr/iom128.h
+++ b/cpukit/score/cpu/avr/avr/iom128.h
@@ -31,7 +31,7 @@
/* $Id$ */
-/* avr/iom128.h - defines for ATmega128
+/* avr/iom128.h - defines for ATmega128
As of 2002-08-27:
- This should be up to date with data sheet 2467E-AVR-05/02 */
@@ -49,7 +49,7 @@
# define _AVR_IOXXX_H_ "iom128.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -794,9 +794,9 @@
#define WDP1 1
#define WDP0 0
-/*
- The ADHSM bit has been removed from all documentation,
- as being not needed at all since the comparator has proven
+/*
+ The ADHSM bit has been removed from all documentation,
+ as being not needed at all since the comparator has proven
to be fast enough even without feeding it more power.
*/
@@ -966,7 +966,7 @@
#define PINA5 5
#define PINA4 4
#define PINA3 3
-#define PINA2 2
+#define PINA2 2
#define PINA1 1
#define PINA0 0
@@ -996,7 +996,7 @@
#define PINB5 5
#define PINB4 4
#define PINB3 3
-#define PINB2 2
+#define PINB2 2
#define PINB1 1
#define PINB0 0
@@ -1026,7 +1026,7 @@
#define PINC5 5
#define PINC4 4
#define PINC3 3
-#define PINC2 2
+#define PINC2 2
#define PINC1 1
#define PINC0 0
@@ -1056,7 +1056,7 @@
#define PIND5 5
#define PIND4 4
#define PIND3 3
-#define PIND2 2
+#define PIND2 2
#define PIND1 1
#define PIND0 0
@@ -1086,7 +1086,7 @@
#define PINE5 5
#define PINE4 4
#define PINE3 3
-#define PINE2 2
+#define PINE2 2
#define PINE1 1
#define PINE0 0
@@ -1116,7 +1116,7 @@
#define PINF5 5
#define PINF4 4
#define PINF3 3
-#define PINF2 2
+#define PINF2 2
#define PINF1 1
#define PINF0 0
@@ -1137,7 +1137,7 @@
/* Port G Input Pins - PING */
#define PING4 4
#define PING3 3
-#define PING2 2
+#define PING2 2
#define PING1 1
#define PING0 0
@@ -1191,7 +1191,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom1280.h b/cpukit/score/cpu/avr/avr/iom1280.h
index 9daff97fc5..48e2afd88f 100644
--- a/cpukit/score/cpu/avr/avr/iom1280.h
+++ b/cpukit/score/cpu/avr/avr/iom1280.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2005 Anatoly Sokolov
+/* Copyright (c) 2005 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom1281.h b/cpukit/score/cpu/avr/avr/iom1281.h
index ef277df5a3..43dfe9aa81 100644
--- a/cpukit/score/cpu/avr/avr/iom1281.h
+++ b/cpukit/score/cpu/avr/avr/iom1281.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2005 Anatoly Sokolov
+/* Copyright (c) 2005 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom128rfa1.h b/cpukit/score/cpu/avr/avr/iom128rfa1.h
index 594d8e58e7..54769a0539 100644
--- a/cpukit/score/cpu/avr/avr/iom128rfa1.h
+++ b/cpukit/score/cpu/avr/avr/iom128rfa1.h
@@ -5219,7 +5219,7 @@ struct __reg_TST_RX_LENGTH {
/* Lock Bits */
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
#define __LOCK_BITS_EXIST
diff --git a/cpukit/score/cpu/avr/avr/iom16.h b/cpukit/score/cpu/avr/avr/iom16.h
index 789f08a2e4..2f0830edce 100644
--- a/cpukit/score/cpu/avr/avr/iom16.h
+++ b/cpukit/score/cpu/avr/avr/iom16.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom16.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* Registers and associated bit numbers */
@@ -369,9 +369,9 @@
#define COM1A0 6
#define COM1A1 7
-/*
- The ADHSM bit has been removed from all documentation,
- as being not needed at all since the comparator has proven
+/*
+ The ADHSM bit has been removed from all documentation,
+ as being not needed at all since the comparator has proven
to be fast enough even without feeding it more power.
*/
@@ -602,7 +602,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom161.h b/cpukit/score/cpu/avr/avr/iom161.h
index fc1d87ab81..4de694e612 100644
--- a/cpukit/score/cpu/avr/avr/iom161.h
+++ b/cpukit/score/cpu/avr/avr/iom161.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom161.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -661,7 +661,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom162.h b/cpukit/score/cpu/avr/avr/iom162.h
index 1ce468c925..f097cd18c1 100644
--- a/cpukit/score/cpu/avr/avr/iom162.h
+++ b/cpukit/score/cpu/avr/avr/iom162.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom162.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* Memory mapped I/O registers */
@@ -164,7 +164,7 @@
#define UCSR1A _SFR_IO8(0x02) /* USART 1 Control and Status Register A */
#define UCSR1B _SFR_IO8(0x01) /* USART 1 Control and Status Register B */
#define UBRR1L _SFR_IO8(0x00) /* USART 0 Baud Rate Register High Byte */
-
+
/* Interrupt vectors (byte addresses) */
@@ -457,7 +457,7 @@
-/* SPMCR bit definitions */
+/* SPMCR bit definitions */
#define SPMIE 7
#define RWWSB 6
@@ -940,7 +940,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom163.h b/cpukit/score/cpu/avr/avr/iom163.h
index 2725dc72f7..50613a148e 100644
--- a/cpukit/score/cpu/avr/avr/iom163.h
+++ b/cpukit/score/cpu/avr/avr/iom163.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom163.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -627,7 +627,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom164.h b/cpukit/score/cpu/avr/avr/iom164.h
index 4fbcbdbd6a..e4850a9864 100644
--- a/cpukit/score/cpu/avr/avr/iom164.h
+++ b/cpukit/score/cpu/avr/avr/iom164.h
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
#endif /* _AVR_IOM164_H_ */
diff --git a/cpukit/score/cpu/avr/avr/iom165.h b/cpukit/score/cpu/avr/avr/iom165.h
index 513a2ad87a..1334f51488 100644
--- a/cpukit/score/cpu/avr/avr/iom165.h
+++ b/cpukit/score/cpu/avr/avr/iom165.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom165.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* Registers and associated bit numbers */
@@ -808,7 +808,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom165p.h b/cpukit/score/cpu/avr/avr/iom165p.h
index feac415e85..d098325eb7 100644
--- a/cpukit/score/cpu/avr/avr/iom165p.h
+++ b/cpukit/score/cpu/avr/avr/iom165p.h
@@ -46,7 +46,7 @@
# define _AVR_IOXXX_H_ "iom165p.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* Registers and associated bit numbers */
@@ -810,7 +810,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom168.h b/cpukit/score/cpu/avr/avr/iom168.h
index 575c8b4a93..42f9670bb1 100644
--- a/cpukit/score/cpu/avr/avr/iom168.h
+++ b/cpukit/score/cpu/avr/avr/iom168.h
@@ -79,7 +79,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom168p.h b/cpukit/score/cpu/avr/avr/iom168p.h
index c44d409792..739b4456b7 100644
--- a/cpukit/score/cpu/avr/avr/iom168p.h
+++ b/cpukit/score/cpu/avr/avr/iom168p.h
@@ -26,7 +26,7 @@
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
+ POSSIBILITY OF SUCH DAMAGE.
*/
/* $Id$ */
@@ -43,7 +43,7 @@
# define _AVR_IOXXX_H_ "iom168p.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_IOM168P_H_
@@ -331,7 +331,7 @@
#define WDRF 3
#define MCUCR _SFR_IO8(0x35)
-#define IVCE 0
+#define IVCE 0
#define IVSEL 1
#define PUD 4
#define BODSE 5
@@ -796,7 +796,7 @@
#define TIMER2_OVF_vect _VECTOR(9) /* Timer/Counter2 Overflow */
#define TIMER1_CAPT_vect _VECTOR(10) /* Timer/Counter1 Capture Event */
#define TIMER1_COMPA_vect _VECTOR(11) /* Timer/Counter1 Compare Match A */
-#define TIMER1_COMPB_vect _VECTOR(12) /* Timer/Counter1 Compare Match B */
+#define TIMER1_COMPB_vect _VECTOR(12) /* Timer/Counter1 Compare Match B */
#define TIMER1_OVF_vect _VECTOR(13) /* Timer/Counter1 Overflow */
#define TIMER0_COMPA_vect _VECTOR(14) /* TimerCounter0 Compare Match A */
#define TIMER0_COMPB_vect _VECTOR(15) /* TimerCounter0 Compare Match B */
@@ -862,7 +862,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom169.h b/cpukit/score/cpu/avr/avr/iom169.h
index 315a45bbe7..25385b0b47 100644
--- a/cpukit/score/cpu/avr/avr/iom169.h
+++ b/cpukit/score/cpu/avr/avr/iom169.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2002, 2003, 2004, 2005
+/* Copyright (c) 2002, 2003, 2004, 2005
Juergen Schilling <juergen.schilling@honeywell.com>
Eric B. Weddington
All rights reserved.
@@ -49,7 +49,7 @@
# define _AVR_IOXXX_H_ "iom169.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -1095,7 +1095,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom169p.h b/cpukit/score/cpu/avr/avr/iom169p.h
index 5083a71ea4..b0b17832f1 100644
--- a/cpukit/score/cpu/avr/avr/iom169p.h
+++ b/cpukit/score/cpu/avr/avr/iom169p.h
@@ -48,7 +48,7 @@
# define _AVR_IOXXX_H_ "iom169p.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -1018,7 +1018,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom16hva.h b/cpukit/score/cpu/avr/avr/iom16hva.h
index 674e65bfb8..9eb5d5e5ac 100644
--- a/cpukit/score/cpu/avr/avr/iom16hva.h
+++ b/cpukit/score/cpu/avr/avr/iom16hva.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007, Anatoly Sokolov
+/* Copyright (c) 2007, Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff --git a/cpukit/score/cpu/avr/avr/iom16m1.h b/cpukit/score/cpu/avr/avr/iom16m1.h
index 2e6971e66f..0b3bd81e3f 100644
--- a/cpukit/score/cpu/avr/avr/iom16m1.h
+++ b/cpukit/score/cpu/avr/avr/iom16m1.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iom16m1.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATmega16M1_H_
diff --git a/cpukit/score/cpu/avr/avr/iom16u4.h b/cpukit/score/cpu/avr/avr/iom16u4.h
index 7b144665a6..4a4d0f056a 100644
--- a/cpukit/score/cpu/avr/avr/iom16u4.h
+++ b/cpukit/score/cpu/avr/avr/iom16u4.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iom16u4.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATmega16U4_H_
diff --git a/cpukit/score/cpu/avr/avr/iom2560.h b/cpukit/score/cpu/avr/avr/iom2560.h
index 07039ad7e8..94a6e4532b 100644
--- a/cpukit/score/cpu/avr/avr/iom2560.h
+++ b/cpukit/score/cpu/avr/avr/iom2560.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2005 Anatoly Sokolov
+/* Copyright (c) 2005 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom2561.h b/cpukit/score/cpu/avr/avr/iom2561.h
index fd379a2599..d49bc24158 100644
--- a/cpukit/score/cpu/avr/avr/iom2561.h
+++ b/cpukit/score/cpu/avr/avr/iom2561.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2005 Anatoly Sokolov
+/* Copyright (c) 2005 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom32.h b/cpukit/score/cpu/avr/avr/iom32.h
index b0eba1511e..468ecf43a3 100644
--- a/cpukit/score/cpu/avr/avr/iom32.h
+++ b/cpukit/score/cpu/avr/avr/iom32.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom32.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -684,7 +684,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom323.h b/cpukit/score/cpu/avr/avr/iom323.h
index 865d6a210b..36ebbce411 100644
--- a/cpukit/score/cpu/avr/avr/iom323.h
+++ b/cpukit/score/cpu/avr/avr/iom323.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom323.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -676,7 +676,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom324.h b/cpukit/score/cpu/avr/avr/iom324.h
index 8c7326877e..06f788fac6 100644
--- a/cpukit/score/cpu/avr/avr/iom324.h
+++ b/cpukit/score/cpu/avr/avr/iom324.h
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
#endif /* _AVR_IOM324_H_ */
diff --git a/cpukit/score/cpu/avr/avr/iom325.h b/cpukit/score/cpu/avr/avr/iom325.h
index d624872e5f..db78a4f220 100644
--- a/cpukit/score/cpu/avr/avr/iom325.h
+++ b/cpukit/score/cpu/avr/avr/iom325.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom325.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* Registers and associated bit numbers */
@@ -809,7 +809,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom3250.h b/cpukit/score/cpu/avr/avr/iom3250.h
index 3499e6584a..81dbd8ff9b 100644
--- a/cpukit/score/cpu/avr/avr/iom3250.h
+++ b/cpukit/score/cpu/avr/avr/iom3250.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom3250.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* Registers and associated bit numbers */
@@ -899,7 +899,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom328p.h b/cpukit/score/cpu/avr/avr/iom328p.h
index a9e41e6ca3..58b3729b8e 100644
--- a/cpukit/score/cpu/avr/avr/iom328p.h
+++ b/cpukit/score/cpu/avr/avr/iom328p.h
@@ -26,7 +26,7 @@
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
+ POSSIBILITY OF SUCH DAMAGE.
*/
/* $Id$ */
@@ -43,7 +43,7 @@
# define _AVR_IOXXX_H_ "iom328p.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_IOM328P_H_
@@ -797,7 +797,7 @@
#define TIMER2_OVF_vect _VECTOR(9) /* Timer/Counter2 Overflow */
#define TIMER1_CAPT_vect _VECTOR(10) /* Timer/Counter1 Capture Event */
#define TIMER1_COMPA_vect _VECTOR(11) /* Timer/Counter1 Compare Match A */
-#define TIMER1_COMPB_vect _VECTOR(12) /* Timer/Counter1 Compare Match B */
+#define TIMER1_COMPB_vect _VECTOR(12) /* Timer/Counter1 Compare Match B */
#define TIMER1_OVF_vect _VECTOR(13) /* Timer/Counter1 Overflow */
#define TIMER0_COMPA_vect _VECTOR(14) /* TimerCounter0 Compare Match A */
#define TIMER0_COMPB_vect _VECTOR(15) /* TimerCounter0 Compare Match B */
@@ -863,7 +863,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom329.h b/cpukit/score/cpu/avr/avr/iom329.h
index fc96d00a7e..c49e73eb74 100644
--- a/cpukit/score/cpu/avr/avr/iom329.h
+++ b/cpukit/score/cpu/avr/avr/iom329.h
@@ -1,5 +1,5 @@
/* Copyright (c) 2004 Eric B. Weddington
- Copyright (c) 2005, 2006, 2007 Anatoly Sokolov
+ Copyright (c) 2005, 2006, 2007 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
# define _AVR_IOXXX_H_ "iom329.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* Registers and associated bit numbers */
@@ -991,7 +991,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom3290.h b/cpukit/score/cpu/avr/avr/iom3290.h
index b8ddf19cc6..3cf0e8d0b8 100644
--- a/cpukit/score/cpu/avr/avr/iom3290.h
+++ b/cpukit/score/cpu/avr/avr/iom3290.h
@@ -1,5 +1,5 @@
/* Copyright (c) 2004 Eric B. Weddington
- Copyright (c) 2005, 2006, 2007 Anatoly Sokolov
+ Copyright (c) 2005, 2006, 2007 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
# define _AVR_IOXXX_H_ "iom3290.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* Registers and associated bit numbers */
@@ -1143,7 +1143,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom32c1.h b/cpukit/score/cpu/avr/avr/iom32c1.h
index d66a8eaed5..71d62fa1be 100644
--- a/cpukit/score/cpu/avr/avr/iom32c1.h
+++ b/cpukit/score/cpu/avr/avr/iom32c1.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iom32c1.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATmega32C1_H_
diff --git a/cpukit/score/cpu/avr/avr/iom32hvb.h b/cpukit/score/cpu/avr/avr/iom32hvb.h
index c732387c7b..9e8b0ddee7 100644
--- a/cpukit/score/cpu/avr/avr/iom32hvb.h
+++ b/cpukit/score/cpu/avr/avr/iom32hvb.h
@@ -26,7 +26,7 @@
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
+ POSSIBILITY OF SUCH DAMAGE.
*/
/* $Id$ */
@@ -43,7 +43,7 @@
# define _AVR_IOXXX_H_ "iom32hvb.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_IOM32HVB_H_
diff --git a/cpukit/score/cpu/avr/avr/iom32m1.h b/cpukit/score/cpu/avr/avr/iom32m1.h
index 7205fee99e..7542d3651a 100644
--- a/cpukit/score/cpu/avr/avr/iom32m1.h
+++ b/cpukit/score/cpu/avr/avr/iom32m1.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iom32m1.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATmega32M1_H_
diff --git a/cpukit/score/cpu/avr/avr/iom32u4.h b/cpukit/score/cpu/avr/avr/iom32u4.h
index f7c465118e..720d8e23e6 100644
--- a/cpukit/score/cpu/avr/avr/iom32u4.h
+++ b/cpukit/score/cpu/avr/avr/iom32u4.h
@@ -26,7 +26,7 @@
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
+ POSSIBILITY OF SUCH DAMAGE.
*/
/* $Id$ */
@@ -43,7 +43,7 @@
# define _AVR_IOXXX_H_ "iom32u4.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_IOM32U4_H_
@@ -633,9 +633,9 @@
#define ICNC1 7
#define TCCR1C _SFR_MEM8(0x82)
-#define FOC1C 5
-#define FOC1B 6
-#define FOC1A 7
+#define FOC1C 5
+#define FOC1B 6
+#define FOC1A 7
#define TCNT1 _SFR_MEM16(0x84)
@@ -1448,7 +1448,7 @@
#define XRAMSIZE (0x10000)
#define XRAMEND (XRAMSIZE - 1)
#define E2END (0x3FF)
-#define E2PAGESIZE (4)
+#define E2PAGESIZE (4)
#define FLASHEND (0x7FFF)
@@ -1490,7 +1490,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
diff --git a/cpukit/score/cpu/avr/avr/iom32u6.h b/cpukit/score/cpu/avr/avr/iom32u6.h
index 667b166446..524809db25 100644
--- a/cpukit/score/cpu/avr/avr/iom32u6.h
+++ b/cpukit/score/cpu/avr/avr/iom32u6.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iom32u6.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATmega32U6_H_
diff --git a/cpukit/score/cpu/avr/avr/iom406.h b/cpukit/score/cpu/avr/avr/iom406.h
index 466e6478ca..c80aea896f 100644
--- a/cpukit/score/cpu/avr/avr/iom406.h
+++ b/cpukit/score/cpu/avr/avr/iom406.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom406.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -349,13 +349,13 @@
/* Pin Change Mask Register 1 */
#define PCMSK1 _SFR_MEM8(0x6C)
-#define PCINT15 7
-#define PCINT14 6
-#define PCINT13 5
-#define PCINT12 4
-#define PCINT11 3
-#define PCINT10 2
-#define PCINT9 1
+#define PCINT15 7
+#define PCINT14 6
+#define PCINT13 5
+#define PCINT12 4
+#define PCINT11 3
+#define PCINT10 2
+#define PCINT9 1
#define PCINT8 0
/* Reserved [0x6D] */
@@ -756,7 +756,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom48p.h b/cpukit/score/cpu/avr/avr/iom48p.h
index cdd6d4291e..2727f92bae 100644
--- a/cpukit/score/cpu/avr/avr/iom48p.h
+++ b/cpukit/score/cpu/avr/avr/iom48p.h
@@ -26,7 +26,7 @@
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
+ POSSIBILITY OF SUCH DAMAGE.
*/
/* $Id$ */
@@ -43,7 +43,7 @@
# define _AVR_IOXXX_H_ "iom48p.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_IOM48P_H_
@@ -792,7 +792,7 @@
#define TIMER2_OVF_vect _VECTOR(9) /* Timer/Counter2 Overflow */
#define TIMER1_CAPT_vect _VECTOR(10) /* Timer/Counter1 Capture Event */
#define TIMER1_COMPA_vect _VECTOR(11) /* Timer/Counter1 Compare Match A */
-#define TIMER1_COMPB_vect _VECTOR(12) /* Timer/Counter1 Compare Match B */
+#define TIMER1_COMPB_vect _VECTOR(12) /* Timer/Counter1 Compare Match B */
#define TIMER1_OVF_vect _VECTOR(13) /* Timer/Counter1 Overflow */
#define TIMER0_COMPA_vect _VECTOR(14) /* TimerCounter0 Compare Match A */
#define TIMER0_COMPB_vect _VECTOR(15) /* TimerCounter0 Compare Match B */
@@ -856,7 +856,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom64.h b/cpukit/score/cpu/avr/avr/iom64.h
index e960f4c937..3de1917ba7 100644
--- a/cpukit/score/cpu/avr/avr/iom64.h
+++ b/cpukit/score/cpu/avr/avr/iom64.h
@@ -30,7 +30,7 @@
/* $Id$ */
-/* avr/iom64.h - defines for ATmega64
+/* avr/iom64.h - defines for ATmega64
As of 2002-11-23:
- This should be up to date with data sheet Rev. 2490C-AVR-09/02 */
@@ -48,7 +48,7 @@
# define _AVR_IOXXX_H_ "iom64.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -74,7 +74,7 @@
/* ADC Control and Status Register A */
#define ADCSR _SFR_IO8(0x06) /* for backwards compatibility */
-#define ADCSRA _SFR_IO8(0x06)
+#define ADCSRA _SFR_IO8(0x06)
/* ADC Multiplexer select */
#define ADMUX _SFR_IO8(0x07)
@@ -208,7 +208,7 @@
/* MCU Status Register */
#define MCUSR _SFR_IO8(0x34) /* for backwards compatibility */
-#define MCUCSR _SFR_IO8(0x34)
+#define MCUCSR _SFR_IO8(0x34)
/* MCU general Control Register */
#define MCUCR _SFR_IO8(0x35)
@@ -253,7 +253,7 @@
#define PORTG _SFR_MEM8(0x65)
/* Store Program Memory Control and Status Register */
-#define SPMCR _SFR_MEM8(0x68)
+#define SPMCR _SFR_MEM8(0x68)
#define SPMCSR _SFR_MEM8(0x68) /* for backwards compatibility with m128*/
/* External Interrupt Control Register A */
@@ -783,9 +783,9 @@
#define WDP1 1
#define WDP0 0
-/*
- The ADHSM bit has been removed from all documentation,
- as being not needed at all since the comparator has proven
+/*
+ The ADHSM bit has been removed from all documentation,
+ as being not needed at all since the comparator has proven
to be fast enough even without feeding it more power.
*/
@@ -990,7 +990,7 @@
#define PINA5 5
#define PINA4 4
#define PINA3 3
-#define PINA2 2
+#define PINA2 2
#define PINA1 1
#define PINA0 0
@@ -1020,7 +1020,7 @@
#define PINB5 5
#define PINB4 4
#define PINB3 3
-#define PINB2 2
+#define PINB2 2
#define PINB1 1
#define PINB0 0
@@ -1050,7 +1050,7 @@
#define PINC5 5
#define PINC4 4
#define PINC3 3
-#define PINC2 2
+#define PINC2 2
#define PINC1 1
#define PINC0 0
@@ -1080,7 +1080,7 @@
#define PIND5 5
#define PIND4 4
#define PIND3 3
-#define PIND2 2
+#define PIND2 2
#define PIND1 1
#define PIND0 0
@@ -1110,7 +1110,7 @@
#define PINE5 5
#define PINE4 4
#define PINE3 3
-#define PINE2 2
+#define PINE2 2
#define PINE1 1
#define PINE0 0
@@ -1140,7 +1140,7 @@
#define PINF5 5
#define PINF4 4
#define PINF3 3
-#define PINF2 2
+#define PINF2 2
#define PINF1 1
#define PINF0 0
@@ -1161,7 +1161,7 @@
/* Port G Input Pins - PING */
#define PING4 4
#define PING3 3
-#define PING2 2
+#define PING2 2
#define PING1 1
#define PING0 0
@@ -1215,7 +1215,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom640.h b/cpukit/score/cpu/avr/avr/iom640.h
index 39b21ca9f0..a5a8dc8a59 100644
--- a/cpukit/score/cpu/avr/avr/iom640.h
+++ b/cpukit/score/cpu/avr/avr/iom640.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2005 Anatoly Sokolov
+/* Copyright (c) 2005 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom644.h b/cpukit/score/cpu/avr/avr/iom644.h
index 9d10921653..ee84199991 100644
--- a/cpukit/score/cpu/avr/avr/iom644.h
+++ b/cpukit/score/cpu/avr/avr/iom644.h
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom645.h b/cpukit/score/cpu/avr/avr/iom645.h
index 32c9f3d326..063dc49f89 100644
--- a/cpukit/score/cpu/avr/avr/iom645.h
+++ b/cpukit/score/cpu/avr/avr/iom645.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom645.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* Registers and associated bit numbers */
@@ -804,7 +804,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom6450.h b/cpukit/score/cpu/avr/avr/iom6450.h
index 7a0de66401..59a6ad61f5 100644
--- a/cpukit/score/cpu/avr/avr/iom6450.h
+++ b/cpukit/score/cpu/avr/avr/iom6450.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom6450.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* Registers and associated bit numbers */
@@ -895,7 +895,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom649.h b/cpukit/score/cpu/avr/avr/iom649.h
index c9d5058a24..365f7b31d6 100644
--- a/cpukit/score/cpu/avr/avr/iom649.h
+++ b/cpukit/score/cpu/avr/avr/iom649.h
@@ -1,5 +1,5 @@
/* Copyright (c) 2004 Eric B. Weddington
- Copyright (c) 2005,2006 Anatoly Sokolov
+ Copyright (c) 2005,2006 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
# define _AVR_IOXXX_H_ "iom649.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* Registers and associated bit numbers */
@@ -980,7 +980,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom6490.h b/cpukit/score/cpu/avr/avr/iom6490.h
index f678acf30f..bf0a67be7b 100644
--- a/cpukit/score/cpu/avr/avr/iom6490.h
+++ b/cpukit/score/cpu/avr/avr/iom6490.h
@@ -1,5 +1,5 @@
/* Copyright (c) 2004 Eric B. Weddington
- Copyright (c) 2005,2006 Anatoly Sokolov
+ Copyright (c) 2005,2006 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
# define _AVR_IOXXX_H_ "iom6490.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* Registers and associated bit numbers */
@@ -1132,7 +1132,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom64c1.h b/cpukit/score/cpu/avr/avr/iom64c1.h
index 62411ae29e..9db29aa21b 100644
--- a/cpukit/score/cpu/avr/avr/iom64c1.h
+++ b/cpukit/score/cpu/avr/avr/iom64c1.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iom64c1.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATmega64C1_H_
diff --git a/cpukit/score/cpu/avr/avr/iom64m1.h b/cpukit/score/cpu/avr/avr/iom64m1.h
index 127df45789..007a675434 100644
--- a/cpukit/score/cpu/avr/avr/iom64m1.h
+++ b/cpukit/score/cpu/avr/avr/iom64m1.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iom64m1.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATmega64M1_H_
diff --git a/cpukit/score/cpu/avr/avr/iom8.h b/cpukit/score/cpu/avr/avr/iom8.h
index 632598b6c9..42863b0fa3 100644
--- a/cpukit/score/cpu/avr/avr/iom8.h
+++ b/cpukit/score/cpu/avr/avr/iom8.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom8.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -328,9 +328,9 @@
#define EXTRF 1
#define PORF 0
-/*
- The ADHSM bit has been removed from all documentation,
- as being not needed at all since the comparator has proven
+/*
+ The ADHSM bit has been removed from all documentation,
+ as being not needed at all since the comparator has proven
to be fast enough even without feeding it more power.
*/
@@ -602,7 +602,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom8515.h b/cpukit/score/cpu/avr/avr/iom8515.h
index 66d6601983..240ad6e5e8 100644
--- a/cpukit/score/cpu/avr/avr/iom8515.h
+++ b/cpukit/score/cpu/avr/avr/iom8515.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom8515.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -624,7 +624,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom8535.h b/cpukit/score/cpu/avr/avr/iom8535.h
index f92a3eba26..c360ec44d6 100644
--- a/cpukit/score/cpu/avr/avr/iom8535.h
+++ b/cpukit/score/cpu/avr/avr/iom8535.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iom8535.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -394,9 +394,9 @@
#define CS01 1
#define CS00 0
-/*
- The ADHSM bit has been removed from all documentation,
- as being not needed at all since the comparator has proven
+/*
+ The ADHSM bit has been removed from all documentation,
+ as being not needed at all since the comparator has proven
to be fast enough even without feeding it more power.
*/
@@ -703,7 +703,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom88.h b/cpukit/score/cpu/avr/avr/iom88.h
index 712434f973..f837958bcb 100644
--- a/cpukit/score/cpu/avr/avr/iom88.h
+++ b/cpukit/score/cpu/avr/avr/iom88.h
@@ -79,7 +79,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom88p.h b/cpukit/score/cpu/avr/avr/iom88p.h
index 88210f2430..b942414bbf 100644
--- a/cpukit/score/cpu/avr/avr/iom88p.h
+++ b/cpukit/score/cpu/avr/avr/iom88p.h
@@ -26,7 +26,7 @@
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
+ POSSIBILITY OF SUCH DAMAGE.
*/
/* $Id$ */
@@ -43,7 +43,7 @@
# define _AVR_IOXXX_H_ "iom88p.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_IOM88P_H_
@@ -331,7 +331,7 @@
#define WDRF 3
#define MCUCR _SFR_IO8(0x35)
-#define IVCE 0
+#define IVCE 0
#define IVSEL 1
#define PUD 4
#define BODSE 5
@@ -796,7 +796,7 @@
#define TIMER2_OVF_vect _VECTOR(9) /* Timer/Counter2 Overflow */
#define TIMER1_CAPT_vect _VECTOR(10) /* Timer/Counter1 Capture Event */
#define TIMER1_COMPA_vect _VECTOR(11) /* Timer/Counter1 Compare Match A */
-#define TIMER1_COMPB_vect _VECTOR(12) /* Timer/Counter1 Compare Match B */
+#define TIMER1_COMPB_vect _VECTOR(12) /* Timer/Counter1 Compare Match B */
#define TIMER1_OVF_vect _VECTOR(13) /* Timer/Counter1 Overflow */
#define TIMER0_COMPA_vect _VECTOR(14) /* TimerCounter0 Compare Match A */
#define TIMER0_COMPB_vect _VECTOR(15) /* TimerCounter0 Compare Match B */
@@ -862,7 +862,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iom8hva.h b/cpukit/score/cpu/avr/avr/iom8hva.h
index ac323b038a..44729cb12b 100644
--- a/cpukit/score/cpu/avr/avr/iom8hva.h
+++ b/cpukit/score/cpu/avr/avr/iom8hva.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007, Anatoly Sokolov
+/* Copyright (c) 2007, Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff --git a/cpukit/score/cpu/avr/avr/iomx8.h b/cpukit/score/cpu/avr/avr/iomx8.h
index 7e6baa04ef..497c8586dd 100644
--- a/cpukit/score/cpu/avr/avr/iomx8.h
+++ b/cpukit/score/cpu/avr/avr/iomx8.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iomx8.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -203,7 +203,7 @@
#define EEAR _SFR_IO16(0x21)
#define EEARL _SFR_IO8(0x21)
#define EEARH _SFR_IO8(0X22)
-/*
+/*
Even though EEARH is not used by the mega48, the EEAR8 bit in the register
must be written to 0, according to the datasheet, hence the EEARH register
must be defined for the mega48.
@@ -297,7 +297,7 @@ must be defined for the mega48.
#define MCUCR _SFR_IO8 (0x35)
/* MCUCR */
#define PUD 4
-#if defined (__AVR_ATmega88__) || defined (__AVR_ATmega168__)
+#if defined (__AVR_ATmega88__) || defined (__AVR_ATmega168__)
#define IVSEL 1
#define IVCE 0
#endif
diff --git a/cpukit/score/cpu/avr/avr/iomxx0_1.h b/cpukit/score/cpu/avr/avr/iomxx0_1.h
index e982cd6022..a8c1f7c6ec 100644
--- a/cpukit/score/cpu/avr/avr/iomxx0_1.h
+++ b/cpukit/score/cpu/avr/avr/iomxx0_1.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2005 Anatoly Sokolov
+/* Copyright (c) 2005 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -46,7 +46,7 @@
# define _AVR_IOXXX_H_ "iomxx0_1.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#if defined(__AVR_ATmega640__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
# define __ATmegaxx0__
@@ -299,7 +299,7 @@
#define TOV5 0
#define PCIFR _SFR_IO8(0x1B)
-#if defined(__ATmegaxx0__)
+#if defined(__ATmegaxx0__)
# define PCIF2 2
#endif /* __ATmegaxx0__ */
#define PCIF1 1
@@ -322,7 +322,7 @@
#define INT4 4
#define INT3 3
#define INT2 2
-#define INT1 1
+#define INT1 1
#define INT0 0
#define GPIOR0 _SFR_IO8(0x1E)
@@ -556,7 +556,7 @@
#define PCINT9 1
#define PCINT8 0
-#if defined(__ATmegaxx0__)
+#if defined(__ATmegaxx0__)
# define PCMSK2 _SFR_MEM8(0x6D)
# define PCINT23 7
# define PCINT22 6
@@ -1251,7 +1251,7 @@
/* Reserved [0x12E..0x12F] */
-#if defined(__ATmegaxx0__)
+#if defined(__ATmegaxx0__)
# define UCSR3A _SFR_MEM8(0x130)
# define RXC3 7
diff --git a/cpukit/score/cpu/avr/avr/iomxxhva.h b/cpukit/score/cpu/avr/avr/iomxxhva.h
index 5dfc5bf186..a317bd9142 100644
--- a/cpukit/score/cpu/avr/avr/iomxxhva.h
+++ b/cpukit/score/cpu/avr/avr/iomxxhva.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007, Anatoly Sokolov
+/* Copyright (c) 2007, Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iomxxhva.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* Registers and associated bit numbers */
@@ -115,7 +115,7 @@
#define EIMSK _SFR_IO8(0x1D)
#define INT2 2
-#define INT1 1
+#define INT1 1
#define INT0 0
#define GPIOR0 _SFR_IO8(0x1E)
diff --git a/cpukit/score/cpu/avr/avr/iotn11.h b/cpukit/score/cpu/avr/avr/iotn11.h
index fe48d11d9e..8ef3f4c5b0 100644
--- a/cpukit/score/cpu/avr/avr/iotn11.h
+++ b/cpukit/score/cpu/avr/avr/iotn11.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iotn11.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef __ASSEMBLER__
# warning "MCU not supported by the C compiler"
diff --git a/cpukit/score/cpu/avr/avr/iotn12.h b/cpukit/score/cpu/avr/avr/iotn12.h
index 8306a2c297..01c3ca12a2 100644
--- a/cpukit/score/cpu/avr/avr/iotn12.h
+++ b/cpukit/score/cpu/avr/avr/iotn12.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iotn12.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef __ASSEMBLER__
# warning "MCU not supported by the C compiler"
diff --git a/cpukit/score/cpu/avr/avr/iotn13.h b/cpukit/score/cpu/avr/avr/iotn13.h
index dde65368b8..4c59a27b87 100644
--- a/cpukit/score/cpu/avr/avr/iotn13.h
+++ b/cpukit/score/cpu/avr/avr/iotn13.h
@@ -47,7 +47,7 @@
# define _AVR_IOXXX_H_ "iotn13.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers and bit names */
diff --git a/cpukit/score/cpu/avr/avr/iotn13a.h b/cpukit/score/cpu/avr/avr/iotn13a.h
index bd8689d7de..0ed81fb775 100644
--- a/cpukit/score/cpu/avr/avr/iotn13a.h
+++ b/cpukit/score/cpu/avr/avr/iotn13a.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iotn13a.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATTINY13A_H_
diff --git a/cpukit/score/cpu/avr/avr/iotn15.h b/cpukit/score/cpu/avr/avr/iotn15.h
index 2acc963ba5..b7b29f12e5 100644
--- a/cpukit/score/cpu/avr/avr/iotn15.h
+++ b/cpukit/score/cpu/avr/avr/iotn15.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iotn15.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef __ASSEMBLER__
# warning "MCU not supported by the C compiler"
diff --git a/cpukit/score/cpu/avr/avr/iotn167.h b/cpukit/score/cpu/avr/avr/iotn167.h
index 71f5d620b1..1c5b56af25 100644
--- a/cpukit/score/cpu/avr/avr/iotn167.h
+++ b/cpukit/score/cpu/avr/avr/iotn167.h
@@ -26,7 +26,7 @@
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
+ POSSIBILITY OF SUCH DAMAGE.
*/
/* $Id$ */
@@ -43,7 +43,7 @@
# define _AVR_IOXXX_H_ "iotn167.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_IOTN167_H_
@@ -781,7 +781,7 @@
#define XRAMSIZE (0)
#define XRAMEND RAMEND
#define E2END (0x1FF)
-#define E2PAGESIZE (4)
+#define E2PAGESIZE (4)
#define FLASHEND (0x3FFF)
diff --git a/cpukit/score/cpu/avr/avr/iotn22.h b/cpukit/score/cpu/avr/avr/iotn22.h
index 0d58d42978..af8e784c6d 100644
--- a/cpukit/score/cpu/avr/avr/iotn22.h
+++ b/cpukit/score/cpu/avr/avr/iotn22.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iotn22.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
diff --git a/cpukit/score/cpu/avr/avr/iotn26.h b/cpukit/score/cpu/avr/avr/iotn26.h
index dae6f0f518..3ec24774a4 100644
--- a/cpukit/score/cpu/avr/avr/iotn26.h
+++ b/cpukit/score/cpu/avr/avr/iotn26.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iotn26.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_IOTN26_H_
#define _AVR_IOTN26_H_ 1
diff --git a/cpukit/score/cpu/avr/avr/iotn28.h b/cpukit/score/cpu/avr/avr/iotn28.h
index 9ecfe984d6..89ff074192 100644
--- a/cpukit/score/cpu/avr/avr/iotn28.h
+++ b/cpukit/score/cpu/avr/avr/iotn28.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iotn28.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef __ASSEMBLER__
# warning "MCU not supported by the C compiler"
diff --git a/cpukit/score/cpu/avr/avr/iotn43u.h b/cpukit/score/cpu/avr/avr/iotn43u.h
index f9d063101e..add6b99fa9 100644
--- a/cpukit/score/cpu/avr/avr/iotn43u.h
+++ b/cpukit/score/cpu/avr/avr/iotn43u.h
@@ -26,7 +26,7 @@
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
+ POSSIBILITY OF SUCH DAMAGE.
*/
/* $Id$ */
@@ -43,7 +43,7 @@
# define _AVR_IOXXX_H_ "iotn43u.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_IOTN43U_H_
@@ -555,7 +555,7 @@
#define FUSE_SPIEN (unsigned char)~_BV(5)
#define FUSE_DWEN (unsigned char)~_BV(6)
#define FUSE_RSTDISBL (unsigned char)~_BV(7)
-#define HFUSE_DEFAULT (FUSE_SPIEN)
+#define HFUSE_DEFAULT (FUSE_SPIEN)
/* Extended Fuse Byte */
#define FUSE_SELFPRGEN (unsigned char)~_BV(0)
diff --git a/cpukit/score/cpu/avr/avr/iotn48.h b/cpukit/score/cpu/avr/avr/iotn48.h
index 48e6a36925..7e4917ae8b 100644
--- a/cpukit/score/cpu/avr/avr/iotn48.h
+++ b/cpukit/score/cpu/avr/avr/iotn48.h
@@ -26,7 +26,7 @@
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
+ POSSIBILITY OF SUCH DAMAGE.
*/
/* $Id$ */
@@ -43,7 +43,7 @@
# define _AVR_IOXXX_H_ "iotn48.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_IOTN48_H_
@@ -737,7 +737,7 @@
#define FUSE_SPIEN (unsigned char)~_BV(5) /* Enable Serial programming and Data Downloading */
#define FUSE_DWEN (unsigned char)~_BV(6) /* debugWIRE Enable */
#define FUSE_RSTDISBL (unsigned char)~_BV(7) /* External reset disable */
-#define HFUSE_DEFAULT (FUSE_SPIEN)
+#define HFUSE_DEFAULT (FUSE_SPIEN)
/* Extended Fuse Byte */
#define FUSE_SELFPRGEN (unsigned char)~_BV(0) /* Self Programming Enable */
diff --git a/cpukit/score/cpu/avr/avr/iotn87.h b/cpukit/score/cpu/avr/avr/iotn87.h
index ead7f335a2..813bc8b91a 100644
--- a/cpukit/score/cpu/avr/avr/iotn87.h
+++ b/cpukit/score/cpu/avr/avr/iotn87.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iotn87.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATtiny87_H_
diff --git a/cpukit/score/cpu/avr/avr/iotn88.h b/cpukit/score/cpu/avr/avr/iotn88.h
index fd70853ed0..835b89a6b4 100644
--- a/cpukit/score/cpu/avr/avr/iotn88.h
+++ b/cpukit/score/cpu/avr/avr/iotn88.h
@@ -26,7 +26,7 @@
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
+ POSSIBILITY OF SUCH DAMAGE.
*/
/* $Id$ */
@@ -43,7 +43,7 @@
# define _AVR_IOXXX_H_ "iotn88.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_IOTN88_H_
@@ -737,7 +737,7 @@
#define FUSE_SPIEN (unsigned char)~_BV(5) /* Enable Serial programming and Data Downloading */
#define FUSE_DWEN (unsigned char)~_BV(6) /* debugWIRE Enable */
#define FUSE_RSTDISBL (unsigned char)~_BV(7) /* External reset disable */
-#define HFUSE_DEFAULT (FUSE_SPIEN)
+#define HFUSE_DEFAULT (FUSE_SPIEN)
/* Extended Fuse Byte */
#define FUSE_SELFPRGEN ~_BV(0) /* Self Programming Enable */
diff --git a/cpukit/score/cpu/avr/avr/iotnx4.h b/cpukit/score/cpu/avr/avr/iotnx4.h
index a02fa6f761..6cc0b38dd9 100644
--- a/cpukit/score/cpu/avr/avr/iotnx4.h
+++ b/cpukit/score/cpu/avr/avr/iotnx4.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iotnx4.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -62,7 +62,7 @@
#define ADC4D 4
#define ADC3D 3
#define ADC2D 2
-#define ADC1D 1
+#define ADC1D 1
#define ADC0D 0
/* Reserved [0x02] */
@@ -137,7 +137,7 @@
#define USITC 0
#define USISR _SFR_IO8(0x0E)
-#define USISIF 7
+#define USISIF 7
#define USIOIF 6
#define USIPF 5
#define USIDC 4
diff --git a/cpukit/score/cpu/avr/avr/iotnx5.h b/cpukit/score/cpu/avr/avr/iotnx5.h
index 17d4be1586..9c5f07d351 100644
--- a/cpukit/score/cpu/avr/avr/iotnx5.h
+++ b/cpukit/score/cpu/avr/avr/iotnx5.h
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iotnx5.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* I/O registers */
@@ -108,7 +108,7 @@
#define USITC 0
#define USISR _SFR_IO8(0x0E)
-#define USISIF 7
+#define USISIF 7
#define USIOIF 6
#define USIPF 5
#define USIDC 4
@@ -129,7 +129,7 @@
#define ADC2D 4
#define ADC3D 3
#define ADC1D 2
-#define AIN1D 1
+#define AIN1D 1
#define AIN0D 0
#define PCMSK _SFR_IO8(0x15)
diff --git a/cpukit/score/cpu/avr/avr/iotnx61.h b/cpukit/score/cpu/avr/avr/iotnx61.h
index f90a90462e..28da0debae 100644
--- a/cpukit/score/cpu/avr/avr/iotnx61.h
+++ b/cpukit/score/cpu/avr/avr/iotnx61.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iotnx61.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_IOTNx61_H_
#define _AVR_IOTNx61_H_ 1
diff --git a/cpukit/score/cpu/avr/avr/iousb1286.h b/cpukit/score/cpu/avr/avr/iousb1286.h
index 09e8d7c97d..fe6cd09962 100644
--- a/cpukit/score/cpu/avr/avr/iousb1286.h
+++ b/cpukit/score/cpu/avr/avr/iousb1286.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006 Anatoly Sokolov
+/* Copyright (c) 2006 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iousb1287.h b/cpukit/score/cpu/avr/avr/iousb1287.h
index 3c599a3765..91f9e4115b 100644
--- a/cpukit/score/cpu/avr/avr/iousb1287.h
+++ b/cpukit/score/cpu/avr/avr/iousb1287.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006 Anatoly Sokolov
+/* Copyright (c) 2006 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iousb162.h b/cpukit/score/cpu/avr/avr/iousb162.h
index 55e1664d84..6454a2dd7c 100644
--- a/cpukit/score/cpu/avr/avr/iousb162.h
+++ b/cpukit/score/cpu/avr/avr/iousb162.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007 Anatoly Sokolov
+/* Copyright (c) 2007 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iousb646.h b/cpukit/score/cpu/avr/avr/iousb646.h
index 4a22602bfd..3cea357034 100644
--- a/cpukit/score/cpu/avr/avr/iousb646.h
+++ b/cpukit/score/cpu/avr/avr/iousb646.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006 Anatoly Sokolov
+/* Copyright (c) 2006 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iousb647.h b/cpukit/score/cpu/avr/avr/iousb647.h
index 3120183071..768b232c8b 100644
--- a/cpukit/score/cpu/avr/avr/iousb647.h
+++ b/cpukit/score/cpu/avr/avr/iousb647.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006 Anatoly Sokolov
+/* Copyright (c) 2006 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
/* Signature */
diff --git a/cpukit/score/cpu/avr/avr/iousb82.h b/cpukit/score/cpu/avr/avr/iousb82.h
index 8e7d1881b0..59b952fafa 100644
--- a/cpukit/score/cpu/avr/avr/iousb82.h
+++ b/cpukit/score/cpu/avr/avr/iousb82.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007 Anatoly Sokolov
+/* Copyright (c) 2007 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -82,7 +82,7 @@
/* Lock Bits */
#define __LOCK_BITS_EXIST
#define __BOOT_LOCK_BITS_0_EXIST
-#define __BOOT_LOCK_BITS_1_EXIST
+#define __BOOT_LOCK_BITS_1_EXIST
#endif /* _AVR_AT90USB82_H_ */
diff --git a/cpukit/score/cpu/avr/avr/iousbxx2.h b/cpukit/score/cpu/avr/avr/iousbxx2.h
index b989740261..da2e7cc81a 100644
--- a/cpukit/score/cpu/avr/avr/iousbxx2.h
+++ b/cpukit/score/cpu/avr/avr/iousbxx2.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007 Anatoly Sokolov
+/* Copyright (c) 2007 Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -45,7 +45,7 @@
# define _AVR_IOXXX_H_ "iousbxx2.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
/* Registers and associated bit numbers */
@@ -175,7 +175,7 @@
#define INT4 4
#define INT3 3
#define INT2 2
-#define INT1 1
+#define INT1 1
#define INT0 0
#define GPIOR0 _SFR_IO8(0x1E)
diff --git a/cpukit/score/cpu/avr/avr/iousbxx6_7.h b/cpukit/score/cpu/avr/avr/iousbxx6_7.h
index b67dfba053..58789a6e50 100644
--- a/cpukit/score/cpu/avr/avr/iousbxx6_7.h
+++ b/cpukit/score/cpu/avr/avr/iousbxx6_7.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006, Anatoly Sokolov
+/* Copyright (c) 2006, Anatoly Sokolov
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -30,7 +30,7 @@
/* $Id$ */
-/* iousbxx6_7.h - definitions for AT90USB646, AT90USB647, AT90USB1286
+/* iousbxx6_7.h - definitions for AT90USB646, AT90USB647, AT90USB1286
and AT90USB1287 */
#ifndef _AVR_IOUSBXX6_7_H_
@@ -46,7 +46,7 @@
# define _AVR_IOXXX_H_ "iousbxx6_7.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#if defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__)
# define __AT90USBxx6__ 1
@@ -284,7 +284,7 @@
#define INT4 4
#define INT3 3
#define INT2 2
-#define INT1 1
+#define INT1 1
#define INT0 0
#define GPIOR0 _SFR_IO8(0x1E)
diff --git a/cpukit/score/cpu/avr/avr/iox128a1.h b/cpukit/score/cpu/avr/avr/iox128a1.h
index 4804065fcc..d596ac4224 100644
--- a/cpukit/score/cpu/avr/avr/iox128a1.h
+++ b/cpukit/score/cpu/avr/avr/iox128a1.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iox128a1.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATxmega128A1_H_
@@ -6625,21 +6625,21 @@ IO Module Instances. Mapped to memory.
// Generic Port Pins
-#define PIN0_bm 0x01
+#define PIN0_bm 0x01
#define PIN0_bp 0
#define PIN1_bm 0x02
#define PIN1_bp 1
-#define PIN2_bm 0x04
+#define PIN2_bm 0x04
#define PIN2_bp 2
-#define PIN3_bm 0x08
+#define PIN3_bm 0x08
#define PIN3_bp 3
-#define PIN4_bm 0x10
+#define PIN4_bm 0x10
#define PIN4_bp 4
-#define PIN5_bm 0x20
+#define PIN5_bm 0x20
#define PIN5_bp 5
-#define PIN6_bm 0x40
+#define PIN6_bm 0x40
#define PIN6_bp 6
-#define PIN7_bm 0x80
+#define PIN7_bm 0x80
#define PIN7_bp 7
diff --git a/cpukit/score/cpu/avr/avr/iox128a3.h b/cpukit/score/cpu/avr/avr/iox128a3.h
index e50b069079..56e5ae3cd8 100644
--- a/cpukit/score/cpu/avr/avr/iox128a3.h
+++ b/cpukit/score/cpu/avr/avr/iox128a3.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iox128a3.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATxmega128A3_H_
@@ -6438,21 +6438,21 @@ IO Module Instances. Mapped to memory.
// Generic Port Pins
-#define PIN0_bm 0x01
+#define PIN0_bm 0x01
#define PIN0_bp 0
#define PIN1_bm 0x02
#define PIN1_bp 1
-#define PIN2_bm 0x04
+#define PIN2_bm 0x04
#define PIN2_bp 2
-#define PIN3_bm 0x08
+#define PIN3_bm 0x08
#define PIN3_bp 3
-#define PIN4_bm 0x10
+#define PIN4_bm 0x10
#define PIN4_bp 4
-#define PIN5_bm 0x20
+#define PIN5_bm 0x20
#define PIN5_bp 5
-#define PIN6_bm 0x40
+#define PIN6_bm 0x40
#define PIN6_bp 6
-#define PIN7_bm 0x80
+#define PIN7_bm 0x80
#define PIN7_bp 7
diff --git a/cpukit/score/cpu/avr/avr/iox16a4.h b/cpukit/score/cpu/avr/avr/iox16a4.h
index 5deb2a0bd1..904dc3fcbc 100644
--- a/cpukit/score/cpu/avr/avr/iox16a4.h
+++ b/cpukit/score/cpu/avr/avr/iox16a4.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iox16a4.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATxmega16A4_H_
@@ -6252,21 +6252,21 @@ IO Module Instances. Mapped to memory.
// Generic Port Pins
-#define PIN0_bm 0x01
+#define PIN0_bm 0x01
#define PIN0_bp 0
#define PIN1_bm 0x02
#define PIN1_bp 1
-#define PIN2_bm 0x04
+#define PIN2_bm 0x04
#define PIN2_bp 2
-#define PIN3_bm 0x08
+#define PIN3_bm 0x08
#define PIN3_bp 3
-#define PIN4_bm 0x10
+#define PIN4_bm 0x10
#define PIN4_bp 4
-#define PIN5_bm 0x20
+#define PIN5_bm 0x20
#define PIN5_bp 5
-#define PIN6_bm 0x40
+#define PIN6_bm 0x40
#define PIN6_bp 6
-#define PIN7_bm 0x80
+#define PIN7_bm 0x80
#define PIN7_bp 7
diff --git a/cpukit/score/cpu/avr/avr/iox16d4.h b/cpukit/score/cpu/avr/avr/iox16d4.h
index bec9f56aad..4d949f2f21 100644
--- a/cpukit/score/cpu/avr/avr/iox16d4.h
+++ b/cpukit/score/cpu/avr/avr/iox16d4.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iox16d4.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATxmega16D4_H_
@@ -5219,21 +5219,21 @@ IO Module Instances. Mapped to memory.
// Generic Port Pins
-#define PIN0_bm 0x01
+#define PIN0_bm 0x01
#define PIN0_bp 0
#define PIN1_bm 0x02
#define PIN1_bp 1
-#define PIN2_bm 0x04
+#define PIN2_bm 0x04
#define PIN2_bp 2
-#define PIN3_bm 0x08
+#define PIN3_bm 0x08
#define PIN3_bp 3
-#define PIN4_bm 0x10
+#define PIN4_bm 0x10
#define PIN4_bp 4
-#define PIN5_bm 0x20
+#define PIN5_bm 0x20
#define PIN5_bp 5
-#define PIN6_bm 0x40
+#define PIN6_bm 0x40
#define PIN6_bp 6
-#define PIN7_bm 0x80
+#define PIN7_bm 0x80
#define PIN7_bp 7
diff --git a/cpukit/score/cpu/avr/avr/iox256a3.h b/cpukit/score/cpu/avr/avr/iox256a3.h
index 8988c1652e..10cedb9dd0 100644
--- a/cpukit/score/cpu/avr/avr/iox256a3.h
+++ b/cpukit/score/cpu/avr/avr/iox256a3.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iox256a3.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATxmega256A3_H_
@@ -6438,21 +6438,21 @@ IO Module Instances. Mapped to memory.
// Generic Port Pins
-#define PIN0_bm 0x01
+#define PIN0_bm 0x01
#define PIN0_bp 0
#define PIN1_bm 0x02
#define PIN1_bp 1
-#define PIN2_bm 0x04
+#define PIN2_bm 0x04
#define PIN2_bp 2
-#define PIN3_bm 0x08
+#define PIN3_bm 0x08
#define PIN3_bp 3
-#define PIN4_bm 0x10
+#define PIN4_bm 0x10
#define PIN4_bp 4
-#define PIN5_bm 0x20
+#define PIN5_bm 0x20
#define PIN5_bp 5
-#define PIN6_bm 0x40
+#define PIN6_bm 0x40
#define PIN6_bp 6
-#define PIN7_bm 0x80
+#define PIN7_bm 0x80
#define PIN7_bp 7
diff --git a/cpukit/score/cpu/avr/avr/iox256a3b.h b/cpukit/score/cpu/avr/avr/iox256a3b.h
index 490082b5bd..a8112d1a91 100644
--- a/cpukit/score/cpu/avr/avr/iox256a3b.h
+++ b/cpukit/score/cpu/avr/avr/iox256a3b.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iox256a3b.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATxmega256A3B_H_
@@ -6452,21 +6452,21 @@ IO Module Instances. Mapped to memory.
// Generic Port Pins
-#define PIN0_bm 0x01
+#define PIN0_bm 0x01
#define PIN0_bp 0
#define PIN1_bm 0x02
#define PIN1_bp 1
-#define PIN2_bm 0x04
+#define PIN2_bm 0x04
#define PIN2_bp 2
-#define PIN3_bm 0x08
+#define PIN3_bm 0x08
#define PIN3_bp 3
-#define PIN4_bm 0x10
+#define PIN4_bm 0x10
#define PIN4_bp 4
-#define PIN5_bm 0x20
+#define PIN5_bm 0x20
#define PIN5_bp 5
-#define PIN6_bm 0x40
+#define PIN6_bm 0x40
#define PIN6_bp 6
-#define PIN7_bm 0x80
+#define PIN7_bm 0x80
#define PIN7_bp 7
diff --git a/cpukit/score/cpu/avr/avr/iox32a4.h b/cpukit/score/cpu/avr/avr/iox32a4.h
index 4987855407..91c18090ea 100644
--- a/cpukit/score/cpu/avr/avr/iox32a4.h
+++ b/cpukit/score/cpu/avr/avr/iox32a4.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iox32a4.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATxmega32A4_H_
@@ -6252,21 +6252,21 @@ IO Module Instances. Mapped to memory.
// Generic Port Pins
-#define PIN0_bm 0x01
+#define PIN0_bm 0x01
#define PIN0_bp 0
#define PIN1_bm 0x02
#define PIN1_bp 1
-#define PIN2_bm 0x04
+#define PIN2_bm 0x04
#define PIN2_bp 2
-#define PIN3_bm 0x08
+#define PIN3_bm 0x08
#define PIN3_bp 3
-#define PIN4_bm 0x10
+#define PIN4_bm 0x10
#define PIN4_bp 4
-#define PIN5_bm 0x20
+#define PIN5_bm 0x20
#define PIN5_bp 5
-#define PIN6_bm 0x40
+#define PIN6_bm 0x40
#define PIN6_bp 6
-#define PIN7_bm 0x80
+#define PIN7_bm 0x80
#define PIN7_bp 7
diff --git a/cpukit/score/cpu/avr/avr/iox32d4.h b/cpukit/score/cpu/avr/avr/iox32d4.h
index 9cbf845ced..ee034be031 100644
--- a/cpukit/score/cpu/avr/avr/iox32d4.h
+++ b/cpukit/score/cpu/avr/avr/iox32d4.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iox32d4.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATxmega32D4_H_
@@ -5222,21 +5222,21 @@ IO Module Instances. Mapped to memory.
// Generic Port Pins
-#define PIN0_bm 0x01
+#define PIN0_bm 0x01
#define PIN0_bp 0
#define PIN1_bm 0x02
#define PIN1_bp 1
-#define PIN2_bm 0x04
+#define PIN2_bm 0x04
#define PIN2_bp 2
-#define PIN3_bm 0x08
+#define PIN3_bm 0x08
#define PIN3_bp 3
-#define PIN4_bm 0x10
+#define PIN4_bm 0x10
#define PIN4_bp 4
-#define PIN5_bm 0x20
+#define PIN5_bm 0x20
#define PIN5_bp 5
-#define PIN6_bm 0x40
+#define PIN6_bm 0x40
#define PIN6_bp 6
-#define PIN7_bm 0x80
+#define PIN7_bm 0x80
#define PIN7_bp 7
diff --git a/cpukit/score/cpu/avr/avr/iox64a1.h b/cpukit/score/cpu/avr/avr/iox64a1.h
index 2a73f0844f..43c3148864 100644
--- a/cpukit/score/cpu/avr/avr/iox64a1.h
+++ b/cpukit/score/cpu/avr/avr/iox64a1.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iox64a1.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATxmega64A1_H_
@@ -6625,21 +6625,21 @@ IO Module Instances. Mapped to memory.
// Generic Port Pins
-#define PIN0_bm 0x01
+#define PIN0_bm 0x01
#define PIN0_bp 0
#define PIN1_bm 0x02
#define PIN1_bp 1
-#define PIN2_bm 0x04
+#define PIN2_bm 0x04
#define PIN2_bp 2
-#define PIN3_bm 0x08
+#define PIN3_bm 0x08
#define PIN3_bp 3
-#define PIN4_bm 0x10
+#define PIN4_bm 0x10
#define PIN4_bp 4
-#define PIN5_bm 0x20
+#define PIN5_bm 0x20
#define PIN5_bp 5
-#define PIN6_bm 0x40
+#define PIN6_bm 0x40
#define PIN6_bp 6
-#define PIN7_bm 0x80
+#define PIN7_bm 0x80
#define PIN7_bp 7
diff --git a/cpukit/score/cpu/avr/avr/iox64a3.h b/cpukit/score/cpu/avr/avr/iox64a3.h
index b593964d4f..8f59c1977e 100644
--- a/cpukit/score/cpu/avr/avr/iox64a3.h
+++ b/cpukit/score/cpu/avr/avr/iox64a3.h
@@ -42,7 +42,7 @@
# define _AVR_IOXXX_H_ "iox64a3.h"
#else
# error "Attempt to include more than one <avr/ioXXX.h> file."
-#endif
+#endif
#ifndef _AVR_ATxmega64A3_H_
@@ -6438,21 +6438,21 @@ IO Module Instances. Mapped to memory.
// Generic Port Pins
-#define PIN0_bm 0x01
+#define PIN0_bm 0x01
#define PIN0_bp 0
#define PIN1_bm 0x02
#define PIN1_bp 1
-#define PIN2_bm 0x04
+#define PIN2_bm 0x04
#define PIN2_bp 2
-#define PIN3_bm 0x08
+#define PIN3_bm 0x08
#define PIN3_bp 3
-#define PIN4_bm 0x10
+#define PIN4_bm 0x10
#define PIN4_bp 4
-#define PIN5_bm 0x20
+#define PIN5_bm 0x20
#define PIN5_bp 5
-#define PIN6_bm 0x40
+#define PIN6_bm 0x40
#define PIN6_bp 6
-#define PIN7_bm 0x80
+#define PIN7_bm 0x80
#define PIN7_bp 7
diff --git a/cpukit/score/cpu/avr/avr/lock.h b/cpukit/score/cpu/avr/avr/lock.h
index 7da0c572c3..5f464c82e6 100644
--- a/cpukit/score/cpu/avr/avr/lock.h
+++ b/cpukit/score/cpu/avr/avr/lock.h
@@ -41,72 +41,72 @@
\par Introduction
- The Lockbit API allows a user to specify the lockbit settings for the
- specific AVR device they are compiling for. These lockbit settings will be
+ The Lockbit API allows a user to specify the lockbit settings for the
+ specific AVR device they are compiling for. These lockbit settings will be
placed in a special section in the ELF output file, after linking.
Programming tools can take advantage of the lockbit information embedded in
the ELF file, by extracting this information and determining if the lockbits
need to be programmed after programming the Flash and EEPROM memories.
This also allows a single ELF file to contain all the
- information needed to program an AVR.
+ information needed to program an AVR.
To use the Lockbit API, include the <avr/io.h> header file, which in turn
automatically includes the individual I/O header file and the <avr/lock.h>
file. These other two files provides everything necessary to set the AVR
lockbits.
-
+
\par Lockbit API
-
+
Each I/O header file may define up to 3 macros that controls what kinds
of lockbits are available to the user.
-
+
If __LOCK_BITS_EXIST is defined, then two lock bits are available to the
user and 3 mode settings are defined for these two bits.
-
+
If __BOOT_LOCK_BITS_0_EXIST is defined, then the two BLB0 lock bits are
available to the user and 4 mode settings are defined for these two bits.
-
+
If __BOOT_LOCK_BITS_1_EXIST is defined, then the two BLB1 lock bits are
available to the user and 4 mode settings are defined for these two bits.
If __BOOT_LOCK_APPLICATION_TABLE_BITS_EXIST is defined then two lock bits
- are available to set the locking mode for the Application Table Section
+ are available to set the locking mode for the Application Table Section
(which is used in the XMEGA family).
-
+
If __BOOT_LOCK_APPLICATION_BITS_EXIST is defined then two lock bits are
available to set the locking mode for the Application Section (which is used
in the XMEGA family).
-
+
If __BOOT_LOCK_BOOT_BITS_EXIST is defined then two lock bits are available
to set the locking mode for the Boot Loader Section (which is used in the
XMEGA family).
- The AVR lockbit modes have inverted values, logical 1 for an unprogrammed
- (disabled) bit and logical 0 for a programmed (enabled) bit. The defined
- macros for each individual lock bit represent this in their definition by a
- bit-wise inversion of a mask. For example, the LB_MODE_3 macro is defined
+ The AVR lockbit modes have inverted values, logical 1 for an unprogrammed
+ (disabled) bit and logical 0 for a programmed (enabled) bit. The defined
+ macros for each individual lock bit represent this in their definition by a
+ bit-wise inversion of a mask. For example, the LB_MODE_3 macro is defined
as:
\code
#define LB_MODE_3 (0xFC)
` \endcode
-
+
To combine the lockbit mode macros together to represent a whole byte,
use the bitwise AND operator, like so:
\code
(LB_MODE_3 & BLB0_MODE_2)
\endcode
-
+
<avr/lock.h> also defines a macro that provides a default lockbit value:
LOCKBITS_DEFAULT which is defined to be 0xFF.
See the AVR device specific datasheet for more details about these
lock bits and the available mode settings.
-
- A convenience macro, LOCKMEM, is defined as a GCC attribute for a
+
+ A convenience macro, LOCKMEM, is defined as a GCC attribute for a
custom-named section of ".lock".
-
- A convenience macro, LOCKBITS, is defined that declares a variable, __lock,
+
+ A convenience macro, LOCKBITS, is defined that declares a variable, __lock,
of type unsigned char with the attribute defined by LOCKMEM. This variable
allows the end user to easily set the lockbit data.
@@ -116,9 +116,9 @@
currently known to be defined in the I/O header files for the XMEGA devices.
\par API Usage Example
-
+
Putting all of this together is easy:
-
+
\code
#include <avr/io.h>
@@ -129,13 +129,13 @@
return 0;
}
\endcode
-
+
Or:
-
+
\code
#include <avr/io.h>
- unsigned char __lock __attribute__((section (".lock"))) =
+ unsigned char __lock __attribute__((section (".lock"))) =
(LB_MODE_1 & BLB0_MODE_3 & BLB1_MODE_4);
int main(void)
@@ -143,36 +143,36 @@
return 0;
}
\endcode
-
-
-
+
+
+
However there are a number of caveats that you need to be aware of to
use this API properly.
-
+
Be sure to include <avr/io.h> to get all of the definitions for the API.
- The LOCKBITS macro defines a global variable to store the lockbit data. This
- variable is assigned to its own linker section. Assign the desired lockbit
+ The LOCKBITS macro defines a global variable to store the lockbit data. This
+ variable is assigned to its own linker section. Assign the desired lockbit
values immediately in the variable initialization.
-
- The .lock section in the ELF file will get its values from the initial
- variable assignment ONLY. This means that you can NOT assign values to
+
+ The .lock section in the ELF file will get its values from the initial
+ variable assignment ONLY. This means that you can NOT assign values to
this variable in functions and the new values will not be put into the
ELF .lock section.
-
- The global variable is declared in the LOCKBITS macro has two leading
+
+ The global variable is declared in the LOCKBITS macro has two leading
underscores, which means that it is reserved for the "implementation",
meaning the library, so it will not conflict with a user-named variable.
-
+
You must initialize the lockbit variable to some meaningful value, even
- if it is the default value. This is because the lockbits default to a
- logical 1, meaning unprogrammed. Normal uninitialized data defaults to all
- locgial zeros. So it is vital that all lockbits are initialized, even with
- default data. If they are not, then the lockbits may not programmed to the
- desired settings and can possibly put your device into an unrecoverable
+ if it is the default value. This is because the lockbits default to a
+ logical 1, meaning unprogrammed. Normal uninitialized data defaults to all
+ locgial zeros. So it is vital that all lockbits are initialized, even with
+ default data. If they are not, then the lockbits may not programmed to the
+ desired settings and can possibly put your device into an unrecoverable
state.
-
+
Be sure to have the -mmcu=<em>device</em> flag in your compile command line and
- your linker command line to have the correct device selected and to have
+ your linker command line to have the correct device selected and to have
the correct I/O header file included when you include <avr/io.h>.
You can print out the contents of the .lock section in the ELF file by
diff --git a/cpukit/score/cpu/avr/avr/pgmspace.h b/cpukit/score/cpu/avr/avr/pgmspace.h
index 23f47d08de..06036d1a60 100644
--- a/cpukit/score/cpu/avr/avr/pgmspace.h
+++ b/cpukit/score/cpu/avr/avr/pgmspace.h
@@ -403,7 +403,7 @@ typedef uint64_t prog_uint64_t PROGMEM;
/** \ingroup avr_pgmspace
\def pgm_read_byte_near(address_short)
- Read a byte from the program space with a 16-bit (near) address.
+ Read a byte from the program space with a 16-bit (near) address.
\note The address is a byte address.
The address is in the program space. */
@@ -411,16 +411,16 @@ typedef uint64_t prog_uint64_t PROGMEM;
/** \ingroup avr_pgmspace
\def pgm_read_word_near(address_short)
- Read a word from the program space with a 16-bit (near) address.
- \note The address is a byte address.
+ Read a word from the program space with a 16-bit (near) address.
+ \note The address is a byte address.
The address is in the program space. */
#define pgm_read_word_near(address_short) __LPM_word((uint16_t)(address_short))
/** \ingroup avr_pgmspace
\def pgm_read_dword_near(address_short)
- Read a double word from the program space with a 16-bit (near) address.
- \note The address is a byte address.
+ Read a double word from the program space with a 16-bit (near) address.
+ \note The address is a byte address.
The address is in the program space. */
#define pgm_read_dword_near(address_short) \
@@ -428,8 +428,8 @@ typedef uint64_t prog_uint64_t PROGMEM;
/** \ingroup avr_pgmspace
\def pgm_read_float_near(address_short)
- Read a float from the program space with a 16-bit (near) address.
- \note The address is a byte address.
+ Read a float from the program space with a 16-bit (near) address.
+ \note The address is a byte address.
The address is in the program space. */
#define pgm_read_float_near(address_short) \
@@ -719,10 +719,10 @@ typedef uint64_t prog_uint64_t PROGMEM;
__result; \
}))
-/*
-Check for architectures that implement RAMPD (avrxmega3, avrxmega5,
+/*
+Check for architectures that implement RAMPD (avrxmega3, avrxmega5,
avrxmega7) as they need to save/restore RAMPZ for ELPM macros so it does
-not interfere with data accesses.
+not interfere with data accesses.
*/
#if defined (__AVR_HAVE_RAMPD__)
@@ -754,16 +754,16 @@ not interfere with data accesses.
/** \ingroup avr_pgmspace
\def pgm_read_byte_far(address_long)
- Read a byte from the program space with a 32-bit (far) address.
+ Read a byte from the program space with a 32-bit (far) address.
- \note The address is a byte address.
+ \note The address is a byte address.
The address is in the program space. */
#define pgm_read_byte_far(address_long) __ELPM((uint32_t)(address_long))
/** \ingroup avr_pgmspace
\def pgm_read_word_far(address_long)
- Read a word from the program space with a 32-bit (far) address.
+ Read a word from the program space with a 32-bit (far) address.
\note The address is a byte address.
The address is in the program space. */
@@ -772,7 +772,7 @@ not interfere with data accesses.
/** \ingroup avr_pgmspace
\def pgm_read_dword_far(address_long)
- Read a double word from the program space with a 32-bit (far) address.
+ Read a double word from the program space with a 32-bit (far) address.
\note The address is a byte address.
The address is in the program space. */
@@ -781,7 +781,7 @@ not interfere with data accesses.
/** \ingroup avr_pgmspace
\def pgm_read_float_far(address_long)
- Read a float from the program space with a 32-bit (far) address.
+ Read a float from the program space with a 32-bit (far) address.
\note The address is a byte address.
The address is in the program space. */
@@ -792,36 +792,36 @@ not interfere with data accesses.
/** \ingroup avr_pgmspace
\def pgm_read_byte(address_short)
- Read a byte from the program space with a 16-bit (near) address.
+ Read a byte from the program space with a 16-bit (near) address.
- \note The address is a byte address.
+ \note The address is a byte address.
The address is in the program space. */
#define pgm_read_byte(address_short) pgm_read_byte_near(address_short)
/** \ingroup avr_pgmspace
\def pgm_read_word(address_short)
- Read a word from the program space with a 16-bit (near) address.
+ Read a word from the program space with a 16-bit (near) address.
- \note The address is a byte address.
+ \note The address is a byte address.
The address is in the program space. */
#define pgm_read_word(address_short) pgm_read_word_near(address_short)
/** \ingroup avr_pgmspace
\def pgm_read_dword(address_short)
- Read a double word from the program space with a 16-bit (near) address.
+ Read a double word from the program space with a 16-bit (near) address.
- \note The address is a byte address.
+ \note The address is a byte address.
The address is in the program space. */
#define pgm_read_dword(address_short) pgm_read_dword_near(address_short)
/** \ingroup avr_pgmspace
\def pgm_read_float(address_short)
- Read a float from the program space with a 16-bit (near) address.
+ Read a float from the program space with a 16-bit (near) address.
- \note The address is a byte address.
+ \note The address is a byte address.
The address is in the program space. */
#define pgm_read_float(address_short) pgm_read_float_near(address_short)
diff --git a/cpukit/score/cpu/avr/avr/power.h b/cpukit/score/cpu/avr/avr/power.h
index ddb63b8ed5..b84e78c294 100644
--- a/cpukit/score/cpu/avr/avr/power.h
+++ b/cpukit/score/cpu/avr/avr/power.h
@@ -40,20 +40,20 @@
\code #include <avr/power.h>\endcode
-Many AVRs contain a Power Reduction Register (PRR) or Registers (PRRx) that
-allow you to reduce power consumption by disabling or enabling various on-board
+Many AVRs contain a Power Reduction Register (PRR) or Registers (PRRx) that
+allow you to reduce power consumption by disabling or enabling various on-board
peripherals as needed.
There are many macros in this header file that provide an easy interface
to enable or disable on-board peripherals to reduce power. See the table below.
\note Not all AVR devices have a Power Reduction Register (for example
-the ATmega128). On those devices without a Power Reduction Register, these
+the ATmega128). On those devices without a Power Reduction Register, these
macros are not available.
\note Not all AVR devices contain the same peripherals (for example, the LCD
-interface), or they will be named differently (for example, USART and
-USART0). Please consult your device's datasheet, or the header file, to
+interface), or they will be named differently (for example, USART and
+USART0). Please consult your device's datasheet, or the header file, to
find out which macros are applicable to your device.
*/
@@ -477,7 +477,7 @@ do { \
|| defined(__AVR_ATmega1280__) \
|| defined(__AVR_ATmega1281__) \
|| defined(__AVR_ATmega2560__) \
-|| defined(__AVR_ATmega2561__)
+|| defined(__AVR_ATmega2561__)
#define power_adc_enable() (PRR0 &= (uint8_t)~(1 << PRADC))
#define power_adc_disable() (PRR0 |= (uint8_t)(1 << PRADC))
@@ -1277,7 +1277,7 @@ without a Clock Prescale Register, these macros are not available.
/** \addtogroup avr_power
-\code
+\code
typedef enum
{
clock_div_1 = 0,
diff --git a/cpukit/score/cpu/avr/avr/sfr_defs.h b/cpukit/score/cpu/avr/avr/sfr_defs.h
index 2f355721fe..2c28c759e2 100644
--- a/cpukit/score/cpu/avr/avr/sfr_defs.h
+++ b/cpukit/score/cpu/avr/avr/sfr_defs.h
@@ -204,7 +204,7 @@
\note The bit shift is performed by the compiler which then inserts the
result into the code. Thus, there is no run-time overhead when using
_BV(). */
-
+
#define _BV(bit) (1 << (bit))
/*@}*/
@@ -227,7 +227,7 @@
\code #include <avr/io.h>\endcode
- Test whether bit \c bit in IO register \c sfr is set.
+ Test whether bit \c bit in IO register \c sfr is set.
This will return a 0 if the bit is clear, and non-zero
if the bit is set. */
@@ -238,7 +238,7 @@
\code #include <avr/io.h>\endcode
- Test whether bit \c bit in IO register \c sfr is clear.
+ Test whether bit \c bit in IO register \c sfr is clear.
This will return non-zero if the bit is clear, and a 0
if the bit is set. */
diff --git a/cpukit/score/cpu/avr/avr/sleep.h b/cpukit/score/cpu/avr/avr/sleep.h
index 856f8e8080..6c4eb7ff7d 100644
--- a/cpukit/score/cpu/avr/avr/sleep.h
+++ b/cpukit/score/cpu/avr/avr/sleep.h
@@ -55,9 +55,9 @@
set the desired sleep mode using \c set_sleep_mode() (it usually
defaults to idle mode where the CPU is put on sleep but all
peripheral clocks are still running), and then call
- \c sleep_mode(). This macro automatically sets the sleep enable bit, goes
+ \c sleep_mode(). This macro automatically sets the sleep enable bit, goes
to sleep, and clears the sleep enable bit.
-
+
Example:
\code
#include <avr/sleep.h>
@@ -66,8 +66,8 @@
set_sleep_mode(<mode>);
sleep_mode();
\endcode
-
- Note that unless your purpose is to completely lock the CPU (until a
+
+ Note that unless your purpose is to completely lock the CPU (until a
hardware reset), interrupts need to be enabled before going to sleep.
As the \c sleep_mode() macro might cause race conditions in some
@@ -103,7 +103,7 @@
after the \c SEI is guaranteed to be executed before an interrupt
could trigger, it is sure the device will really be put to sleep.
- Some devices have the ability to disable the Brown Out Detector (BOD) before
+ Some devices have the ability to disable the Brown Out Detector (BOD) before
going to sleep. This will also reduce power while sleeping. If the
specific AVR device has this ability then an additional macro is defined:
\c sleep_bod_disable(). This macro generates inlined assembly code
diff --git a/cpukit/score/cpu/avr/avr/wdt.h b/cpukit/score/cpu/avr/avr/wdt.h
index 385ea73ee1..46bad43039 100644
--- a/cpukit/score/cpu/avr/avr/wdt.h
+++ b/cpukit/score/cpu/avr/avr/wdt.h
@@ -84,7 +84,7 @@
\endcode
Saving the value of MCUSR in \c mcusr_mirror is only needed if the
- application later wants to examine the reset source, but in particular,
+ application later wants to examine the reset source, but in particular,
clearing the watchdog reset flag before disabling the
watchdog is required, according to the datasheet.
*/
@@ -93,7 +93,7 @@
\ingroup avr_watchdog
Reset the watchdog timer. When the watchdog timer is enabled,
a call to this instruction is required before the timer expires,
- otherwise a watchdog-initiated device reset will occur.
+ otherwise a watchdog-initiated device reset will occur.
*/
#define wdt_reset() __asm__ __volatile__ ("wdr")
@@ -122,8 +122,8 @@
\ingroup avr_watchdog
Enable the watchdog timer, configuring it for expiry after
\c timeout (which is a combination of the \c WDP0 through
- \c WDP2 bits to write into the \c WDTCR register; For those devices
- that have a \c WDTCSR register, it uses the combination of the \c WDP0
+ \c WDP2 bits to write into the \c WDTCR register; For those devices
+ that have a \c WDTCSR register, it uses the combination of the \c WDP0
through \c WDP3 bits).
See also the symbolic constants \c WDTO_15MS et al.
@@ -232,7 +232,7 @@ __asm__ __volatile__ ( \
|| defined(__AVR_ATA6289__)
/* Use STS instruction. */
-
+
#define wdt_enable(value) \
__asm__ __volatile__ ( \
"in __tmp_reg__,__SREG__" "\n\t" \
@@ -263,8 +263,8 @@ __asm__ __volatile__ ( \
)
-
-#else
+
+#else
/* Use OUT instruction. */
@@ -286,8 +286,8 @@ __asm__ __volatile__ ( \
/**
\ingroup avr_watchdog
- Disable the watchdog timer, if possible. This attempts to turn off the
- Enable bit in the watchdog control register. See the datasheet for
+ Disable the watchdog timer, if possible. This attempts to turn off the
+ Enable bit in the watchdog control register. See the datasheet for
details.
*/
#define wdt_disable() \
@@ -362,11 +362,11 @@ __asm__ __volatile__ ( \
/** \ingroup avr_watchdog
See \c WDT0_15MS
- Note: This is only available on the
- ATtiny2313,
- ATtiny24, ATtiny44, ATtiny84,
- ATtiny25, ATtiny45, ATtiny85,
- ATtiny261, ATtiny461, ATtiny861,
+ Note: This is only available on the
+ ATtiny2313,
+ ATtiny24, ATtiny44, ATtiny84,
+ ATtiny25, ATtiny45, ATtiny85,
+ ATtiny261, ATtiny461, ATtiny861,
ATmega48, ATmega88, ATmega168,
ATmega48P, ATmega88P, ATmega168P, ATmega328P,
ATmega164P, ATmega324P, ATmega644P, ATmega644,
@@ -383,11 +383,11 @@ __asm__ __volatile__ ( \
/** \ingroup avr_watchdog
See \c WDT0_15MS
- Note: This is only available on the
- ATtiny2313,
- ATtiny24, ATtiny44, ATtiny84,
- ATtiny25, ATtiny45, ATtiny85,
- ATtiny261, ATtiny461, ATtiny861,
+ Note: This is only available on the
+ ATtiny2313,
+ ATtiny24, ATtiny44, ATtiny84,
+ ATtiny25, ATtiny45, ATtiny85,
+ ATtiny261, ATtiny461, ATtiny861,
ATmega48, ATmega88, ATmega168,
ATmega48P, ATmega88P, ATmega168P, ATmega328P,
ATmega164P, ATmega324P, ATmega644P, ATmega644,
@@ -403,6 +403,6 @@ __asm__ __volatile__ ( \
#define WDTO_8S 9
#endif /* defined(__DOXYGEN__) || defined(WDP3) */
-
+
#endif /* _AVR_WDT_H_ */
diff --git a/cpukit/score/cpu/avr/cpu.c b/cpukit/score/cpu/avr/cpu.c
index 5833deea12..eaaf1dc91f 100644
--- a/cpukit/score/cpu/avr/cpu.c
+++ b/cpukit/score/cpu/avr/cpu.c
@@ -30,7 +30,7 @@
*/
void _CPU_Initialize(void)
{
-
+
/*
* If there is not an easy way to initialize the FP context
* during Context_Initialize, then it is usually easier to
@@ -49,7 +49,7 @@ void _CPU_Initialize(void)
*
* XXX document implementation including references if appropriate
*/
-
+
uint32_t _CPU_ISR_Get_level( void )
{
/*
@@ -68,7 +68,7 @@ uint32_t _CPU_ISR_Get_level( void )
*
* XXX document implementation including references if appropriate
*/
-
+
void _CPU_ISR_install_raw_handler(
uint32_t vector,
proc_ptr new_handler,
diff --git a/cpukit/score/cpu/avr/cpu_asm.S b/cpukit/score/cpu/avr/cpu_asm.S
index 5f69b5fc07..a31caa3e83 100644
--- a/cpukit/score/cpu/avr/cpu_asm.S
+++ b/cpukit/score/cpu/avr/cpu_asm.S
@@ -140,7 +140,7 @@ _U(longjmp):
* NO_CPU Specific Information:
*
* XXX document implementation including references if appropriate
-
+
void _CPU_Context_save_fp(
Context_Control_fp **fp_context_ptr
@@ -175,7 +175,7 @@ SYM(_CPU_Context_save_fp):
* NO_CPU Specific Information:
*
* XXX document implementation including references if appropriate
-
+
void _CPU_Context_restore_fp(
Context_Control_fp **fp_context_ptr
@@ -215,7 +215,7 @@ SYM(_CPU_Context_switch):
/*save registers*/
#if 1
/*if this section is removed there is a problem.*/
-/*debug section start*/
+/*debug section start*/
pop r22
pop r23
push r22
@@ -340,7 +340,7 @@ SYM(_CPU_Context_Initialize):
PUSH R17
PUSH R28
PUSH R29
- //calculate new stack pointer
+ //calculate new stack pointer
ADD R22, R18
ADC R23, R19
MOV R26, R22
@@ -385,7 +385,7 @@ NEW_LEVEL_ZERO:
* NO_CPU Specific Information:
*
* XXX document implementation including references if appropriate
-
+
void _ISR_Handler(void)
{
@@ -446,7 +446,7 @@ void _ISR_Handler(void)
*
* LABEL "exit interrupt (simple case):
* #if ( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE )
- * if outermost interrupt
+ * if outermost interrupt
* restore stack
* #endif
* prepare to get out of interrupt
diff --git a/cpukit/score/cpu/avr/rtems/asm.h b/cpukit/score/cpu/avr/rtems/asm.h
index e84d5c7210..64cb14a233 100644
--- a/cpukit/score/cpu/avr/rtems/asm.h
+++ b/cpukit/score/cpu/avr/rtems/asm.h
@@ -301,7 +301,7 @@
.if (.L_movw_dst < 0) || (.L_movw_src < 0)
.err ; Invalid 'X_movw' arg.
.endif
-
+
.if ((.L_movw_src) - (.L_movw_dst)) /* different registers */
.if (((.L_movw_src) | (.L_movw_dst)) & 0x01)
.if (((.L_movw_src)-(.L_movw_dst)) & 0x80) /* src < dest */
@@ -382,7 +382,7 @@
.err ; Invalid dst arg of 'X_lpm' macro.
.endif
- /* src evaluation */
+ /* src evaluation */
.L_lpm_src = -1
.L_lpm_n = 0
.irp reg, z,Z,z+,Z+
@@ -396,7 +396,7 @@
.err ; Invalid src arg of 'X_lpm' macro.
.endif
- /* instruction(s) */
+ /* instruction(s) */
.if .L_lpm_src < 2
.if .L_lpm_dst == 0
lpm
diff --git a/cpukit/score/cpu/avr/rtems/score/avr.h b/cpukit/score/cpu/avr/rtems/score/avr.h
index 507515193a..3b4b6152f9 100644
--- a/cpukit/score/cpu/avr/rtems/score/avr.h
+++ b/cpukit/score/cpu/avr/rtems/score/avr.h
@@ -3,7 +3,7 @@
*/
/*
- * This file sets up basic CPU dependency settings based on
+ * This file sets up basic CPU dependency settings based on
* compiler settings. For example, it can determine if
* floating point is available. This particular implementation
* is specified to the avr port.
@@ -36,10 +36,10 @@ extern "C" {
* that this port supports and which RTEMS CPU model they correspond
* to.
*/
-
+
/*
- * Figure out all CPU Model Feature Flags based upon compiler
- * predefines.
+ * Figure out all CPU Model Feature Flags based upon compiler
+ * predefines.
*/
#if defined(__AVR__)
@@ -88,9 +88,9 @@ extern "C" {
#endif
#else
-
+
#error "Unsupported CPU Model"
-
+
#endif
/*
diff --git a/cpukit/score/cpu/avr/rtems/score/cpu.h b/cpukit/score/cpu/avr/rtems/score/cpu.h
index 26b0f2795c..cf8dc1f8aa 100644
--- a/cpukit/score/cpu/avr/rtems/score/cpu.h
+++ b/cpukit/score/cpu/avr/rtems/score/cpu.h
@@ -150,7 +150,7 @@ extern "C" {
/*
* Does the RTEMS invoke the user's ISR with the vector number and
- * a pointer to the saved interrupt frame (1) or just the vector
+ * a pointer to the saved interrupt frame (1) or just the vector
* number (0)?
*
* AVR Specific Information:
@@ -189,7 +189,7 @@ extern "C" {
* an i387 and wish to leave floating point support out of RTEMS.
*
* The CPU_SOFTWARE_FP is used to indicate whether or not there
- * is software implemented floating point that must be context
+ * is software implemented floating point that must be context
* switched. The determination of whether or not this applies
* is very tool specific and the state saved/restored is also
* compiler specific.
@@ -425,7 +425,7 @@ extern "C" {
typedef struct {
uint16_t stack_pointer;
- uint8_t status; //SREG
+ uint8_t status; //SREG
} Context_Control;
#define _CPU_Context_Get_SP( _context ) \
@@ -566,7 +566,7 @@ SCORE_EXTERN void *_CPU_Interrupt_stack_high;
*
* NOTE: This does not have to be a power of 2 although it should be
* a multiple of 2 greater than or equal to 2. The requirement
- * to be a multiple of 2 is because the heap uses the least
+ * to be a multiple of 2 is because the heap uses the least
* significant field of the front and back flags to indicate
* that a block is in use or free. So you do not want any odd
* length blocks really putting length data in that bit.
@@ -943,8 +943,8 @@ uint32_t _CPU_ISR_Get_level( void );
/*context_initialize asm function*/
void context_initialize(unsigned short* context,
- unsigned short stack_add,
- unsigned short entry_point);
+ unsigned short stack_add,
+ unsigned short entry_point);
/*PAGE
*
@@ -987,7 +987,7 @@ void _CPU_Context_Initialize(
*
*/
-void _CPU_Push(uint16_t _SP_, uint16_t entry_point);
+void _CPU_Push(uint16_t _SP_, uint16_t entry_point);
@@ -1007,14 +1007,14 @@ void _CPU_Initialize(void);
/*
* _CPU_ISR_install_raw_handler
*
- * This routine installs a "raw" interrupt handler directly into the
+ * This routine installs a "raw" interrupt handler directly into the
* processor's vector table.
*
* AVR Specific Information:
*
* XXX document implementation including references if appropriate
*/
-
+
void _CPU_ISR_install_raw_handler(
uint32_t vector,
proc_ptr new_handler,
@@ -1150,18 +1150,18 @@ void _CPU_Context_restore_fp(
*
* XXX document implementation including references if appropriate
*/
-
+
static inline uint32_t CPU_swap_u32(
uint32_t value
)
{
uint32_t byte1, byte2, byte3, byte4, swapped;
-
+
byte4 = (value >> 24) & 0xff;
byte3 = (value >> 16) & 0xff;
byte2 = (value >> 8) & 0xff;
byte1 = value & 0xff;
-
+
swapped = (byte1 << 24) | (byte2 << 16) | (byte3 << 8) | byte4;
return( swapped );
}