summaryrefslogtreecommitdiff
path: root/ucoo/hal/uart/test/test_uart_disc.cc
diff options
context:
space:
mode:
authorNicolas Schodet2015-05-04 10:07:47 +0200
committerNicolas Schodet2019-10-07 00:44:50 +0200
commit9fe68a0e7b216f8142d6b0423d5cf8fc08ec7091 (patch)
tree6325e2bdec2070c6f8063d4c55de189d2c9d4e0b /ucoo/hal/uart/test/test_uart_disc.cc
parenta91aa1aad65c5f5da38511175c79a72c019b271b (diff)
ucoo/hal: use enum class
Diffstat (limited to 'ucoo/hal/uart/test/test_uart_disc.cc')
-rw-r--r--ucoo/hal/uart/test/test_uart_disc.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/ucoo/hal/uart/test/test_uart_disc.cc b/ucoo/hal/uart/test/test_uart_disc.cc
index 7efe9ce..3893f7e 100644
--- a/ucoo/hal/uart/test/test_uart_disc.cc
+++ b/ucoo/hal/uart/test/test_uart_disc.cc
@@ -56,9 +56,9 @@ main (int argc, const char **argv)
ucoo::Uart u1 (0);
ucoo::Uart u3 (2);
ucoo::Uart u4 (3);
- u1.enable (38400, ucoo::Uart::EVEN, 1);
- u3.enable (38400, ucoo::Uart::EVEN, 1);
- u4.enable (38400, ucoo::Uart::EVEN, 1);
+ u1.enable (38400, ucoo::Uart::Parity::EVEN, 1);
+ u3.enable (38400, ucoo::Uart::Parity::EVEN, 1);
+ u4.enable (38400, ucoo::Uart::Parity::EVEN, 1);
// For this test, shorten B6 & B7 to have a loopback on UART1, shorten C10
// & C11 to connect UART3 to UART4.
rcc_periph_clock_enable (RCC_GPIOB);
@@ -110,13 +110,13 @@ main (int argc, const char **argv)
u->write (buf, buf_i);
break;
case 'O':
- u->enable (38400, ucoo::Uart::ODD, 1);
+ u->enable (38400, ucoo::Uart::Parity::ODD, 1);
break;
case 'E':
- u->enable (38400, ucoo::Uart::EVEN, 1);
+ u->enable (38400, ucoo::Uart::Parity::EVEN, 1);
break;
case 'N':
- u->enable (38400, ucoo::Uart::NONE, 1);
+ u->enable (38400, ucoo::Uart::Parity::NONE, 1);
break;
default:
if (buf_i < static_cast<int> (sizeof (buf)))