Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fadecandy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scanlime
Fadecandy
Commits
41d7e6b2
Commit
41d7e6b2
authored
11 years ago
by
Micah Elizabeth Scott
Browse files
Options
Downloads
Patches
Plain Diff
Header file cleanup
parent
63879aec
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bootloader/Makefile
+0
-3
0 additions, 3 deletions
bootloader/Makefile
bootloader/mk20dx128.h
+3
-18
3 additions, 18 deletions
bootloader/mk20dx128.h
firmware/mk20dx128.h
+13
-18
13 additions, 18 deletions
firmware/mk20dx128.h
with
16 additions
and
39 deletions
bootloader/Makefile
+
0
−
3
View file @
41d7e6b2
...
@@ -13,9 +13,6 @@ SIZE = arm-none-eabi-size
...
@@ -13,9 +13,6 @@ SIZE = arm-none-eabi-size
# The name of your project (used to name the compiled .hex file)
# The name of your project (used to name the compiled .hex file)
TARGET
=
fc-boot
TARGET
=
fc-boot
# configurable options
OPTIONS
=
-DF_CPU
=
48000000
# Sources
# Sources
C_FILES
=
\
C_FILES
=
\
mk20dx128.c
\
mk20dx128.c
\
...
...
This diff is collapsed.
Click to expand it.
bootloader/mk20dx128.h
+
3
−
18
View file @
41d7e6b2
...
@@ -31,24 +31,9 @@
...
@@ -31,24 +31,9 @@
#ifndef _mk20dx128_h_
#ifndef _mk20dx128_h_
#define _mk20dx128_h_
#define _mk20dx128_h_
//#define F_CPU 96000000
#define F_CPU 48000000
//#define F_CPU 48000000
#define F_BUS 48000000
//#define F_CPU 24000000
#define F_MEM 24000000
//#define F_BUS 48000000
//#define F_BUS 24000000
//#define F_MEM 24000000
#if (F_CPU == 96000000)
#define F_BUS 48000000
#define F_MEM 24000000
#elif (F_CPU == 48000000)
#define F_BUS 48000000
#define F_MEM 24000000
#elif (F_CPU == 24000000)
#define F_BUS 24000000
#define F_MEM 24000000
#endif
#ifndef NULL
#ifndef NULL
#define NULL ((void *)0)
#define NULL ((void *)0)
...
...
This diff is collapsed.
Click to expand it.
firmware/mk20dx128.h
+
13
−
18
View file @
41d7e6b2
...
@@ -31,24 +31,9 @@
...
@@ -31,24 +31,9 @@
#ifndef _mk20dx128_h_
#ifndef _mk20dx128_h_
#define _mk20dx128_h_
#define _mk20dx128_h_
//#define F_CPU 96000000
#define F_CPU 48000000
//#define F_CPU 48000000
#define F_BUS 48000000
//#define F_CPU 24000000
#define F_MEM 24000000
//#define F_BUS 48000000
//#define F_BUS 24000000
//#define F_MEM 24000000
#if (F_CPU == 96000000)
#define F_BUS 48000000
#define F_MEM 24000000
#elif (F_CPU == 48000000)
#define F_BUS 48000000
#define F_MEM 24000000
#elif (F_CPU == 24000000)
#define F_BUS 24000000
#define F_MEM 24000000
#endif
#ifndef NULL
#ifndef NULL
#define NULL ((void *)0)
#define NULL ((void *)0)
...
@@ -1604,7 +1589,17 @@ extern void portd_isr(void);
...
@@ -1604,7 +1589,17 @@ extern void portd_isr(void);
extern
void
porte_isr
(
void
);
extern
void
porte_isr
(
void
);
extern
void
software_isr
(
void
);
extern
void
software_isr
(
void
);
static
inline
void
watchdog_refresh
(
void
)
{
WDOG_REFRESH
=
0xA602
;
WDOG_REFRESH
=
0xB480
;
}
static
inline
void
watchdog_reboot
(
void
)
{
// Any invalid write to the WDOG registers will trigger an immediate reboot
WDOG_REFRESH
=
0
;
}
#ifdef __cplusplus
#ifdef __cplusplus
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment