From 067a9e3ee6d76ff4b18533f8e3b37aba5925aa0f Mon Sep 17 00:00:00 2001 From: Federico Terraneo <fede.tft@miosix.org> Date: Sun, 14 May 2017 17:30:01 +0200 Subject: [PATCH] Found duplicate class with subtle differences, both used at the same time, added fixme to remind to fix this later --- src/shared/i2c/FIXME.txt | 5 +++++ src/shared/i2c/stm32f2_f4_i2c.cpp | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 src/shared/i2c/FIXME.txt diff --git a/src/shared/i2c/FIXME.txt b/src/shared/i2c/FIXME.txt new file mode 100644 index 000000000..618ae248f --- /dev/null +++ b/src/shared/i2c/FIXME.txt @@ -0,0 +1,5 @@ +This class is present also in Miosix, there are small differences between the +two, and some skyward files include the header in this directory, while some +other include the one in the kernel. + +Integrate the changes made in this file in the kernel, and remove this file! diff --git a/src/shared/i2c/stm32f2_f4_i2c.cpp b/src/shared/i2c/stm32f2_f4_i2c.cpp index 617305301..2b11eb234 100644 --- a/src/shared/i2c/stm32f2_f4_i2c.cpp +++ b/src/shared/i2c/stm32f2_f4_i2c.cpp @@ -29,6 +29,10 @@ #include <miosix.h> #include <kernel/scheduler/scheduler.h> +#warning +#warning "Integrate this duplicate driver in Miosix, see FIXME.txt +#warning + // #define I2C_WITH_DMA using namespace miosix; -- GitLab