Should allow more than one shell

Use this forum for requesting small changes in ChibiOS. Large changes should be discussed in the development forum. This forum is NOT for support.
Post Reply
broucari
Posts: 15
Joined: Mon Aug 17, 2015 3:23 pm
Been thanked: 2 times

Should allow more than one shell

Post by broucari »

Hi,

Shell use actually global variable and could not be activated from more than one (usb?) stream.

It will be nice if shell is reentrant and could be attached to more than one interface

Bastien
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Should allow more than one shell

Post by Giovanni »

Hi,

You mean "shell_terminated"? it signals that one of the shells terminated, it allows for multiple shells.

Giovanni
broucari
Posts: 15
Joined: Mon Aug 17, 2015 3:23 pm
Been thanked: 2 times

Re: Should allow more than one shell

Post by broucari »

Yes I means shell_terminated.

May be documentation should be improved but for it is better to be reentrant here
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Should allow more than one shell

Post by Giovanni »

It is a synchronization object, it is meant to be shared.

Giovanni
Post Reply