William Kane / Generic

Dependents:   LaserioLib

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers abcc_sys_adapt.c Source File

abcc_sys_adapt.c

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 */
00027 
00028 #include "abcc_drv_cfg.h"
00029 #include "abcc_port.h"
00030 
00031 #include "abcc_sys_adapt.h"
00032 #include "abcc_sys_adapt_spi.h"
00033 #include "abcc_sys_adapt_par.h"
00034 #include "abcc_sys_adapt_ser.h"
00035 
00036 
00037 BOOL ABCC_SYS_HwInit( void )
00038 {
00039    /*
00040    ** Implement according to abcc_sys_adapt.h
00041    */
00042 }
00043 
00044 
00045 BOOL ABCC_SYS_Init( void )
00046 {
00047    /*
00048    ** Implement according to abcc_sys_adapt.h
00049    */
00050 }
00051 
00052 
00053 void ABCC_SYS_Close( void )
00054 {
00055    /*
00056    ** Implement according to abcc_sys_adapt.h
00057    */
00058 }
00059 
00060 
00061 #if( ABCC_CFG_OP_MODE_SETTABLE )
00062 void ABCC_SYS_SetOpmode( UINT8 bOpmode )
00063 {
00064    /*
00065    ** Implement according to abcc_sys_adapt.h
00066    */
00067 }
00068 #endif
00069 
00070 
00071 #if( ABCC_CFG_OP_MODE_GETTABLE )
00072 UINT8 ABCC_SYS_GetOpmode( void )
00073 {
00074    /*
00075    ** Implement according to abcc_sys_adapt.h
00076    */
00077 }
00078 #endif
00079 
00080 
00081 void ABCC_SYS_HWReset( void )
00082 {
00083    /*
00084    ** Implement according to abcc_sys_adapt.h
00085    */
00086 }
00087 
00088 
00089 void ABCC_SYS_HWReleaseReset( void )
00090 {
00091    /*
00092    ** Implement according to abcc_sys_adapt.h
00093    */
00094 }
00095 
00096 
00097 #ifndef ABCC_CFG_ABCC_MODULE_ID
00098 UINT8 ABCC_SYS_ReadModuleId( void )
00099 {
00100    /*
00101    ** Implement according to abcc_sys_adapt.h
00102    */
00103 }
00104 #endif
00105 
00106 
00107 #if( ABCC_CFG_MOD_DETECT_PINS_CONN )
00108 BOOL ABCC_SYS_ModuleDetect( void )
00109 {
00110    /*
00111    ** Implement according to abcc_sys_adapt.h
00112    */
00113 }
00114 #endif
00115 
00116 #if( ABCC_CFG_SYNC_ENABLE && ABCC_CFG_USE_ABCC_SYNC_SIGNAL )
00117 void ABCC_SYS_SyncInterruptEnable( void )
00118 {
00119    /*
00120    ** Implement according to abcc_sys_adapt.h
00121    */
00122 }
00123 #endif
00124 
00125 #if( ABCC_CFG_SYNC_ENABLE && ABCC_CFG_USE_ABCC_SYNC_SIGNAL )
00126 void ABCC_SYS_SyncInterruptDisable( void )
00127 {
00128    /*
00129    ** Implement according to abcc_sys_adapt.h
00130    */
00131 }
00132 #endif
00133 
00134 
00135 #if( ABCC_CFG_INT_ENABLED )
00136 void ABCC_SYS_AbccInterruptEnable( void )
00137 {
00138    /*
00139    ** Implement according to abcc_sys_adapt.h
00140    */
00141 }
00142 
00143 
00144 void ABCC_SYS_AbccInterruptDisable( void )
00145 {
00146    /*
00147    ** Implement according to abcc_sys_adapt.h
00148    */
00149 }
00150 #endif
00151 
00152 
00153 #if( ABCC_CFG_POLL_ABCC_IRQ_PIN )
00154 BOOL ABCC_SYS_IsAbccInterruptActive( void )
00155 {
00156    /*
00157    ** Implement according to abcc_sys_adapt.h
00158    */
00159 }
00160 #endif
00161 
00162 
00163 #if( ABCC_CFG_DRV_SPI )
00164 void ABCC_SYS_SpiRegDataReceived( ABCC_SYS_SpiDataReceivedCbfType pnDataReceived  )
00165 {
00166    /*
00167    ** Implement according to abcc_sys_adapt_spi.h
00168    */
00169 }
00170 
00171 
00172 void ABCC_SYS_SpiSendReceive( void* pxSendDataBuffer, void* pxReceiveDataBuffer, UINT16 iLength )
00173 {
00174    /*
00175    ** Implement according to abcc_sys_adapt_spi.h
00176    */
00177 }
00178 #endif
00179 
00180 
00181 #if( ( ABCC_CFG_DRV_PARALLEL || ABCC_CFG_DRV_PARALLEL_30 ) && !ABCC_CFG_MEMORY_MAPPED_ACCESS )
00182 void ABCC_SYS_ParallelRead( UINT16 iMemOffset, void* pxData, UINT16 iLength )
00183 {
00184    /*
00185    ** Implement according to abcc_sys_adapt_par.h
00186    */
00187 }
00188 
00189 
00190 #if( ABCC_CFG_DRV_PARALLEL_30 )
00191 UINT8 ABCC_SYS_ParallelRead8( UINT16 iMemOffset )
00192 {
00193    /*
00194    ** Implement according to abcc_sys_adapt_par.h
00195    */
00196 }
00197 #endif
00198 
00199 
00200 #if( ABCC_CFG_DRV_PARALLEL )
00201 UINT16 ABCC_SYS_ParallelRead16( UINT16 iMemOffset )
00202 {
00203    /*
00204    ** Implement according to abcc_sys_adapt_par.h
00205    */
00206 }
00207 #endif
00208 
00209 
00210 void ABCC_SYS_ParallelWrite( UINT16 iMemOffset, void* pxData, UINT16 iLength )
00211 {
00212    /*
00213    ** Implement according to abcc_sys_adapt_par.h
00214    */
00215 }
00216 
00217 
00218 #if( ABCC_CFG_DRV_PARALLEL_30 )
00219 void ABCC_SYS_ParallelWrite8( UINT16 iMemOffset, UINT8 pbData )
00220 {
00221    /*
00222    ** Implement according to abcc_sys_adapt_par.h
00223    */
00224 }
00225 #endif
00226 
00227 
00228 #if( ABCC_CFG_DRV_PARALLEL )
00229 void ABCC_SYS_ParallelWrite16( UINT16 iMemOffset, UINT16 piData )
00230 {
00231    /*
00232    ** Implement according to abcc_sys_adapt_par.h
00233    */
00234 }
00235 #endif
00236 
00237 void* ABCC_SYS_ParallelGetRdPdBuffer( void )
00238 {
00239    /*
00240    ** Implement according to abcc_sys_adapt_par.h
00241    */
00242 }
00243 
00244 
00245 void* ABCC_SYS_ParallelGetWrPdBuffer( void )
00246 {
00247    /*
00248    ** Implement according to abcc_sys_adapt_par.h
00249    */
00250 }
00251 #endif
00252 
00253 
00254 #if( ABCC_CFG_DRV_SERIAL )
00255 void ABCC_SYS_SerRegDataReceived( ABCC_SYS_SpiDataReceivedCbfType pnDataReceived  )
00256 {
00257    /*
00258    ** Implement according to abcc_sys_adapt_ser.h
00259    */
00260 }
00261 
00262 
00263 void ABCC_SYS_SerSendReceive( void* pxTxDataBuffer, void* pxRxDataBuffer, UINT16 iTxSize, UINT16 iRxSize )
00264 {
00265    /*
00266    ** Implement according to abcc_sys_adapt_ser.h
00267    */
00268 }
00269 
00270 
00271 void ABCC_SYS_SerRestart( void )
00272 {
00273    /*
00274    ** Implement according to abcc_sys_adapt_ser.h
00275    */
00276 }
00277 #endif