mirror of https://github.com/ARMmbed/mbed-os.git
Merge branch 'master' of https://github.com/mbedmicro/mbed
commit
a19e99621f
|
@ -55,19 +55,13 @@ public:
|
|||
void queue(T k)
|
||||
{
|
||||
mtx.lock();
|
||||
while (((write + 1) % size) == read) //if (isFull())
|
||||
{
|
||||
/*while((((write + 1) % size) == read))
|
||||
{*/
|
||||
mtx.unlock();
|
||||
Thread::wait(10);
|
||||
mtx.lock();
|
||||
/*}*/
|
||||
//read++;
|
||||
//read %= size;
|
||||
}
|
||||
buf[write++] = k;
|
||||
write %= size;
|
||||
if (isFull())
|
||||
{
|
||||
read++;
|
||||
read %= size;
|
||||
}
|
||||
mtx.unlock();
|
||||
}
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@ class CortexM(Target):
|
|||
|
||||
while True:
|
||||
r = self.transport.readDP(DP_REG['CTRL_STAT'])
|
||||
if (r & (CDBGPWRUPACK | CSYSPWRUPACK)) != (CSYSPWRUPREQ | CDBGPWRUPREQ):
|
||||
if (r & (CDBGPWRUPACK | CSYSPWRUPACK)) != (CDBGPWRUPACK | CSYSPWRUPACK):
|
||||
break
|
||||
|
||||
self.transport.writeDP(DP_REG['CTRL_STAT'], CSYSPWRUPREQ | CDBGPWRUPREQ | TRNNORMAL | MASKLANE)
|
||||
|
|
|
@ -23,7 +23,7 @@ setup(
|
|||
description="CMSIS-DAP debugger for python",
|
||||
author="samux",
|
||||
author_email="samuel.mokrani@gmail.com",
|
||||
license="MIT",
|
||||
license="Apache 2.0",
|
||||
classifiers = [
|
||||
"Development Status :: 4 - Beta",
|
||||
"License :: Apache 2.0",
|
||||
|
|
Loading…
Reference in New Issue