]> mj.ucw.cz Git - home-hw.git/blobdiff - Inc/app.h
Whoa! Interrupt-driven I2C is working!
[home-hw.git] / Inc / app.h
index d975287ef502c59fb2fba75fcaba135a79be3695..acae0ae4800437aa238b8edbd9875574581a94f3 100644 (file)
--- a/Inc/app.h
+++ b/Inc/app.h
@@ -1,10 +1,27 @@
 // main.c
 
-extern byte rx_display[8];
-extern volatile byte rx_display_ready;
-
 // display.c
 
 void display_init(void);
 void display_counter(uint cnt);
 void display_buffer(byte *buf);
+
+// usbdev.c
+
+extern byte rx_packet[64];
+extern byte tx_packet[64];
+extern volatile byte rx_packet_state, tx_packet_state;
+
+void tx_packet_send(void);
+
+// bmp085.c
+
+extern s16 adjusted_temp;
+extern s16 adjusted_press;
+
+extern volatile byte *bmp_i2c_ptr;
+extern volatile byte bmp_i2c_len;
+extern volatile byte bmp_i2c_addr;
+
+void bmp_init(void);
+void bmp_step(void);