Small fix to the STM32 serial driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2694 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
cee541cfa3
commit
5e31d55f74
|
@ -5,8 +5,8 @@ Settings: SYSCLK=72, ACR=0x12 (2 wait states)
|
|||
|
||||
*** ChibiOS/RT test suite
|
||||
***
|
||||
*** Kernel: 2.1.7unstable
|
||||
*** GCC Version: 4.5.1
|
||||
*** Kernel: 2.3.0unstable
|
||||
*** GCC Version: 4.5.2
|
||||
*** Architecture: ARMv7-M
|
||||
*** Core Variant: Cortex-M3
|
||||
*** Platform: STM32 Performance Line Medium Density
|
||||
|
@ -126,7 +126,7 @@ Settings: SYSCLK=72, ACR=0x12 (2 wait states)
|
|||
--- Result: SUCCESS
|
||||
----------------------------------------------------------------------------
|
||||
--- Test Case 11.8 (Benchmark, round robin context switching)
|
||||
--- Score : 478116 ctxswc/S
|
||||
--- Score : 478120 ctxswc/S
|
||||
--- Result: SUCCESS
|
||||
----------------------------------------------------------------------------
|
||||
--- Test Case 11.9 (Benchmark, I/O Queues throughput)
|
||||
|
|
|
@ -179,7 +179,7 @@ static void serve_interrupt(SerialDriver *sdp) {
|
|||
b = chOQGetI(&sdp->oqueue);
|
||||
if (b < Q_OK) {
|
||||
chIOAddFlagsI(sdp, IO_OUTPUT_EMPTY);
|
||||
u->CR1 = cr1 & ~USART_CR1_TXEIE;
|
||||
u->CR1 = (cr1 & ~USART_CR1_TXEIE) | USART_CR1_TCIE;
|
||||
}
|
||||
else
|
||||
u->DR = b;
|
||||
|
@ -200,7 +200,7 @@ static void serve_interrupt(SerialDriver *sdp) {
|
|||
static void notify1(GenericQueue *qp) {
|
||||
|
||||
(void)qp;
|
||||
USART1->CR1 |= USART_CR1_TXEIE | USART_CR1_TCIE;
|
||||
USART1->CR1 |= USART_CR1_TXEIE;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -208,7 +208,7 @@ static void notify1(GenericQueue *qp) {
|
|||
static void notify2(GenericQueue *qp) {
|
||||
|
||||
(void)qp;
|
||||
USART2->CR1 |= USART_CR1_TXEIE | USART_CR1_TCIE;
|
||||
USART2->CR1 |= USART_CR1_TXEIE;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -71,6 +71,8 @@
|
|||
*** 2.3.0 ***
|
||||
- NEW: Implemented new event IO_TRANSMISSION_END in the generic serial
|
||||
driver. This event marks the physical transmission end of a data stream.
|
||||
- NEW: Implemented the new IO_TRANSMISSION_END event in the STM32 serial
|
||||
driver.
|
||||
|
||||
*** 2.1.8 ***
|
||||
- FIX: Fixed error in STM32 ADC driver macro names (bug 3160306)(backported
|
||||
|
|
Loading…
Reference in New Issue