Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
hello-world
nrf52
Commits
a4abad43
Commit
a4abad43
authored
Oct 01, 2017
by
Sam Calisch
Browse files
add XL as gpio
parent
634acf74
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/XL_as_gpio/XL_as_gpio.ino
0 → 100644
View file @
a4abad43
//sec 2017
void
setup
()
{
//Need to switch to internal LFCLK to disconnect from XL1 and XL2
NRF_CLOCK
->
LFCLKSRC
=
0
;
//disconnect XL1 AND XL2 FROM LFCLK
NRF_CLOCK
->
EVENTS_LFCLKSTARTED
=
0
;
NRF_CLOCK
->
TASKS_LFCLKSTART
=
1
;
while
(
NRF_CLOCK
->
EVENTS_LFCLKSTARTED
==
0
){}
//now can use XL1 and XL2 as usual gpio
}
void
loop
()
{}
Write
Preview
Supports
Markdown
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