eddy_em: (Default)
[personal profile] eddy_em
Пробую, как написано здесь, сделать так:
int RTS_flag = TIOCM_RTS; // TIOCM_DTR
if(ioctl(comfd,TIOCMBIC,&RTS_flag) < 0) exit(-2);//Clear RTS pin

Не получается: ioctl возвращает ошибку -1.
Видимо, эти ioctl'ы старые. У меня ядро 5.0.4. Как в нем принято это делать? Работаю с эмулятором PL2303 на STM32F103.
// пока это мне особо не нужно, но на будущее таки хочется знать...

UPD: оказалось, косяк в моей прошивке. Надо будет проверять, почему возникает ошибка
pl2303 ttyUSB0: pl2303_set_control_lines - failed: -71

Как обычно, тег "рукожопие" прямо в точку!
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

May 2025

S M T W T F S
    123
45678910
11121314151617
1819202122 2324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 25th, 2025 10:21 am
Powered by Dreamwidth Studios