Sming Framework API
()
Toggle main menu visibility
Sming
Arch
Host
Core
Host/Core/twi_arch.h
Go to the documentation of this file.
1
/*
2
* twi_arch.h - Platform-specific code
3
*
4
* See Sming/Core/si2c.cpp
5
*
6
*/
7
8
#pragma once
9
10
//Enable SDA (becomes output and since GPO is 0 for the pin, it will pull the line low)
11
#define SDA_LOW()
12
//Disable SDA (becomes input and since it has pullup it will go high)
13
#define SDA_HIGH()
14
#define SDA_READ() 0
15
#define SCL_LOW()
16
#define SCL_HIGH()
17
#define SCL_READ() 1
18
19
#define DEFAULT_SDA_PIN 4
20
#define DEFAULT_SCL_PIN 5
Generated by
1.8.17