Compare commits

...

3 Commits

Author SHA1 Message Date
Emanuel Feru
c063fdf2e1 Merge pull request #37 from hoverboardhavoc/i2c_interrupt_enable
Add i2c_interrupt_enable calls to enable interrupts
2026-01-14 17:36:29 +01:00
Emanuel Feru
b0bd1954c4 Upgrade GitHub Actions to use latest versions 2026-01-14 17:12:59 +01:00
Hoverboard Havoc
4d67047e2d Add i2c_interrupt_enable calls to enable interrupts 2025-06-26 10:03:44 +02:00
2 changed files with 6 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ jobs:
steps: steps:
# Get required packages # Get required packages
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: fiam/arm-none-eabi-gcc@v1 - uses: fiam/arm-none-eabi-gcc@v1
with: with:
release: '9-2019-q4' release: '9-2019-q4'
@@ -33,7 +33,7 @@ jobs:
run: pio run run: pio run
- name: 'Upload Build Artifact' - name: 'Upload Build Artifact'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
path: ${{github.workspace}}/.pio/build/** path: ${{github.workspace}}/.pio/build/**
name: ${{github.event.repository.name}}_build_${{github.run_number}} name: ${{github.event.repository.name}}_build_${{github.run_number}}

View File

@@ -315,6 +315,10 @@ void i2c_config(void) {
/* enable acknowledge */ /* enable acknowledge */
i2c_ack_config(MPU_I2C, I2C_ACK_ENABLE); i2c_ack_config(MPU_I2C, I2C_ACK_ENABLE);
i2c_interrupt_enable(MPU_I2C, I2C_INT_ERR);
i2c_interrupt_enable(MPU_I2C, I2C_INT_EV);
i2c_interrupt_enable(MPU_I2C, I2C_INT_BUF);
#ifdef AUX45_USE_I2C #ifdef AUX45_USE_I2C
/* I2C clock configure */ /* I2C clock configure */
//i2c_clock_config(AUX_I2C, AUX_I2C_SPEED, I2C_DTCY_2); // I2C duty cycle in fast mode //i2c_clock_config(AUX_I2C, AUX_I2C_SPEED, I2C_DTCY_2); // I2C duty cycle in fast mode