PropWare  3.0.0.229
C++ objects and CMake build system for Parallax Propeller
eeprom_initSclDrive.c
1 /*
2  * @file eeprom_initDrive.c
3  *
4  * @author Andy Lindsay
5  *
6  * @version 0.50
7  *
8  * @copyright Copyright (C) Parallax, Inc. 2014. See end of file for
9  * terms of use (MIT License).
10  *
11  * @brief eeprom functions source, see simpletools.h for documentation.
12  *
13  * @detail Please submit bug reports, suggestions, and improvements to
14  * this code to editor@parallax.com.
15  */
16 
17 #include "simpletools.h" // simpletools function prototypes
18 
19 i2c *st_eeprom;
20 int st_eeInitFlag;
21 
22 void ee_config(int sclPin, int sdaPin, int sclDrive)
23 {
24  st_eeprom = i2c_newbus(sclPin, sdaPin, sclDrive);
25  st_eeInitFlag = 1;
26 }
27 
st_eeprom
i2c * st_eeprom
The busID for the Propeller Activity Board's EEPROM bus.
Definition: accel_shaken.c:9
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
i2c_newbus
i2c * i2c_newbus(int sclPin, int sdaPin, int sclDrive)
Set up a simple serial driver with transmit & receive pins.
Definition: i2c_init.c:26
i2c_st
Definition: simplei2c.h:25
st_eeInitFlag
int st_eeInitFlag
Initialization flag used by ee_ functions.
Definition: accel_shaken.c:10
ee_config
void ee_config(int sclPin, int sdaPin, int sclDrive)
Optional function for setting a custom EEPROM configuration. Other ee_ functions automatically check ...
Definition: eeprom_initSclDrive.c:22