gonzui


Format: Advanced Search

mtkernel_3/device/ser/sysdepend/stm32l4/ser_cnf_stm32l4.hbare sourcepermlink (0.02 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:  *      ser_cnf_stm32l4.h 
   17:  *      Serial Device configuration file
   18:  *              for STM32L4
   19:  */
   20: #ifndef __DEV_SER_CNF_STM32L4_H__
   21: #define __DEV_SER_CNF_STM32L4_H__
   22: 
   23: /* Device initialization */
   24: #define DEVCONF_SER_INIT_MCLK   FALSE             // Initialize module clock
   25: 
   26: /* Device control data */
   27: #define DEVCNF_SER_INTPRI       5             // Interrupt priority
   28: 
   29: /* Debug option
   30:  *      Specify the device used by T-Monitor.
   31:  *        0: "sera" - USART1
   32:  *        1: "serb" - USART2
   33:  *        2: "serc" - USART3
   34:  *        other : T-Monitor does not use serial devices
   35:  */
   36: #if USE_TMONITOR
   37: #define DEVCNF_SER_DBGUN        1              // Used by T-Monitor
   38: #else 
   39: #define DEVCNF_SER_DBGUN        -1             // T-Monitor not executed
   40: #endif
   41: 
   42: #endif          /* __DEV_SER_CNF_STM32L4_H__ */