mikrokontrollersystemer-pro.../prosjekt.X/i2c.h
Sebastian H. Gabrielli ac78f33c98 Create basic i2c skeleton with interrupts
I2C init function has been created.
Interrupts have been made for each I2C interrupt. Which interrupt does
what is currently unknown.

See #1
2024-03-06 14:58:49 +01:00

27 lines
322 B
C

/*
* File: i2c.h
* Author: sebgab
*
* Created on March 6, 2024, 1:53 PM
*/
#ifndef I2C_H
#define I2C_H
#ifdef __cplusplus
extern "C" {
#endif
// Include the IO for I2C
#include <avr/io.h>
#include <avr/interrupt.h>
// Initialize the I2C bus
void init_i2c(void);
#ifdef __cplusplus
}
#endif
#endif /* I2C_H */