[X9D] EEPROM driver started

This commit is contained in:
bsongis
2012-12-28 08:37:29 +00:00
parent 3d92371570
commit 56e01f4fb5
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -489,7 +489,7 @@ ifeq ($(PCB), X9D)
EXTRAINCDIRS += sky9x CoOS/kernel CoOS/portable
EXTRAINCDIRS += x9d/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/inc x9d/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/CMSIS/Device/ST/STM32F2xx/Include
BOARDSRC = x9d/board_x9d.cpp
EXTRABOARDSRC += x9d/lcd_driver.cpp x9d/aspi.cpp
EXTRABOARDSRC += x9d/lcd_driver.cpp x9d/aspi.cpp x9d/i2c_ee.c
SRC += CoOS/kernel/core.c CoOS/kernel/hook.c CoOS/kernel/task.c CoOS/kernel/event.c CoOS/kernel/time.c CoOS/kernel/timer.c CoOS/kernel/flag.c CoOS/kernel/mutex.c CoOS/kernel/serviceReq.c CoOS/portable/GCC/port.c CoOS/portable/arch.c
EEPROMSRC = eeprom_arm.cpp eeprom_conversions.cpp
PULSESSRC = pulses_arm.cpp
+1 -1
View File
@@ -42,7 +42,7 @@
#include "x9d/hal.h"
#include "x9d/aspi.h"
#include "x9d/i2c_ee.h"
#include "x9d/audio_driver.h"
// TODO elsewhere
+2 -4
View File
@@ -22,10 +22,8 @@
#ifndef __I2C_EE_H
#define __I2C_EE_H
/* Includes ------------------------------------------------------------------*/
#include "stm32f2xx.h"
#include "stm32f2xx_conf.h"
#include "stdint.h"
// #include "stm32f2xx.h"
// #include "stm32f2xx_conf.h"
#define EE_CMD_WRITE (0)
#define EE_CMD_READ (1)