Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
abcc_drv_cfg.h
00001 /******************************************************************************* 00002 ******************************************************************************** 00003 ** ** 00004 ** ABCC Starter Kit version 2.01.01 (2015-12-14) ** 00005 ** ** 00006 ** Delivered with: ** 00007 ** ABCC Driver 4.01.01 (2015-12-14) ** 00008 ** ABP 7.16.01 (2015-10-14) ** 00009 ** */ 00010 /******************************************************************************* 00011 ******************************************************************************** 00012 ** COPYRIGHT NOTIFICATION (c) 2015 HMS Industrial Networks AB ** 00013 ** ** 00014 ** This code is the property of HMS Industrial Networks AB. ** 00015 ** The source code may not be reproduced, distributed, or used without ** 00016 ** permission. When used together with a product from HMS, permission is ** 00017 ** granted to modify, reproduce and distribute the code in binary form ** 00018 ** without any restrictions. ** 00019 ** ** 00020 ** THE CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. HMS DOES NOT ** 00021 ** WARRANT THAT THE FUNCTIONS OF THE CODE WILL MEET YOUR REQUIREMENTS, OR ** 00022 ** THAT THE OPERATION OF THE CODE WILL BE UNINTERRUPTED OR ERROR-FREE, OR ** 00023 ** THAT DEFECTS IN IT CAN BE CORRECTED. ** 00024 ******************************************************************************** 00025 ******************************************************************************** 00026 ** User configuration of the ABCC driver. The configuration parameters are 00027 ** documented in the driver's public interface abcc_cfg.h. 00028 ******************************************************************************** 00029 ******************************************************************************** 00030 */ 00031 00032 #ifndef ABCC_DRV_CFG_H_ 00033 #define ABCC_DRV_CFG_H_ 00034 00035 #include "abcc_td.h" 00036 #include "abp.h" 00037 00038 /******************************************************************************* 00039 ** Constants 00040 ******************************************************************************** 00041 */ 00042 00043 /*------------------------------------------------------------------------------ 00044 ** All operating modes are supported 00045 **------------------------------------------------------------------------------ 00046 */ 00047 #define ABCC_CFG_DRV_PARALLEL ( TRUE ) 00048 #define ABCC_CFG_DRV_SPI ( TRUE ) 00049 #define ABCC_CFG_DRV_SERIAL ( TRUE ) 00050 #define ABCC_CFG_DRV_PARALLEL_30 ( TRUE ) 00051 00052 /*------------------------------------------------------------------------------ 00053 ** The software can both get the operating mode from external resource and set 00054 ** the selected operating mode to the ABCC host connector. 00055 **------------------------------------------------------------------------------ 00056 */ 00057 #define ABCC_CFG_OP_MODE_GETTABLE ( TRUE ) 00058 #define ABCC_CFG_OP_MODE_SETTABLE ( TRUE ) 00059 00060 #if( !ABCC_CFG_OP_MODE_GETTABLE ) 00061 #define ABCC_CFG_ABCC_OP_MODE_30 ABP_OP_MODE_8_BIT_PARALLEL 00062 #define ABCC_CFG_ABCC_OP_MODE_40 ABP_OP_MODE_8_BIT_PARALLEL 00063 #endif 00064 00065 /*------------------------------------------------------------------------------ 00066 ** SPI frame configuration 00067 **------------------------------------------------------------------------------ 00068 */ 00069 #if( ABCC_CFG_DRV_SPI ) 00070 #define ABCC_CFG_SPI_MSG_FRAG_LEN ( 16 ) 00071 #endif 00072 00073 /*------------------------------------------------------------------------------ 00074 ** ABCC memory access configuration for parallel operation modes 00075 **------------------------------------------------------------------------------ 00076 */ 00077 #define ABCC_CFG_MEMORY_MAPPED_ACCESS ( FALSE ) 00078 #if( ABCC_CFG_MEMORY_MAPPED_ACCESS ) 00079 #define ABCC_CFG_PARALLEL_BASE_ADR ( 0x00000000 ) 00080 #endif 00081 00082 /*------------------------------------------------------------------------------ 00083 ** Module id is read from host connector. No softconfiguration is done. 00084 **------------------------------------------------------------------------------ 00085 */ 00086 /* #define ABCC_CFG_ABCC_MODULE_ID ABP_MODULE_ID_ACTIVE_ABCC40 */ 00087 00088 /*------------------------------------------------------------------------------ 00089 ** Module detection configuration 00090 **------------------------------------------------------------------------------ 00091 */ 00092 #define ABCC_CFG_MOD_DETECT_PINS_CONN ( TRUE ) 00093 00094 /*------------------------------------------------------------------------------ 00095 ** Configuration of message handling 00096 **------------------------------------------------------------------------------ 00097 */ 00098 #define ABCC_CFG_MAX_NUM_APPL_CMDS ( 2 ) 00099 #define ABCC_CFG_MAX_NUM_ABCC_CMDS ( 2 ) 00100 #define ABCC_CFG_MAX_MSG_SIZE ( 255 ) 00101 #define ABCC_CFG_MAX_PROCESS_DATA_SIZE ( 512 ) 00102 00103 /*------------------------------------------------------------------------------ 00104 ** Sync configuration 00105 **------------------------------------------------------------------------------ 00106 */ 00107 #define ABCC_CFG_SYNC_ENABLE ( FALSE ) 00108 #if( ABCC_CFG_SYNC_ENABLE ) 00109 #define ABCC_CFG_USE_ABCC_SYNC_SIGNAL ( TRUE ) 00110 #endif 00111 00112 /*------------------------------------------------------------------------------ 00113 ** Interrupt configuration excluding sync 00114 **------------------------------------------------------------------------------ 00115 */ 00116 #define ABCC_CFG_POLL_ABCC_IRQ_PIN ( FALSE ) 00117 #define ABCC_CFG_INT_ENABLED ( FALSE ) 00118 #if( ABCC_CFG_INT_ENABLED ) 00119 #define ABCC_CFG_INT_ENABLE_MASK_PAR ( ABP_INTMASK_RDPDIEN | ABP_INTMASK_STATUSIEN | ABP_INTMASK_RDMSGIEN | ABP_INTMASK_WRMSGIEN | ABP_INTMASK_ANBRIEN ) 00120 #define ABCC_CFG_INT_ENABLE_MASK_SPI ( 0 ) 00121 #define ABCC_CFG_HANDLE_INT_IN_ISR_MASK ( ABP_INTMASK_RDPDIEN ) 00122 #endif 00123 00124 /*------------------------------------------------------------------------------ 00125 ** Watchdog configuration 00126 **------------------------------------------------------------------------------ 00127 */ 00128 #define ABCC_CFG_WD_TIMEOUT_MS ( 1000 ) 00129 00130 /*------------------------------------------------------------------------------ 00131 ** Remap support configuration 00132 **------------------------------------------------------------------------------ 00133 */ 00134 #define ABCC_CFG_REMAP_SUPPORT_ENABLED ( FALSE ) 00135 00136 /*------------------------------------------------------------------------------ 00137 ** The Application data object ADI support configuration 00138 **------------------------------------------------------------------------------ 00139 */ 00140 #define ABCC_CFG_STRUCT_DATA_TYPE ( FALSE ) 00141 #define ABCC_CFG_ADI_GET_SET_CALLBACK ( FALSE ) 00142 #define ABCC_CFG_64BIT_ADI_SUPPORT ( FALSE ) 00143 00144 /*------------------------------------------------------------------------------ 00145 ** Debug event print functions 00146 **------------------------------------------------------------------------------ 00147 */ 00148 #define ABCC_CFG_ERR_REPORTING_ENABLED ( TRUE ) 00149 #define ABCC_CFG_DEBUG_EVENT_ENABLED ( TRUE ) 00150 #define ABCC_CFG_DEBUG_ERR_ENABLED ( TRUE ) 00151 #define ABCC_CFG_DEBUG_MESSAGING ( FALSE ) 00152 00153 #endif /* inclusion lock */
Generated on Tue Jul 12 2022 15:51:56 by
