gonzui


Format: Advanced Search

mtkernel_3/device/i2c/i2c_cnf.hbare sourcepermlink (0.01 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    Device Driver for micro T-Kernel for μT-Kernel 3.00.03
    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/03/31.
   10:  *
   11:  *----------------------------------------------------------------------
   12:  */
   13: 
   14: 
   15: /*
   16:  *      i2c_cnf.h 
   17:  *      I2C device driver
   18:  *              Device configuration file
   19:  */
   20: #ifndef __DEV_I2C_CNF_H__
   21: #define __DEV_I2C_CNF_H__
   22: 
   23: 
   24: #define DEVCNF_I2C_DEVNAME      "iic"                // Device name ("iic")
   25: 
   26: #define DEVCNF_I2C_MAX_SDATSZ   100               // Maximum transmission data size
   27: #define DEVCNF_I2C_MAX_RDATSZ   100               // Maximum received data size
   28: 
   29: 
   30: /* Hardware dependent definition */
   31: #ifdef CPU_TMPM367FDFG
   32: #include "sysdepend/tx03_m367/i2c_cnf_m367.h"
   33: #endif          /* CPU_TMPM367FDFG */
   34: 
   35: #ifdef CPU_STM32L4
   36: #include "sysdepend/stm32l4/i2c_cnf_stm32l4.h"
   37: #endif          /* CPU_STM32L4 */
   38: 
   39: #ifdef CPU_RX231
   40: #include "sysdepend/rx231/i2c_cnf_rx231.h"
   41: #endif          /* CPU_RX231 */
   42: 
   43: #endif          /* __DEVCNF_I2C_H__ */