Changeset 570 for trunk/hal/tsar_mips32/core/hal_drivers.c
- Timestamp:
- Oct 5, 2018, 12:08:35 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_drivers.c
r550 r570 26 26 27 27 #include <soclib_tty.h> 28 #include <soclib_mt ty.h>28 #include <soclib_mty.h> 29 29 #include <soclib_pic.h> 30 30 #include <soclib_iob.h> 31 31 #include <soclib_bdv.h> 32 32 #include <soclib_hba.h> 33 #include <soclib_sdc.h>34 33 #include <soclib_mmc.h> 35 34 #include <soclib_nic.h> … … 51 50 uint32_t impl ) 52 51 { 53 switch (impl) {54 case IMPL_TXT_TTY :{52 if( impl == IMPL_TXT_TTY ) 53 { 55 54 soclib_tty_init( txt ); 56 break;57 55 } 58 case IMPL_TXT_MTY : {59 soclib_mtty_init( txt );60 break;56 else if (impl == IMPL_TXT_MTY ) 57 { 58 soclib_mty_init( txt ); 61 59 } 62 default : {63 assert( false, "bad implementation" );64 }60 else 61 { 62 assert( false, "undefined implementation" ); 65 63 } 66 64 } … … 74 72 uint32_t impl ) 75 73 { 76 assert( (impl == IMPL_PIC_SCL), " bad implementation" );74 assert( (impl == IMPL_PIC_SCL), "undefined implementation" ); 77 75 78 76 soclib_pic_init( pic ); … … 97 95 uint32_t impl ) 98 96 { 99 assert( (impl == IMPL_IOB_TSR), " bad implementation" );97 assert( (impl == IMPL_IOB_TSR), "undefined implementation" ); 100 98 101 99 soclib_iob_init( iob ); … … 126 124 soclib_hba_init( ioc ); 127 125 } 128 else if (impl == IMPL_IOC_SPI)129 130 soclib_sdc_init( ioc );131 }126 // else if (impl == IMPL_IOC_SPI) 127 // { 128 // soclib_sdc_init( ioc ); 129 // } 132 130 else 133 131 { … … 144 142 uint32_t impl ) 145 143 { 146 assert( (impl == IMPL_MMC_TSR), " bad implementation" );144 assert( (impl == IMPL_MMC_TSR), "undefined implementation" ); 147 145 148 146 soclib_mmc_init( mmc ); … … 157 155 uint32_t impl ) 158 156 { 159 assert( (impl == IMPL_NIC_CBF), " bad implementation" );157 assert( (impl == IMPL_NIC_CBF), "undefined implementation" ); 160 158 161 159 soclib_nic_init( nic ); … … 170 168 uint32_t impl ) 171 169 { 172 assert( (impl == IMPL_DMA_SCL), " bad implementation" );170 assert( (impl == IMPL_DMA_SCL), "undefined implementation" ); 173 171 174 172 soclib_dma_init( dma );
Note: See TracChangeset
for help on using the changeset viewer.