Commit 1865935a authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

i2cbench: configurable setos

parent c94fc1db
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
arch_drivers += ,i2c

ifneq (${i2cbench_setos}, )
	COMMON_FLAGS += -DI2CBENCH_SETOS=${i2cbench_setos}
endif
+5 −1
Original line number Diff line number Diff line
@@ -22,12 +22,16 @@
#include "driver/mmsimple.h"
#endif

#ifndef I2CBENCH_SETOS
#error must define I2CBENCH_SETOS
#endif

void loop(void)
{
#ifdef DRIVER_LM75
	//kout.printf_float(lm75.getTemp());
	//kout << endl;
	lm75.setOS(64);
	lm75.setOS(I2CBENCH_SETOS);
#endif
#ifdef DRIVER_AM2320
	am2320.read();