projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use different api name for new i2c interface. Comply all driver.
[bertos.git]
/
bertos
/
cpu
/
cortex-m3
/
io
/
lm3s.h
diff --git
a/bertos/cpu/cortex-m3/io/lm3s.h
b/bertos/cpu/cortex-m3/io/lm3s.h
index 93c14e1f4351149aeb64b876b09f6024686f8c87..98b1ffb769e10255e28e693d7b6876aa17d7482e 100644
(file)
--- a/
bertos/cpu/cortex-m3/io/lm3s.h
+++ b/
bertos/cpu/cortex-m3/io/lm3s.h
@@
-26,28
+26,39
@@
* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
- * Copyright 20
07
Develer S.r.l. (http://www.develer.com/)
+ * Copyright 20
10
Develer S.r.l. (http://www.develer.com/)
*
* -->
*
*
* -->
*
- * \version $Id$
- *
- * \author Manuele Fanelli <qwert@develer.com>
- *
- * Luminary Micro Stellaris LM3S common definitions.
- * This file is based on NUT/OS implementation. See license below.
+ * \author Andrea Righi <arighi@develer.com>
*/
#ifndef LM3S_H
#define LM3S_H
#include <cpu/detect.h>
*/
#ifndef LM3S_H
#define LM3S_H
#include <cpu/detect.h>
+#include <cfg/compiler.h>
+
+#include "lm3s_com.h"
+#include "lm3s_types.h"
+#include "lm3s_ints.h"
+#include "lm3s_nvic.h"
+#include "lm3s_sysctl.h"
+#include "lm3s_gpio.h"
+#include "lm3s_memmap.h"
+#include "lm3s_uart.h"
+#include "lm3s_ssi.h"
+#include "lm3s_i2c.h"
+
-#if CPU_ARM_LM3S1968
- #include "lm3s1968.h"
+#if CPU_CM3_LM3S1968
+ #define GPIO_I2C0_SCL_PIN BV(2)
+ #define GPIO_I2C0_SDA_PIN BV(3)
+ #define GPIO_I2C1_SCL_PIN BV(6)
+ #define GPIO_I2C1_SDA_PIN BV(7)
#else
#else
- #error
Missing I/O definitions for CPU.
+ #error
No i2c pins are defined for select cpu
#endif
#endif /* LM3S_H */
#endif
#endif /* LM3S_H */