![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork
Fork of LG by
Diff: SPI.c
- Revision:
- 86:398da56ef751
- Parent:
- 51:81f47b817071
- Child:
- 89:a0d344db227e
--- a/SPI.c Wed Mar 23 11:10:55 2016 +0000 +++ b/SPI.c Thu Mar 24 08:20:43 2016 +0000 @@ -1,11 +1,11 @@ #include "Global.h" struct SPI Spi; -unsigned int Temp_AMP=0; +unsigned int Temp_AMP; -unsigned int Temp_ADC_2=0; -unsigned int Temp_ADC_3=0; -unsigned int Temp_ADC_4=0; -unsigned int Temp_ADC_5=0; +unsigned int Temp_ADC_2; +unsigned int Temp_ADC_3; +unsigned int Temp_ADC_4; +unsigned int Temp_ADC_5; unsigned int Buff_ADC_1 [16]; @@ -23,12 +23,7 @@ 601, 645, 687, 728, 768, 806, 841, 874, 904, 954, 976, 993, 1006, 1016, 1023 }; -void DACLInit( void ) -{ - /* setup the related pin to DAC output */ - LPC_PINCON->PINSEL1 = 0x00200000; /* set p0.26 to DAC output */ - return; -} + void SPI_Exchange() { unsigned int Dummy;