gonzui


Format: Advanced Search

mtkernel_3/device/ser/ser_cnf.hbare sourcepermlink (0.02 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    Device Driver for micro T-Kernel for μT-Kernel 3.00.05
    4:  *
    5:  *    Copyright (C) 2020-2021 by Ken Sakamura.
    6:  *    This software is distributed under the T-License 2.2.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by TRON Forum(http://www.tron.org) at 2021/11.
   10:  *
   11:  *----------------------------------------------------------------------
   12:  */
   13: 
   14: 
   15: /*
   16:  *      ser_cnf.h 
   17:  *      Serial communication device driver
   18:  *              Device configuration file
   19:  */
   20: #ifndef __DEV_SER_CNF_H__
   21: #define __DEV_SER_CNF_H__
   22: 
   23: #define DEVCNF_SER_DEVNAME      "ser"                // Device name ("ser")
   24: 
   25: #define DEVCONF_SER_BUFFSIZE    50         //  Communication data buffer size
   26: 
   27: /* Default value for attribute data */
   28: #define DEVCNF_SER_SPEED        115200         // Communication speed (baud rate)
   29: #define DEVCNF_SER_MODE         (DEV_SER_MODE_CTSEN | DEV_SER_MODE_RTSEN | \
   30:                                 DEV_SER_MODE_8BIT | DEV_SER_MODE_1STOP | DEV_SER_MODE_PNON)
   31:                                                 // Mode: Hard flow control enable,
   32:                                                 //        data 8bit, stop 1bit, no parity
   33: #define DEVCNF_SER_SND_TMO      TMO_FEVR     // Send timeout 
   34: #define DEVCNF_SER_RCV_TMO      TMO_FEVR     // Receive timeout 
   35: 
   36: /*----------------------------------------------------------------------
   37:  * Hardware dependent definition
   38:  */
   39: #ifdef CPU_TMPM367FDFG
   40: #include "sysdepend/tx03_m367/ser_cnf_m367.h"
   41: #endif          /* CPU_TMPM367FDFG */
   42: #ifdef CPU_RX231
   43: #include "sysdepend/rx231/ser_cnf_rx231.h"
   44: #endif          /* CPU_RX231 */
   45: #ifdef CPU_STM32L4
   46: #include "sysdepend/stm32l4/ser_cnf_stm32l4.h"
   47: #endif          /* CPU_STM32L4 */
   48: #ifdef CPU_RZA2M
   49: #include "sysdepend/rza2m/ser_cnf_rza2m.h"
   50: #endif          /* CPU_RZA2M */
   51: 
   52: 
   53: #endif          /* __DEV_SER_CNF_H__ */