]> mj.ucw.cz Git - home-hw.git/blobdiff - Inc/app.h
Whoa! Interrupt-driven I2C is working!
[home-hw.git] / Inc / app.h
index bd81ad08a567b270adb177126c7d5e6c55966681..acae0ae4800437aa238b8edbd9875574581a94f3 100644 (file)
--- a/Inc/app.h
+++ b/Inc/app.h
@@ -1,4 +1,27 @@
+// main.c
+
 // 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);