Separated c1_main module.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14109 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
4701828270
commit
533830aa7b
|
@ -124,7 +124,7 @@ LDSCRIPT= $(STARTUPLD)/RP2040_RAM.ld
|
|||
CSRC = $(ALLCSRC) \
|
||||
$(TESTSRC) \
|
||||
$(CHIBIOS)/os/various/syscalls.c \
|
||||
main.c
|
||||
main.c c1_main.c
|
||||
|
||||
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
||||
# setting.
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
|
||||
#if 0
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
*/
|
||||
static THD_WORKING_AREA(waThread1, 128);
|
||||
static THD_FUNCTION(Thread1, arg) {
|
||||
|
||||
(void)arg;
|
||||
chRegSetThreadName("blinker");
|
||||
while (true) {
|
||||
palClearLine(25U);
|
||||
chThdSleepMilliseconds(500);
|
||||
palSetLine(25U);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Core 1 entry point.
|
||||
*/
|
||||
void c1_main(void) {
|
||||
|
||||
while (true) {
|
||||
|
||||
}
|
||||
}
|
|
@ -125,13 +125,3 @@ int main(void) {
|
|||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Core 1 entry point.
|
||||
*/
|
||||
void c1_main(void) {
|
||||
|
||||
while (true) {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue