gonzui


Format: Advanced Search

mtkernel_3/device/adc/sysdepend/rx231/adc_cnf_rx231.hbare sourcepermlink (0.02 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    Device Driver for micro T-Kernel for μT-Kernel 3.000.03
    4:  *
    5:  *    Copyright (C) 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:  *      adc_cnf_rx231.h 
   17:  *      A/D converter device driver configuration file
   18:  *              for RX231
   19:  */
   20: #ifndef __DEV_ADC_CNF_RX231_H__
   21: #define __DEV_ADC_CNF_RX231_H__
   22: 
   23: /* Device initialization */
   24: #define DEVCONF_ADC_INIT_MSTP   FALSE             // Initialize module stop
   25: #define DEVCONF_ADC_INIT_PIN    FALSE              // Initialize I/O pin
   26: #define DEVCONF_ENA_AN00_07     (0b00000111)        // AN00-AN07  1: Used  0: unused
   27: #define DEVCONF_ENA_AN16_23     (0b00000000)        // AN16-AN23  1: Used  0: unused
   28: #define DEVCONF_ENA_AN24_31     (0b00000000)        // AN24-AN31  1: Used  0: unused
   29: 
   30: /* Device control data */
   31: /* Initial sampling rate (ADSSTR) */
   32: #define DEVCNF_ADSSTR0_INI      6
   33: #define DEVCNF_ADSSTR1_INI      6
   34: #define DEVCNF_ADSSTR2_INI      6
   35: #define DEVCNF_ADSSTR3_INI      6
   36: #define DEVCNF_ADSSTR4_INI      6
   37: #define DEVCNF_ADSSTR5_INI      6
   38: #define DEVCNF_ADSSTR6_INI      6
   39: #define DEVCNF_ADSSTR7_INI      6
   40: #define DEVCNF_ADSSTRL_INI      6
   41: 
   42: #define DEVCNF_ADC_INTPRI       5     // Interrupt priority
   43: #define DEVCNF_ADC_TMOSCAN      1000 // A/D conversion timeout time
   44: 
   45: #endif          /* __DEV_ADC_CNF_RX231_H__ */