richlink

Committer:
wright0418
Date:
Sun Jun 13 04:11:43 2021 +0000
Revision:
32:9dfefb53a199
release V0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wright0418 32:9dfefb53a199 1 /* ePy-Lite IO pins definitions
wright0418 32:9dfefb53a199 2 * Copyright (c) 2021 Richlink Technology
wright0418 32:9dfefb53a199 3 *
wright0418 32:9dfefb53a199 4 * Licensed under the Apache License, Version 2.0 (the "License");
wright0418 32:9dfefb53a199 5 * you may not use this file except in compliance with the License.
wright0418 32:9dfefb53a199 6 * You may obtain a copy of the License at
wright0418 32:9dfefb53a199 7 *
wright0418 32:9dfefb53a199 8 * http://www.apache.org/licenses/LICENSE-2.0
wright0418 32:9dfefb53a199 9 *
wright0418 32:9dfefb53a199 10 * Unless required by applicable law or agreed to in writing, software
wright0418 32:9dfefb53a199 11 * distributed under the License is distributed on an "AS IS" BASIS,
wright0418 32:9dfefb53a199 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
wright0418 32:9dfefb53a199 13 * See the License for the specific language governing permissions and
wright0418 32:9dfefb53a199 14 * limitations under the License.
wright0418 32:9dfefb53a199 15 */
wright0418 32:9dfefb53a199 16
wright0418 32:9dfefb53a199 17 #include "mbed.h"
wright0418 32:9dfefb53a199 18 #include "epy_lite_io.h"
wright0418 32:9dfefb53a199 19
wright0418 32:9dfefb53a199 20 // Keys and LEDs on Board
wright0418 32:9dfefb53a199 21
wright0418 32:9dfefb53a199 22 // SPI Flash on Board
wright0418 32:9dfefb53a199 23
wright0418 32:9dfefb53a199 24 // BLE Class
wright0418 32:9dfefb53a199 25
wright0418 32:9dfefb53a199 26 EPY_BLE::EPY_BLE(PinName tx, PinName rx, bool debug, PinName rts, PinName cts) :
wright0418 32:9dfefb53a199 27 _serial(tx, rx, BLE_DEFAULT_BAUD_RATE),
wright0418 32:9dfefb53a199 28 _serial_cts(cts),
wright0418 32:9dfefb53a199 29 _serial_rts(rts)
wright0418 32:9dfefb53a199 30 {
wright0418 32:9dfefb53a199 31
wright0418 32:9dfefb53a199 32 }
wright0418 32:9dfefb53a199 33
wright0418 32:9dfefb53a199 34 void EPY_BLE::set_baud(int baudrate)
wright0418 32:9dfefb53a199 35 {
wright0418 32:9dfefb53a199 36 _serial.set_baud(baudrate);
wright0418 32:9dfefb53a199 37 }
wright0418 32:9dfefb53a199 38
wright0418 32:9dfefb53a199 39 bool EPY_BLE::start_uart_hw_flow_ctrl()
wright0418 32:9dfefb53a199 40 {
wright0418 32:9dfefb53a199 41 return true;
wright0418 32:9dfefb53a199 42 }