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
d9d16f41
Commit
d9d16f41
authored
5 years ago
by
Julien Cretin
Browse files
Options
Downloads
Patches
Plain Diff
Also define storage for nrf52840_mdk_dfu
parent
95cb04ce
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
boards/nordic/nrf52840_mdk_dfu/src/main.rs
+9
-1
9 additions, 1 deletion
boards/nordic/nrf52840_mdk_dfu/src/main.rs
with
9 additions
and
1 deletion
boards/nordic/nrf52840_mdk_dfu/src/main.rs
+
9
−
1
View file @
d9d16f41
...
...
@@ -48,6 +48,11 @@ static mut APP_MEMORY: [u8; 0x3C000] = [0; 0x3C000];
static
mut
PROCESSES
:
[
Option
<&
'static
dyn
kernel
::
procs
::
ProcessType
>
;
NUM_PROCS
]
=
[
None
,
None
,
None
,
None
,
None
,
None
,
None
,
None
];
static
mut
STORAGE_LOCATIONS
:
[
kernel
::
StorageLocation
;
1
]
=
[
kernel
::
StorageLocation
{
address
:
0xC0000
,
size
:
0x40000
,
}];
// Static reference to chip for panic dumps
static
mut
CHIP
:
Option
<&
'static
nrf52840
::
chip
::
Chip
>
=
None
;
...
...
@@ -62,7 +67,10 @@ pub unsafe fn reset_handler() {
// Loads relocations and clears BSS
nrf52840
::
init
();
let
board_kernel
=
static_init!
(
kernel
::
Kernel
,
kernel
::
Kernel
::
new
(
&
PROCESSES
));
let
board_kernel
=
static_init!
(
kernel
::
Kernel
,
kernel
::
Kernel
::
new_with_storage
(
&
PROCESSES
,
&
STORAGE_LOCATIONS
)
);
// GPIOs
let
gpio
=
components
::
gpio
::
GpioComponent
::
new
(
board_kernel
)
.finalize
(
components
::
gpio_component_helper!
(
...
...
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