phoenix-rtos / phoenix-rtos-hostutils

Phoenix-RTOS supporting daemon
BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

phoenixd: setting baudrate #13

Open HBuczynski opened 3 years ago

HBuczynski commented 3 years ago

Currently baudrate is set in 3 places and the value is hard coded: https://github.com/phoenix-rtos/phoenix-rtos-hostutils/blob/545b23f24540f8db7799777ae8389910d4a5ca35/phoenixd/phoenixd.c#L46 https://github.com/phoenix-rtos/phoenix-rtos-hostutils/blob/545b23f24540f8db7799777ae8389910d4a5ca35/phoenixd/phoenixd.c#L297 https://github.com/phoenix-rtos/phoenix-rtos-hostutils/blob/545b23f24540f8db7799777ae8389910d4a5ca35/phoenixd/phoenixd.c#L299 I think that it should be passed to the program as a parameter.

nalajcie commented 3 years ago

(side note, it's better to use github permalinks to the code, it will render much nicer)

https://github.com/phoenix-rtos/phoenix-rtos-hostutils/blob/545b23f24540f8db7799777ae8389910d4a5ca35/phoenixd/phoenixd.c#L46

https://github.com/phoenix-rtos/phoenix-rtos-hostutils/blob/545b23f24540f8db7799777ae8389910d4a5ca35/phoenixd/phoenixd.c#L297

https://github.com/phoenix-rtos/phoenix-rtos-hostutils/blob/545b23f24540f8db7799777ae8389910d4a5ca35/phoenixd/phoenixd.c#L299

HBuczynski commented 3 years ago

@nalajcie thanks.