mirror of
https://github.com/brmlab/edubrm.git
synced 2025-06-08 12:53:59 +02:00
ignore cotrol packets
This commit is contained in:
parent
033b3961da
commit
ac9235a3f1
1 changed files with 9 additions and 6 deletions
|
@ -40,6 +40,8 @@ ROM ** rom = (ROM **)0x1fff1ff8;
|
||||||
|
|
||||||
void GetInReport (uint8_t src[], uint32_t length)
|
void GetInReport (uint8_t src[], uint32_t length)
|
||||||
{
|
{
|
||||||
|
int volatile reg = LPC_USB->CmdCode;
|
||||||
|
if (!(reg & (5<<8))) {
|
||||||
static int j = 0;
|
static int j = 0;
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < INSIZE; ++i) {
|
for (i = 0; i < INSIZE; ++i) {
|
||||||
|
@ -47,6 +49,7 @@ void GetInReport (uint8_t src[], uint32_t length)
|
||||||
}
|
}
|
||||||
if (++j>32) j = 0;
|
if (++j>32) j = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void SetOutReport (uint8_t dst[], uint32_t length)
|
void SetOutReport (uint8_t dst[], uint32_t length)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue