From d522ebda2556014b90b852821aed6f0a70ef452b Mon Sep 17 00:00:00 2001 From: tianjialong Date: Mon, 17 Apr 2023 18:18:04 +0800 Subject: [PATCH] update --- cpp/uart.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cpp/uart.cpp b/cpp/uart.cpp index eadbdfb..d015ad3 100644 --- a/cpp/uart.cpp +++ b/cpp/uart.cpp @@ -13,17 +13,6 @@ using namespace std; Uart::Uart() {} Uart::~Uart() {} -static map s_baundmap = { - {"0", 0000000}, {"50", 0000001}, {"75", 0000002}, {"110", 0000003}, // - {"134", 0000004}, {"150", 0000005}, {"200", 0000006}, {"300", 0000007}, // - {"600", 0000010}, {"1200", 0000011}, {"1800", 0000012}, {"2400", 0000013}, // - {"4800", 0000014}, {"9600", 0000015}, {"19200", 0000016}, {"38400", 0000017}, // - {"57600", 0010001}, {"115200", 0010002}, {"230400", 0010003}, {"460800", 0010004}, // - {"500000", 0010005}, {"576000", 0010006}, {"921600", 0010007}, {"1000000", 0010010}, // - {"1152000", 0010011}, {"1500000", 0010012}, {"2000000", 0010013}, {"2500000", 0010014}, // - {"3000000", 0010015}, {"3500000", 0010016}, {"4000000", 0010017}, -}; - int Uart::open(string path) { int rc;