gonzui


Format: Advanced Search

mtkernel_3/device/adc/sysdepend/rza2m/adc_cnf_rza2m.hbare sourcepermlink (0.00 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    Device Driver for micro T-Kernel for μT-Kernel 3.00.05
    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/11.
   10:  *
   11:  *----------------------------------------------------------------------
   12:  */
   13: 
   14: 
   15: /*
   16:  *      adc_cnf_rza2m.h 
   17:  *      A/D converter device driver configuration file
   18:  *              for RZ/A2M
   19:  */
   20: #ifndef __DEV_ADC_CNF_RZA2M_H__
   21: #define __DEV_ADC_CNF_RZA2M_H__
   22: 
   23: /* Device initialization */
   24: #define DEVCONF_ADC_INIT_MSTP   TRUE              // Initialize module stop
   25: #define DEVCONF_ADC_INIT_PIN    TRUE               // Initialize I/O pin
   26: #define DEVCONF_ENA_AN00_07     (0b00000111)        // AN00-AN07  1: Used  0: unused
   27: 
   28: 
   29: /* Device control data */
   30: /* Initial sampling rate (ADSSTR) */
   31: #define DEVCNF_ADSSTR0_INI      11
   32: #define DEVCNF_ADSSTR1_INI      11
   33: #define DEVCNF_ADSSTR2_INI      11
   34: #define DEVCNF_ADSSTR3_INI      11
   35: #define DEVCNF_ADSSTR4_INI      11
   36: #define DEVCNF_ADSSTR5_INI      11
   37: #define DEVCNF_ADSSTR6_INI      11
   38: #define DEVCNF_ADSSTR7_INI      11
   39: 
   40: #define DEVCNF_ADC_INTPRI       5     // Interrupt priority
   41: #define DEVCNF_ADC_TMOSCAN      1000 // A/D conversion timeout time
   42: 
   43: #endif          /* __DEV_ADC_CNF_RZA2M_H__ */