Rev 125 | Rev 144 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 125 | Rev 136 | ||
---|---|---|---|
Line 62... | Line 62... | ||
62 | #include "uart1.h" |
62 | #include "uart1.h" |
63 | #include "spi_slave.h" |
63 | #include "spi_slave.h" |
64 | #include "i2c.h" |
64 | #include "i2c.h" |
65 | #include "timer1.h" |
65 | #include "timer1.h" |
66 | #include "timer2.h" |
66 | #include "timer2.h" |
- | 67 | #include "config.h" |
|
67 | #include "main.h" |
68 | #include "main.h" |
68 | #include "fifo.h" |
69 | #include "fifo.h" |
Line 69... | Line 70... | ||
69 | 70 | ||
Line 267... | Line 268... | ||
267 | SPI_TxBuffer[0] = SPI_TXSYNCBYTE1; |
268 | SPI_TxBuffer[0] = SPI_TXSYNCBYTE1; |
268 | SPI_TxBuffer[1] = SPI_TXSYNCBYTE2; |
269 | SPI_TxBuffer[1] = SPI_TXSYNCBYTE2; |
269 | // set the pointer to the checksum byte in the tx buffer |
270 | // set the pointer to the checksum byte in the tx buffer |
270 | Ptr_TxChksum = (u8 *) &(((ToFlightCtrl_t *) &(SPI_TxBuffer[2]))->Chksum); |
271 | Ptr_TxChksum = (u8 *) &(((ToFlightCtrl_t *) &(SPI_TxBuffer[2]))->Chksum); |
Line 271... | Line 272... | ||
271 | 272 | ||
272 | VIC_Config(SSP0_ITLine, VIC_IRQ, 1); |
273 | VIC_Config(SSP0_ITLine, VIC_IRQ, PRIORITY_SPI0); |
Line 273... | Line 274... | ||
273 | VIC_ITCmd(SSP0_ITLine, ENABLE); |
274 | VIC_ITCmd(SSP0_ITLine, ENABLE); |
274 | 275 |