跳到主要内容

使用Tx = p0_0和rx = p0_1的DA14531 UART项目

1年前

使用Tx = p0_0和rx = p0_1的DA14531 UART项目

张贴了JCDR.0分 1回复
0旋转

PAD P0_0默认为复位输入。我发现我需要在File user_periph_setup.c的函数set_pad_functions()的开头时添加以下行

gpio_disable_hw_reset();

在文件user_periph_setup.h中修改以下行(__da14531__)

#define uart1_tx_port gpio_port_0.
#define uart1_tx_pin gpio_pin_0.
#define uart1_rx_port gpio_port_0.
#define uart1_rx_pin gpio_pin_1.

#define uart2_tx_port gpio_port_0.
#define uart2_tx_pin gpio_pin_0.
#define uart2_rx_port gpio_port_0.
#define uart2_rx_pin gpio_pin_1.

1年前

PM_DIALOG.

嗨Jean-Christian,

我已经在下面的论坛线程中回复了你。我认为这两者都覆盖了同样的话题。

https://support.dialog-semicondiondiondiondum/forums/post/dialog-smartbond-bluetooth-low-energy -%e2%80%93-plinky-txp00.Comment-26799

谢谢,PM_DIALOG.