Bringing the SPI and UART drivers closer together

This commit is contained in:
Christophe De Wagter
2011-04-06 12:00:20 +02:00
parent 5125399414
commit 6c8c1f438b
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
<define name="AHRS_TYPE_H" value="\\\"modules/ins/ins_module.h\\\""/>
<define name="USE_SPI" />
<define name="SPI_SLAVE" />
<define name="INS_LINK" value="SpiSlave"/>
<file name="ins_chimu_spi.c"/>
<file name="imu_chimu.c"/>
</makefile>
+1 -3
View File
@@ -35,8 +35,6 @@ INS_FORMAT ins_pitch_neutral;
volatile uint8_t new_ins_attitude;
#define INS_LINK SpiSlave
void ins_init( void )
{
uint8_t rate[12] = {0xae, 0xae, 0x06, 0xaa, 0x10, 0x05, 0xff, 0x79, 0x00, 0x00, 0xab, 0x76 }; // 50Hz attitude only + SPI
@@ -56,7 +54,7 @@ void ins_init( void )
{
InsSend1(quaternions[i]);
}
// Wait a second
// Wait a bit (SPI send zero)
InsSend1(0);
InsSend1(0);
InsSend1(0);