Made sioStopOperation() and sioStartOperation() call possible in both SIO_READY and SIO_ACTIVE states.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15677 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
10ffb0ecfa
commit
c699613cdc
|
@ -309,7 +309,8 @@ void sioStartOperation(SIODriver *siop, const SIOOperation *operation) {
|
|||
|
||||
osalSysLock();
|
||||
|
||||
osalDbgAssert(siop->state == SIO_READY, "invalid state");
|
||||
osalDbgAssert((siop->state == SIO_READY) ||
|
||||
(siop->state == SIO_ACTIVE), "invalid state");
|
||||
|
||||
/* The application can pass NULL if it is not interested in callbacks,
|
||||
attaching a default operation structure.*/
|
||||
|
@ -319,9 +320,11 @@ void sioStartOperation(SIODriver *siop, const SIOOperation *operation) {
|
|||
else {
|
||||
siop->operation = &default_operation;
|
||||
}
|
||||
siop->state = SIO_ACTIVE;
|
||||
|
||||
sio_lld_start_operation(siop);
|
||||
if (siop->state == SIO_READY) {
|
||||
sio_lld_start_operation(siop);
|
||||
siop->state = SIO_ACTIVE;
|
||||
}
|
||||
|
||||
osalSysUnlock();
|
||||
}
|
||||
|
|
|
@ -74,7 +74,8 @@
|
|||
*****************************************************************************
|
||||
|
||||
*** Next ***
|
||||
- NEW: Made sioStopOperation() call possible in SIO_READY state.
|
||||
- NEW: Made sioStopOperation() and sioStartOperation() call possible in
|
||||
both SIO_READY and SIO_ACTIVE states.
|
||||
- NEW: Non-proprietary LLVM build support.
|
||||
- NEW: Added palReadGroupLatch() to PAL driver.
|
||||
- NEW: Added a Posix-favored shell named "msh" (Mini Shell). The shell is able
|
||||
|
|
Loading…
Reference in New Issue