git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10940 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
e6fbbc4da8
commit
c8cdb0941b
|
@ -99,8 +99,8 @@ include $(CHIBIOS)/os/rt/rt.mk
|
||||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
#include $(CHIBIOS)/test/lib/test.mk
|
#include $(CHIBIOS)/test/lib/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
#include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(STARTUPLD)/STM32L053x8.ld
|
LDSCRIPT= $(STARTUPLD)/STM32L053x8.ld
|
||||||
|
|
|
@ -99,8 +99,8 @@ include $(CHIBIOS)/os/rt/rt.mk
|
||||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
#include $(CHIBIOS)/test/lib/test.mk
|
#include $(CHIBIOS)/test/lib/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
#include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(STARTUPLD)/STM32L053x8.ld
|
LDSCRIPT= $(STARTUPLD)/STM32L053x8.ld
|
||||||
|
|
|
@ -99,8 +99,8 @@ include $(CHIBIOS)/os/rt/rt.mk
|
||||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
#include $(CHIBIOS)/test/lib/test.mk
|
#include $(CHIBIOS)/test/lib/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
#include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld
|
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld
|
||||||
|
|
|
@ -99,8 +99,8 @@ include $(CHIBIOS)/os/rt/rt.mk
|
||||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
#include $(CHIBIOS)/test/lib/test.mk
|
#include $(CHIBIOS)/test/lib/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
#include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld
|
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld
|
||||||
|
|
|
@ -99,8 +99,8 @@ include $(CHIBIOS)/os/rt/rt.mk
|
||||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
#include $(CHIBIOS)/test/lib/test.mk
|
#include $(CHIBIOS)/test/lib/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
#include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld
|
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld
|
||||||
|
|
|
@ -99,8 +99,8 @@ include $(CHIBIOS)/os/rt/rt.mk
|
||||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
#include $(CHIBIOS)/test/lib/test.mk
|
#include $(CHIBIOS)/test/lib/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
#include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld
|
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld
|
||||||
|
|
|
@ -99,8 +99,8 @@ include $(CHIBIOS)/os/rt/rt.mk
|
||||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
#include $(CHIBIOS)/test/lib/test.mk
|
#include $(CHIBIOS)/test/lib/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
#include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld
|
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld
|
||||||
|
|
|
@ -99,8 +99,8 @@ include $(CHIBIOS)/os/rt/rt.mk
|
||||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
#include $(CHIBIOS)/test/lib/test.mk
|
#include $(CHIBIOS)/test/lib/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
#include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld
|
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld
|
||||||
|
|
|
@ -53,7 +53,7 @@ static void txend2(UARTDriver *uartp) {
|
||||||
palClearPad(GPIOB, GPIOB_LED4);
|
palClearPad(GPIOB, GPIOB_LED4);
|
||||||
chSysLockFromISR();
|
chSysLockFromISR();
|
||||||
chVTResetI(&vt1);
|
chVTResetI(&vt1);
|
||||||
chVTDoSetI(&vt1, MS2ST(5000), restart, NULL);
|
chVTDoSetI(&vt1, TIME_MS2I(5000), restart, NULL);
|
||||||
chSysUnlockFromISR();
|
chSysUnlockFromISR();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ static void rxchar(UARTDriver *uartp, uint16_t c) {
|
||||||
palSetPad(GPIOB, GPIOB_LED4);
|
palSetPad(GPIOB, GPIOB_LED4);
|
||||||
chSysLockFromISR();
|
chSysLockFromISR();
|
||||||
chVTResetI(&vt2);
|
chVTResetI(&vt2);
|
||||||
chVTDoSetI(&vt2, MS2ST(200), ledoff, NULL);
|
chVTDoSetI(&vt2, TIME_MS2I(200), ledoff, NULL);
|
||||||
chSysUnlockFromISR();
|
chSysUnlockFromISR();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -99,8 +99,8 @@ include $(CHIBIOS)/os/rt/rt.mk
|
||||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
#include $(CHIBIOS)/test/lib/test.mk
|
#include $(CHIBIOS)/test/lib/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
#include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld
|
LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld
|
||||||
|
|
|
@ -99,8 +99,8 @@ include $(CHIBIOS)/os/rt/rt.mk
|
||||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
#include $(CHIBIOS)/test/lib/test.mk
|
#include $(CHIBIOS)/test/lib/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
#include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld
|
LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld
|
||||||
|
|
|
@ -48,7 +48,7 @@ static THD_FUNCTION(can_rx, p) {
|
||||||
chRegSetThreadName("receiver");
|
chRegSetThreadName("receiver");
|
||||||
chEvtRegister(&cip->canp->rxfull_event, &el, 0);
|
chEvtRegister(&cip->canp->rxfull_event, &el, 0);
|
||||||
while(!chThdShouldTerminateX()) {
|
while(!chThdShouldTerminateX()) {
|
||||||
if (chEvtWaitAnyTimeout(ALL_EVENTS, MS2ST(100)) == 0)
|
if (chEvtWaitAnyTimeout(ALL_EVENTS, TIME_MS2I(100)) == 0)
|
||||||
continue;
|
continue;
|
||||||
while (canReceive(cip->canp, CAN_ANY_MAILBOX,
|
while (canReceive(cip->canp, CAN_ANY_MAILBOX,
|
||||||
&rxmsg, TIME_IMMEDIATE) == MSG_OK) {
|
&rxmsg, TIME_IMMEDIATE) == MSG_OK) {
|
||||||
|
@ -76,7 +76,7 @@ static THD_FUNCTION(can_tx, p) {
|
||||||
txmsg.data32[1] = 0x00FF00FF;
|
txmsg.data32[1] = 0x00FF00FF;
|
||||||
|
|
||||||
while (!chThdShouldTerminateX()) {
|
while (!chThdShouldTerminateX()) {
|
||||||
canTransmit(&CAND1, CAN_ANY_MAILBOX, &txmsg, MS2ST(100));
|
canTransmit(&CAND1, CAN_ANY_MAILBOX, &txmsg, TIME_MS2I(100));
|
||||||
chThdSleepMilliseconds(500);
|
chThdSleepMilliseconds(500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,8 +99,8 @@ include $(CHIBIOS)/os/rt/rt.mk
|
||||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
#include $(CHIBIOS)/test/lib/test.mk
|
#include $(CHIBIOS)/test/lib/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
#include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld
|
LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld
|
||||||
|
|
|
@ -99,8 +99,8 @@ include $(CHIBIOS)/os/rt/rt.mk
|
||||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
#include $(CHIBIOS)/test/lib/test.mk
|
#include $(CHIBIOS)/test/lib/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
#include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld
|
LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld
|
||||||
|
|
Loading…
Reference in New Issue