equal
deleted
inserted
replaced
48 for (TInt i = 0; i < KIicPslNumOfChannels; ++i) |
48 for (TInt i = 0; i < KIicPslNumOfChannels; ++i) |
49 { |
49 { |
50 // The first argument repesents the PSL-assigned channel number |
50 // The first argument repesents the PSL-assigned channel number |
51 // The second argument, DIicBusChannel::ESpi, should be replaced with the relevant bus type for the PSL |
51 // The second argument, DIicBusChannel::ESpi, should be replaced with the relevant bus type for the PSL |
52 // chan = DSpiMasterBeagle::New(i, DIicBusChannel::ESpi, DIicBusChannel::EFullDuplex); |
52 // chan = DSpiMasterBeagle::New(i, DIicBusChannel::ESpi, DIicBusChannel::EFullDuplex); |
53 if((TInt)KIicPslNumOfChannels == 1)// TODO: hack - only for the time being - enable channel 3 |
53 if((TInt)KIicPslNumOfChannels == 2)// TODO: hack - only for the time being - enable channel 3 |
54 chan = DSpiMasterBeagle::New(2, DIicBusChannel::ESpi, DIicBusChannel::EFullDuplex); |
54 chan = DSpiMasterBeagle::New(i+2, DIicBusChannel::ESpi, DIicBusChannel::EFullDuplex); |
55 else |
55 else |
56 { |
56 { |
57 Kern::Printf("remove hack from here: %s,line %d", __FILE__, __LINE__); |
57 Kern::Printf("remove hack from here: %s,line %d", __FILE__, __LINE__); |
58 return KErrGeneral; |
58 return KErrGeneral; |
59 } |
59 } |