Skip to content

Commit a09f931

Browse files
committed
adding MIT License
1 parent 4f4be15 commit a09f931

File tree

9 files changed

+51
-93
lines changed

9 files changed

+51
-93
lines changed

blinker01/memmap

+1-18
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
11

2-
/*-----------------------------------------------------------------------*/
3-
/*-----------------------------------------------------------------------*/
42
MEMORY
53
{
64
ram : ORIGIN = 0x8000, LENGTH = 0x10000
75
}
8-
/*-----------------------------------------------------------------------*/
6+
97
SECTIONS
108
{
119
.text : { *(.text*) } > ram
1210
.bss : { *(.bss*) } > ram
1311
}
14-
/*-----------------------------------------------------------------------*/
15-
/*-----------------------------------------------------------------------*/
16-
17-
18-
/*-----------------------------------------------------------------------*/
19-
20-
/* Copyright (c) 2012 David Welch [email protected] */
21-
22-
/* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: */
23-
24-
/* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. */
25-
26-
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
27-
28-
/*-----------------------------------------------------------------------*/

blinker02/memmap

+1-17
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
11

2-
/*-----------------------------------------------------------------------*/
3-
/*-----------------------------------------------------------------------*/
42
MEMORY
53
{
64
ram : ORIGIN = 0x8000, LENGTH = 0x1000
75
}
8-
/*-----------------------------------------------------------------------*/
6+
97
SECTIONS
108
{
119
.text : { *(.text*) } > ram
1210
.bss : { *(.bss*) } > ram
1311
}
14-
/*-----------------------------------------------------------------------*/
15-
/*-----------------------------------------------------------------------*/
16-
17-
/*-----------------------------------------------------------------------*/
18-
19-
/* Copyright (c) 2012 David Welch [email protected] */
20-
21-
/* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: */
22-
23-
/* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. */
24-
25-
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
26-
27-
/*-----------------------------------------------------------------------*/

blinker03/memmap

+1-18
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
11

2-
/*-----------------------------------------------------------------------*/
3-
/*-----------------------------------------------------------------------*/
42
MEMORY
53
{
64
ram : ORIGIN = 0x8000, LENGTH = 0x1000
75
}
8-
/*-----------------------------------------------------------------------*/
6+
97
SECTIONS
108
{
119
.text : { *(.text*) } > ram
1210
.bss : { *(.bss*) } > ram
1311
}
14-
/*-----------------------------------------------------------------------*/
15-
/*-----------------------------------------------------------------------*/
16-
17-
18-
/*-----------------------------------------------------------------------*/
19-
20-
/* Copyright (c) 2012 David Welch [email protected] */
21-
22-
/* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: */
23-
24-
/* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. */
25-
26-
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
27-
28-
/*-----------------------------------------------------------------------*/

blinker04/memmap

-19
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11

2-
/*-----------------------------------------------------------------------*/
3-
/*-----------------------------------------------------------------------*/
4-
52
MEMORY
63
{
74
ram : ORIGIN = 0x8000, LENGTH = 0x1000
@@ -12,19 +9,3 @@ SECTIONS
129
.text : { *(.text*) } > ram
1310
.bss : { *(.bss*) } > ram
1411
}
15-
16-
/*-----------------------------------------------------------------------*/
17-
/*-----------------------------------------------------------------------*/
18-
19-
20-
/*-----------------------------------------------------------------------*/
21-
22-
/* Copyright (c) 2012 David Welch [email protected] */
23-
24-
/* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: */
25-
26-
/* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. */
27-
28-
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
29-
30-
/*-----------------------------------------------------------------------*/

blinker05/memmap

+1-18
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
11

2-
/*-----------------------------------------------------------------------*/
3-
/*-----------------------------------------------------------------------*/
42
MEMORY
53
{
64
ram : ORIGIN = 0x8000, LENGTH = 0x1000
75
}
8-
/*-----------------------------------------------------------------------*/
6+
97
SECTIONS
108
{
119
.text : { *(.text*) } > ram
1210
.bss : { *(.bss*) } > ram
1311
}
14-
/*-----------------------------------------------------------------------*/
15-
/*-----------------------------------------------------------------------*/
16-
17-
18-
/*-----------------------------------------------------------------------*/
19-
20-
/* Copyright (c) 2012 David Welch [email protected] */
21-
22-
/* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: */
23-
24-
/* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. */
25-
26-
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
27-
28-
/*-----------------------------------------------------------------------*/

blinker06/blinker06.c

+13-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
int notmain ( void )
1010
{
1111
unsigned int ra;
12-
unsigned int rb;
1312

1413
init_led();
1514
while(1)
@@ -30,3 +29,16 @@ int notmain ( void )
3029
}
3130
//-------------------------------------------------------------------------
3231
//-------------------------------------------------------------------------
32+
33+
34+
//-------------------------------------------------------------------------
35+
//
36+
// Copyright (c) 2012 David Welch [email protected]
37+
//
38+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
39+
//
40+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
41+
//
42+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
43+
//
44+
//-------------------------------------------------------------------------

blinker06/memmap

-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ SECTIONS
99
.text : { *(.text*) } > ram
1010
.bss : { *(.bss*) } > ram
1111
}
12-

blinker06/periph.c

+14-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,20 @@ void init_led ( void )
137137
ra|=1<<18;
138138
PUT32(GPFSEL1,ra);
139139
ledstate=0;
140-
toggle_led;
140+
toggle_led();
141141
}
142142
//-------------------------------------------------------------------------
143143
//-------------------------------------------------------------------------
144+
145+
146+
//-------------------------------------------------------------------------
147+
//
148+
// Copyright (c) 2012 David Welch [email protected]
149+
//
150+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
151+
//
152+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
153+
//
154+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
155+
//
156+
//-------------------------------------------------------------------------

blinker06/vectors.s

+20
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
;@-------------------------------------------------------------------------
3+
;@-------------------------------------------------------------------------
4+
25
.globl _start
36
_start:
47
b reset
@@ -21,3 +24,20 @@ GET32:
2124
.globl dummy
2225
dummy:
2326
bx lr
27+
28+
;@-------------------------------------------------------------------------
29+
;@-------------------------------------------------------------------------
30+
31+
32+
;@-------------------------------------------------------------------------
33+
;@
34+
;@ Copyright (c) 2012 David Welch [email protected]
35+
;@
36+
;@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
37+
;@
38+
;@ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
39+
;@
40+
;@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
41+
;@
42+
;@-------------------------------------------------------------------------
43+

0 commit comments

Comments
 (0)