Use pointers instead of global variables
Add and use ds1307_init() and ds1307_sqw() functions