Rev 228 | Rev 241 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 228 | Rev 229 | ||
---|---|---|---|
Line 184... | Line 184... | ||
184 | 184 | ||
185 | I2C_Cmd(I2C1, ENABLE); |
185 | I2C_Cmd(I2C1, ENABLE); |
Line 186... | Line 186... | ||
186 | I2C_ITConfig(I2C1, ENABLE); |
186 | I2C_ITConfig(I2C1, ENABLE); |
- | 187 | ||
Line 187... | Line 188... | ||
187 | 188 | VIC_Config(I2C1_ITLine, VIC_IRQ , PRIORITY_I2C1); |
|
188 | VIC_Config(I2C1_ITLine, VIC_IRQ , PRIORITY_I2C1); |
189 | I2C_Heading.Heading = -1; |
189 | 190 | ||
Line 227... | Line 228... | ||
227 | 228 | ||
228 | I2C_RxBuffer = NULL; |
229 | I2C_RxBuffer = NULL; |
Line 229... | Line 230... | ||
229 | I2C_RxBufferSize = 0; |
230 | I2C_RxBufferSize = 0; |
230 | 231 | ||
Line 231... | Line 232... | ||
231 | I2C1_Timeout = SetDelay(10*I2C1_TIMEOUT); |
232 | I2C1_Timeout = SetDelay(10*I2C1_TIMEOUT); |
232 | I2C_Heading.Heading = -2; |
233 | I2C_Heading.Heading = -1; |