git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2109 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
b16d5b7da9
commit
527125f126
|
@ -86,6 +86,8 @@
|
|||
- NEW: Added support for SPI3 in the STM32 HAL.
|
||||
- CHANGE: Redeclared the IRQ handlers in the various STM32 drivers using the
|
||||
new friendly vector names.
|
||||
- CHANGE: Moved the STM32 HAL stess test application under
|
||||
./testhal/STM32/_stress_test.
|
||||
- CHANGE: Removed the option -mabi=apcs-gnu from all the Cortex-Mx demos. The
|
||||
option is not compatible with the 64 bits stack alignment now default in
|
||||
the Cortex-Mx port. Note that the 64 bits alignment has a cost both as
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
# Compiler options here.
|
||||
ifeq ($(USE_OPT),)
|
||||
USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||
endif
|
||||
|
||||
# C++ specific options here (added to USE_OPT).
|
||||
|
@ -62,7 +62,7 @@ include $(CHIBIOS)/os/hal/platforms/STM32/platform.mk
|
|||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F10x/port.mk
|
||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||
include $(CHIBIOS)/test/test.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
||||
# setting.
|
||||
|
|
|
@ -73,8 +73,9 @@ static void rxchar(uint16_t c) {
|
|||
/* Flashing the LED each time a character is received.*/
|
||||
palClearPad(IOPORT3, GPIOC_LED);
|
||||
chSysLockFromIsr();
|
||||
if (!chVTIsArmedI(&vt2))
|
||||
chVTSetI(&vt2, MS2ST(200), ledoff, NULL);
|
||||
if (chVTIsArmedI(&vt2))
|
||||
chVTResetI(&vt2);
|
||||
chVTSetI(&vt2, MS2ST(200), ledoff, NULL);
|
||||
chSysUnlockFromIsr();
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
*****************************************************************************
|
||||
** ChibiOS/RT HAL - UART driver demo for STM32. **
|
||||
*****************************************************************************
|
||||
|
||||
** TARGET **
|
||||
|
||||
The demo will on an Olimex STM32-P103 board.
|
||||
|
||||
** The Demo **
|
||||
|
||||
The application demonstrates the use of the STM32 UART driver.
|
||||
|
||||
** Build Procedure **
|
||||
|
||||
The demo has been tested by using the free Codesourcery GCC-based toolchain
|
||||
and YAGARTO.
|
||||
Just modify the TRGT line in the makefile in order to use different GCC ports.
|
||||
|
||||
** Notes **
|
||||
|
||||
Some files used by the demo are not part of ChibiOS/RT but are copyright of
|
||||
ST Microelectronics and are licensed under a different license.
|
||||
Also note that not all the files present in the ST library are distribited
|
||||
with ChibiOS/RT, you can find the whole library on the ST web site:
|
||||
|
||||
http://www.st.com
|
|
@ -16,8 +16,8 @@ warned if you see anomalies in your debugger.
|
|||
|
||||
** Build Procedure **
|
||||
|
||||
The demo has been tested by using the free Codesourcery GCC-based toolchain,
|
||||
YAGARTO and an experimental WinARM build including GCC 4.3.0.
|
||||
The demo has been tested by using the free Codesourcery GCC-based toolchain
|
||||
and YAGARTO.
|
||||
Just modify the TRGT line in the makefile in order to use different GCC ports.
|
||||
|
||||
** Notes **
|
||||
|
|
Loading…
Reference in New Issue