yu.dong | c33b307 | 2024-08-21 23:14:49 -0700 | [diff] [blame^] | 1 | #ifndef __spi_define_h__ |
| 2 | #define __spi_define_h__ |
| 3 | |
| 4 | //#define SPI_DVT_LOAD |
| 5 | #define SPI_MAUI_LOAD |
| 6 | |
| 7 | #if defined(SPI_DVT_LOAD) |
| 8 | |
| 9 | /* DVT load */ |
| 10 | #include <typedefs.h> |
| 11 | |
| 12 | #define SPI_FAKE_KAL_SUPPORT |
| 13 | #define SPI_FAKE_DRV_SUPPORT |
| 14 | |
| 15 | #define SPI_FULL_ISR_SUPPORT |
| 16 | |
| 17 | #define ENABLE_UT 1 |
| 18 | |
| 19 | #include <spi_fake_reg_base.h> |
| 20 | #include <spi_fake_intrCtrl.h> |
| 21 | |
| 22 | #elif defined(SPI_MAUI_LOAD) |
| 23 | |
| 24 | /* MAUI load */ |
| 25 | #define SPI_DRVPDN_SUPPORT |
| 26 | |
| 27 | #define SPI_FULL_KAL_SUPPORT |
| 28 | #define SPI_FULL_DRV_SUPPORT |
| 29 | #define SPI_FULL_ISR_SUPPORT |
| 30 | |
| 31 | #define SPI_HISR_SUPPORT |
| 32 | |
| 33 | |
| 34 | //////////////////RHR ADD////////////////////////// |
| 35 | #include "kal_public_defs.h" |
| 36 | /////////////////////////////////////////////////// |
| 37 | |
| 38 | //////////////////RHR-REMOVE////////////////////// |
| 39 | //#include <reg_base.h> |
| 40 | //#include <intrCtrl.h> |
| 41 | //#include <drv_comm.h> |
| 42 | //#include <drv_hisr.h> |
| 43 | //#include <spi.h> |
| 44 | //#include <spi_internal.h> |
| 45 | //#include <gpio_hw.h> |
| 46 | //#include <Stack_utils.h> |
| 47 | //#if defined(__MTK_TARGET__) |
| 48 | //#include <cache_sw.h> |
| 49 | //#include <init.h> |
| 50 | //#endif |
| 51 | //#include <kal_non_specific_general_types.h> |
| 52 | //#include <kal_release.h> |
| 53 | //#if defined(SPI_DRVPDN_SUPPORT) |
| 54 | //#include <drvpdn.h> |
| 55 | //#endif |
| 56 | ////////////////////////////////////////////////// |
| 57 | |
| 58 | /* for kal_get_current_thread_ID() */ |
| 59 | //#include <rtfiles.h> |
| 60 | //#include <Fs_kal.h> |
| 61 | //extern kal_taskid kal_get_current_thread_ID(void); |
| 62 | |
| 63 | |
| 64 | #else |
| 65 | #error |
| 66 | #endif |
| 67 | |
| 68 | #if defined(SPI_FULL_KAL_SUPPORT) |
| 69 | #elif defined(SPI_FAKE_KAL_SUPPORT) |
| 70 | #include <spi_fake_kal.h> |
| 71 | #else |
| 72 | #error |
| 73 | #endif |
| 74 | |
| 75 | #if defined(SPI_FULL_DRV_SUPPORT) |
| 76 | #include <drv_features.h> |
| 77 | #elif defined(SPI_FAKE_DRV_SUPPORT) |
| 78 | #include <spi_fake_drv.h> |
| 79 | #else |
| 80 | #error |
| 81 | #endif |
| 82 | |
| 83 | |
| 84 | #endif |