Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
8d823698
Commit
8d823698
authored
Apr 02, 2021
by
Earle F. Philhower, III
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow initVariant()
parent
118afd0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
cores/rp2040/main.cpp
cores/rp2040/main.cpp
+8
-0
No files found.
cores/rp2040/main.cpp
View file @
8d823698
...
...
@@ -24,11 +24,18 @@
extern
void
setup
();
extern
void
loop
();
// Weak empty variant initialization. May be redefined by variant files.
void
initVariant
()
__attribute__
((
weak
));
void
initVariant
()
{
}
extern
"C"
int
main
()
{
#if F_CPU != 125000000
set_sys_clock_khz
(
F_CPU
/
1000
,
true
);
#endif
initVariant
();
#ifndef DISABLE_USB_SERIAL
// Enable serial port for reset/upload always
Serial
.
begin
();
...
...
@@ -37,6 +44,7 @@ extern "C" int main() {
#if defined DEBUG_RP2040_PORT
DEBUG_RP2040_PORT
.
begin
();
#endif
setup
();
while
(
1
)
{
loop
();
...
...
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