Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
fwatch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
fwatch
Commits
e253d6b9
Commit
e253d6b9
authored
Aug 09, 2014
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: Change blinky example for watch pcb v1.
parent
31416f18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
Makefile
sw/efm32_hello/Makefile
+1
-1
blink.c
sw/efm32_hello/blink.c
+5
-7
No files found.
sw/efm32_hello/Makefile
View file @
e253d6b9
...
...
@@ -26,7 +26,7 @@ LST_DIR = lst
# Change path to the tools according to your system configuration
# DO NOT add trailing whitespace chars, they do matter !
WINDOWSCS
?=
GNU Tools ARM Embedded
\4
.7 2012q4
LINUXCS
?=
/opt/gcc-arm-none-eabi-4_8-2014q
1
LINUXCS
?=
/opt/gcc-arm-none-eabi-4_8-2014q
2
RMDIRS
:=
rm
-rf
RMFILES
:=
rm
-rf
...
...
sw/efm32_hello/blink.c
View file @
e253d6b9
...
...
@@ -73,20 +73,18 @@ int main(void)
/* Setup SysTick Timer for 1 msec interrupts */
if
(
SysTick_Config
(
CMU_ClockFreqGet
(
cmuClock_CORE
)
/
1000
))
while
(
1
);
// Enable clocks and configure pins
CMU_ClockEnable
(
cmuClock_HFPER
,
true
);
CMU_ClockEnable
(
cmuClock_GPIO
,
true
);
// Enable clocks and configure pins
for
(
i
=
1
;
i
<
5
;
++
i
)
{
GPIO_PinModeSet
(
gpioPortD
,
i
,
gpioModePushPull
,
0
);
}
GPIO_PinModeSet
(
gpioPortE
,
11
,
gpioModePushPull
,
0
);
GPIO_PinModeSet
(
gpioPortE
,
12
,
gpioModePushPull
,
0
);
/* Infinite blink loop */
while
(
1
)
{
for
(
i
=
1
;
i
<
5
;
++
i
)
{
GPIO_PinOutToggle
(
gpioPort
D
,
i
);
GPIO_PinOutToggle
(
gpioPortE
,
11
);
GPIO_PinOutToggle
(
gpioPort
E
,
12
);
Delay
(
200
);
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment