Commit 8692f49b authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

.

parent e3f0c655
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ class SoftI2C {
		SoftI2C(const SoftI2C &copy);

		unsigned char sda, scl;
#if SOFTI2C_PULLUP_EXTERNAL || SOFTI2C_PULLUP_FIXED_GPIO
#if SOFTI2C_PULLUP_EXTERNAL
		unsigned char sda_pull, scl_pull;
#endif

@@ -16,7 +16,7 @@ class SoftI2C {
		unsigned char rx(bool send_ack);

	public:
#if SOFTI2C_PULLUP_EXTERNAL || SOFTI2C_PULLUP_FIXED_GPIO
#if SOFTI2C_PULLUP_EXTERNAL
		SoftI2C(unsigned char sda, unsigned char scl,
				unsigned char sda_pull, unsigned char scl_pull) :
			sda(sda), scl(scl), sda_pull(sda_pull), scl_pull(scl_pull) {}
+2 −4
Original line number Diff line number Diff line
@@ -46,10 +46,8 @@ signed char SoftI2C::setup()
#endif
#ifdef SOFTI2C_PULLUP_FIXED_GPIO
#if MULTIPASS_ARCH_msp430fr5969lp
	gpio.output(GPIO::p1_4);
	gpio.output(GPIO::p1_5);
	gpio.write(GPIO::p1_4, 1);
	gpio.write(GPIO::p1_5, 1);
	gpio.output(GPIO::p1_4, 1);
	gpio.output(GPIO::p1_5, 1);
#else
#error "softi2c_pullup=gpio not supported on this architecture"
#endif /* MULTIPASS_ARCH_* */