Mark Chen / NU480_UART_9BIT
Committer:
mark.chen@ebn.com.tw
Date:
Mon Aug 19 17:38:40 2019 +0800
Revision:
1:9d4632d0b16f
Parent:
0:f0f0961f1727
Child:
5:b97a733f6ed8
update uart 9bit code 20190819

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MarkChen 0:f0f0961f1727 1 /* mbed Microcontroller Library
MarkChen 0:f0f0961f1727 2 * Copyright (c) 2015-2016 Nuvoton
MarkChen 0:f0f0961f1727 3 *
MarkChen 0:f0f0961f1727 4 * Licensed under the Apache License, Version 2.0 (the "License");
MarkChen 0:f0f0961f1727 5 * you may not use this file except in compliance with the License.
MarkChen 0:f0f0961f1727 6 * You may obtain a copy of the License at
MarkChen 0:f0f0961f1727 7 *
MarkChen 0:f0f0961f1727 8 * http://www.apache.org/licenses/LICENSE-2.0
MarkChen 0:f0f0961f1727 9 *
MarkChen 0:f0f0961f1727 10 * Unless required by applicable law or agreed to in writing, software
MarkChen 0:f0f0961f1727 11 * distributed under the License is distributed on an "AS IS" BASIS,
MarkChen 0:f0f0961f1727 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
MarkChen 0:f0f0961f1727 13 * See the License for the specific language governing permissions and
MarkChen 0:f0f0961f1727 14 * limitations under the License.
MarkChen 0:f0f0961f1727 15 */
MarkChen 0:f0f0961f1727 16
mark.chen@ebn.com.tw 1:9d4632d0b16f 17 #include "UART9BIT.h"
mark.chen@ebn.com.tw 1:9d4632d0b16f 18
mark.chen@ebn.com.tw 1:9d4632d0b16f 19
mark.chen@ebn.com.tw 1:9d4632d0b16f 20 UART9BIT::UART9BIT(PinName tx, PinName rx, int baud,bool en9bit) :SerialBase( tx, rx, baud)
mark.chen@ebn.com.tw 1:9d4632d0b16f 21 {
mark.chen@ebn.com.tw 1:9d4632d0b16f 22 Enable9Bit=en9bit;
mark.chen@ebn.com.tw 1:9d4632d0b16f 23
mark.chen@ebn.com.tw 1:9d4632d0b16f 24 }
mark.chen@ebn.com.tw 1:9d4632d0b16f 25
mark.chen@ebn.com.tw 1:9d4632d0b16f 26
mark.chen@ebn.com.tw 1:9d4632d0b16f 27
mark.chen@ebn.com.tw 1:9d4632d0b16f 28