Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenSK
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
koenigl2
OpenSK
Commits
6f8b8e7a
Commit
6f8b8e7a
authored
5 years ago
by
Guillaume Endignoux
Browse files
Options
Downloads
Patches
Plain Diff
Sync nrf52840_mdk_dfu with upstream and add DFU-based boards to run_desktop_tests.sh
parent
3deca376
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
boards/nrf52840_mdk_dfu/src/main.rs
+6
-6
6 additions, 6 deletions
boards/nrf52840_mdk_dfu/src/main.rs
run_desktop_tests.sh
+4
-0
4 additions, 0 deletions
run_desktop_tests.sh
with
10 additions
and
6 deletions
boards/nrf52840_mdk_dfu/src/main.rs
+
6
−
6
View file @
6f8b8e7a
...
...
@@ -22,9 +22,9 @@ const LED1_B_PIN: Pin = Pin::P0_24;
const
BUTTON_PIN
:
Pin
=
Pin
::
P0_18
;
const
BUTTON_RST_PIN
:
Pin
=
Pin
::
P0_02
;
const
UART_RTS
:
Pin
=
Pin
::
P0_21
;
const
UART_RTS
:
Option
<
Pin
>
=
Some
(
Pin
::
P0_21
)
;
const
UART_TXD
:
Pin
=
Pin
::
P0_20
;
const
UART_CTS
:
Pin
=
Pin
::
P0_03
;
const
UART_CTS
:
Option
<
Pin
>
=
Some
(
Pin
::
P0_03
)
;
const
UART_RXD
:
Pin
=
Pin
::
P0_19
;
const
SPI_MOSI
:
Pin
=
Pin
::
P0_05
;
...
...
@@ -76,7 +76,7 @@ pub unsafe fn reset_handler() {
let
button
=
components
::
button
::
ButtonComponent
::
new
(
board_kernel
)
.finalize
(
components
::
button_component_helper!
((
&
nrf52840
::
gpio
::
PORT
[
BUTTON_PIN
],
capsules
::
button
::
Gp
ioMode
::
LowWhenPressed
,
kernel
::
hil
::
Activat
io
n
Mode
::
ActiveLow
,
kernel
::
hil
::
gpio
::
FloatingState
::
PullUp
)),
);
...
...
@@ -84,15 +84,15 @@ pub unsafe fn reset_handler() {
let
led
=
components
::
led
::
LedsComponent
::
new
()
.finalize
(
components
::
led_component_helper!
(
(
&
nrf52840
::
gpio
::
PORT
[
LED1_R_PIN
],
capsules
::
led
::
ActivationMode
::
ActiveLow
kernel
::
hil
::
gpio
::
ActivationMode
::
ActiveLow
),
(
&
nrf52840
::
gpio
::
PORT
[
LED1_G_PIN
],
capsules
::
led
::
ActivationMode
::
ActiveLow
kernel
::
hil
::
gpio
::
ActivationMode
::
ActiveLow
),
(
&
nrf52840
::
gpio
::
PORT
[
LED1_B_PIN
],
capsules
::
led
::
ActivationMode
::
ActiveLow
kernel
::
hil
::
gpio
::
ActivationMode
::
ActiveLow
)
));
let
chip
=
static_init!
(
nrf52840
::
chip
::
Chip
,
nrf52840
::
chip
::
new
());
...
...
This diff is collapsed.
Click to expand it.
run_desktop_tests.sh
+
4
−
0
View file @
6f8b8e7a
...
...
@@ -48,6 +48,10 @@ echo "Checking that supported boards build properly..."
make
-C
third_party/tock/boards/nordic/nrf52840dk
make
-C
third_party/tock/boards/nordic/nrf52840_dongle
echo
"Checking that other boards build properly..."
make
-C
boards/nrf52840_dongle_dfu
make
-C
boards/nrf52840_mdk_dfu
if
[
-z
"
${
TRAVIS_OS_NAME
}
"
-o
"
${
TRAVIS_OS_NAME
}
"
=
"linux"
]
then
echo
"Running unit tests on the desktop (release mode)..."
...
...
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