Skip to content

Commit 700893f

Browse files
committed
IP: Match LPUART as well
1 parent 7c369c6 commit 700893f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/internal_peripheral.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ impl IpGPIO {
6060
}
6161

6262
lazy_static! {
63-
static ref USART_RX: Regex = Regex::new("USART._RX").unwrap();
64-
static ref USART_TX: Regex = Regex::new("USART._TX").unwrap();
63+
static ref USART_RX: Regex = Regex::new("(LP)?US?ART._RX").unwrap();
64+
static ref USART_TX: Regex = Regex::new("(LP)?US?ART._TX").unwrap();
6565
static ref SPI_MOSI: Regex = Regex::new("SPI._MOSI").unwrap();
6666
static ref SPI_MISO: Regex = Regex::new("SPI._MISO").unwrap();
6767
static ref SPI_SCK: Regex = Regex::new("SPI._SCK").unwrap();

0 commit comments

Comments
 (0)