Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/board/rtl8730e,os/arch/arm/src/amebasmart: Amebasmart USB host driver #6083

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kaikaikaime
Copy link
Contributor

This includes USB host class CDC ACM
Changes in irq attachment, due to the replacement of M-cortex and A-cortex APcore, LSB 1 is not required for thumb architecture see comment in osdep_service_misc.c

This includes USB host class CDC ACM
Changes in irq attachment, due to the replacement of M-cortex and A-cortex APcore, LSB 1 is not required for thumb architecture see comment in osdep_service_misc.c
ts.tv_sec ++;
ts.tv_nsec -= NSEC_PER_SEC;
}
if (mq_timedreceive((mqd_t) *queue, message, ((mqd_t) *queue)->msgq->maxmsgsize, &prio, &ts) == ERROR) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any specific reason why use mq among the kernel features? if you added this for yout testing, then please add some define or config only for your test

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Taejun-Kwon ,

In USB operation, we used queue in our FreeRTOS OS, an alternative in Nuttx is mq. Would there be issue using this?

Kai

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because this will share some of result with Virtual driver of USB(dev/usb or something), I think callback mechanism is enough in kernel side. Chracter Device, should share result with Application message queue because only IPC allowed between kernel & app

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Taejun,

I will try a work around.

Kai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants