Subversion Repositories FlightCtrl

Rev

Rev 685 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 685 Rev 687
Line 1... Line 1...
1
/*############################################################################
1
/*############################################################################
2
############################################################################*/
2
############################################################################*/
Line -... Line 3...
-
 
3
 
-
 
4
#include <avr/io.h>
-
 
5
#include <avr/interrupt.h>
3
 
6
 
4
#include "main.h"
7
#include "main.h"
5
#include "twimaster.h"
8
#include "twimaster.h"
Line 6... Line 9...
6
#include "fc.h"
9
#include "fc.h"
Line 54... Line 57...
54
                 i2c_write_byte(0);
57
                 i2c_write_byte(0);
55
}
58
}
Line 56... Line 59...
56
 
59
 
57
//############################################################################
60
//############################################################################
58
//Start I2C
61
//Start I2C
59
char i2c_write_byte(char byte)
62
int8_t i2c_write_byte(int8_t byte)
60
//############################################################################
63
//############################################################################
61
{
64
{
62
    TWSR = 0x00;
65
    TWSR = 0x00;
63
    TWDR = byte;
66
    TWDR = byte;