Debian 9.4 (stretch) 将 UART4 波特率更改为 9600
Debian 9.4 (stretch) change UART4 baud rate to 9600
我研究并尝试了很多更新 Beaglebone green 运行 Debian 9.4 的 uart4 波特率,但没有成功。我什至不确定 Debian 9.4 是否启用了 uart4。
根据 am335x-boneblack.dts,uart4 被禁用并且时钟频率值为 0x2dc6c00(我猜这是针对波特率 115200)。
serial@481a6000 {
compatible = "ti,am3352-uart", "ti,omap3-uart";
ti,hwmods = "uart4";
clock-frequency = <0x2dc6c00>;
reg = <0x481a6000 0x2000>;
interrupts = <0x2c>;
status = "disabled";
linux,phandle = <0xa7>;
phandle = <0xa7>;
};
我在 c.
中使用了 termios library for uart configuration in linux. The termios functions describe a general terminal interface that is provided to control asynchronous communications ports. Here is an example 的用法
我研究并尝试了很多更新 Beaglebone green 运行 Debian 9.4 的 uart4 波特率,但没有成功。我什至不确定 Debian 9.4 是否启用了 uart4。 根据 am335x-boneblack.dts,uart4 被禁用并且时钟频率值为 0x2dc6c00(我猜这是针对波特率 115200)。
serial@481a6000 {
compatible = "ti,am3352-uart", "ti,omap3-uart";
ti,hwmods = "uart4";
clock-frequency = <0x2dc6c00>;
reg = <0x481a6000 0x2000>;
interrupts = <0x2c>;
status = "disabled";
linux,phandle = <0xa7>;
phandle = <0xa7>;
};
我在 c.
中使用了 termios library for uart configuration in linux. The termios functions describe a general terminal interface that is provided to control asynchronous communications ports. Here is an example 的用法