Changeset 17633 for firmware/FSC
- Timestamp:
- 03/18/14 16:31:22 (11 years ago)
- Location:
- firmware/FSC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
firmware/FSC/src/ad7719_adc.c
r10697 r17633 34 34 SET_BIT(PORTD,SPI_AD_CS); 35 35 #ifdef AD7719_COM_DELAY_NEEDED 36 _delay_us(50);36 _delay_us(50); 37 37 #endif 38 38 … … 41 41 SET_BIT(PORTD,SPI_AD_CS); 42 42 #ifdef AD7719_COM_DELAY_NEEDED 43 _delay_us(50);43 _delay_us(50); 44 44 #endif 45 45 … … 49 49 50 50 #ifdef AD7719_COM_DELAY_NEEDED 51 _delay_us(50);51 _delay_us(50); 52 52 #endif 53 53 … … 56 56 SET_BIT(PORTD,SPI_AD_CS); 57 57 #ifdef AD7719_COM_DELAY_NEEDED 58 _delay_us(50);58 _delay_us(50); 59 59 #endif 60 60 CLR_BIT(PORTD,SPI_AD_CS); … … 63 63 64 64 #ifdef AD7719_COM_DELAY_NEEDED 65 _delay_us(50);65 _delay_us(50); 66 66 #endif 67 67 … … 71 71 72 72 #ifdef AD7719_COM_DELAY_NEEDED 73 _delay_us(50);73 _delay_us(50); 74 74 #endif 75 75 CLR_BIT(PORTD,SPI_AD_CS); … … 77 77 SET_BIT(PORTD,SPI_AD_CS); 78 78 #ifdef AD7719_COM_DELAY_NEEDED 79 _delay_us(50);79 _delay_us(50); 80 80 #endif 81 81 CLR_BIT(PORTD,SPI_AD_CS); … … 84 84 85 85 #ifdef AD7719_COM_DELAY_NEEDED 86 _delay_us(50);86 _delay_us(50); 87 87 #endif 88 88 … … 92 92 93 93 #ifdef AD7719_COM_DELAY_NEEDED 94 _delay_us(50);94 _delay_us(50); 95 95 #endif 96 96 … … 100 100 101 101 #ifdef AD7719_COM_DELAY_NEEDED 102 _delay_us(50);102 _delay_us(50); 103 103 #endif 104 104 … … 108 108 109 109 #ifdef AD7719_COM_DELAY_NEEDED 110 _delay_us(50);110 _delay_us(50); 111 111 #endif 112 112 … … 116 116 117 117 #ifdef AD7719_COM_DELAY_NEEDED 118 _delay_us(50);118 _delay_us(50); 119 119 #endif 120 120 … … 124 124 125 125 #ifdef AD7719_COM_DELAY_NEEDED 126 _delay_us(50); 127 #endif 128 129 // these 126 _delay_us(50); 127 #endif 128 130 129 CLR_BIT(PORTD,SPI_AD_CS); 131 130 spi_transfer_byte(FILTER_RD); // Next Operation is read from Filter register... … … 133 132 134 133 #ifdef AD7719_COM_DELAY_NEEDED 135 _delay_us(50);134 _delay_us(50); 136 135 #endif 137 136 … … 141 140 142 141 #ifdef AD7719_COM_DELAY_NEEDED 143 _delay_us(50);142 _delay_us(50); 144 143 #endif 145 144 } -
firmware/FSC/src/ad7719_adc.h
r10697 r17633 3 3 //----------------------------------------------------------------------------- 4 4 5 #include "typedefs.h"6 5 #include "application.h" 7 #include "num_conversion.h"6 //#include "num_conversion.h" 8 7 //----------------------------------------------------------------------------- 9 8 // SPI INTERFACE of AD7719
Note:
See TracChangeset
for help on using the changeset viewer.