Cleaning up a bit for ease of integration
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
* Author: Ralim
|
* Author: Ralim
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef MODEL_TS80P
|
||||||
#include <I2CBB.hpp>
|
#include <I2CBB.hpp>
|
||||||
#include "FreeRTOS.h"
|
#include "FreeRTOS.h"
|
||||||
#define SCL_HIGH() HAL_GPIO_WritePin(SCL2_GPIO_Port, SCL2_Pin, GPIO_PIN_SET)
|
#define SCL_HIGH() HAL_GPIO_WritePin(SCL2_GPIO_Port, SCL2_Pin, GPIO_PIN_SET)
|
||||||
@@ -318,3 +319,4 @@ bool I2CBB::lock2() {
|
|||||||
}
|
}
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
#ifndef BSP_MINIWARE_I2CBB_HPP_
|
#ifndef BSP_MINIWARE_I2CBB_HPP_
|
||||||
#define BSP_MINIWARE_I2CBB_HPP_
|
#define BSP_MINIWARE_I2CBB_HPP_
|
||||||
|
#ifdef MODEL_TS80P
|
||||||
#include "BSP.h"
|
#include "BSP.h"
|
||||||
#include "Setup.h"
|
#include "Setup.h"
|
||||||
#include "Pins.h"
|
#include "Pins.h"
|
||||||
@@ -48,5 +49,5 @@ private:
|
|||||||
static uint8_t read_bit();
|
static uint8_t read_bit();
|
||||||
static void write_bit(uint8_t val);
|
static void write_bit(uint8_t val);
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
#endif /* BSP_MINIWARE_I2CBB_HPP_ */
|
#endif /* BSP_MINIWARE_I2CBB_HPP_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user