Skip to content
Snippets Groups Projects
Commit 8692f49b authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

.

parent e3f0c655
No related branches found
No related tags found
No related merge requests found
......@@ -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) {}
......
......@@ -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_* */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment