emlib 0.0.1

A SiLabs EMlib bindings for Happy Gecko MCU (EFM32HG222F64)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <em_i2c.h>

I2C_TypeDef* GET_I2C0() {
    return I2C0;
}

void STATIC_INLINE_I2C_IntClear(I2C_TypeDef *i2c, uint32_t flags) {
    I2C_IntClear(i2c, flags);
}

void STATIC_INLINE_I2C_IntDisable(I2C_TypeDef *i2c, uint32_t flags) {
    I2C_IntDisable(i2c, flags);
}

void STATIC_INLINE_I2C_IntEnable(I2C_TypeDef *i2c, uint32_t flags) {
    I2C_IntEnable(i2c, flags);
}