1
0
forked from me/IronOS

Cleaning up a bit for ease of integration

This commit is contained in:
Ben V. Brown
2020-07-22 23:06:59 +10:00
parent 1f6dfe5da5
commit 9b0a071e9a
3 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
* Author: Ralim
*/
#ifdef MODEL_TS80P
#include <I2CBB.hpp>
#include "FreeRTOS.h"
#define SCL_HIGH() HAL_GPIO_WritePin(SCL2_GPIO_Port, SCL2_Pin, GPIO_PIN_SET)
@@ -318,3 +319,4 @@ bool I2CBB::lock2() {
}
return a;
}
#endif

View File

@@ -7,6 +7,7 @@
#ifndef BSP_MINIWARE_I2CBB_HPP_
#define BSP_MINIWARE_I2CBB_HPP_
#ifdef MODEL_TS80P
#include "BSP.h"
#include "Setup.h"
#include "Pins.h"
@@ -48,5 +49,5 @@ private:
static uint8_t read_bit();
static void write_bit(uint8_t val);
};
#endif
#endif /* BSP_MINIWARE_I2CBB_HPP_ */