BeRTOS
lm3s.h
Go to the documentation of this file.
00001 
00036 #ifndef LM3S_H
00037 #define LM3S_H
00038 
00039 #include <cpu/detect.h>
00040 #include <cfg/compiler.h>
00041 
00042 #include "lm3s_com.h"
00043 #include "lm3s_types.h"
00044 #include "lm3s_ints.h"
00045 #include "lm3s_nvic.h"
00046 #include "lm3s_sysctl.h"
00047 #include "lm3s_gpio.h"
00048 #include "lm3s_memmap.h"
00049 #include "lm3s_uart.h"
00050 #include "lm3s_ssi.h"
00051 #include "lm3s_i2c.h"
00052 #include "lm3s_adc.h"
00053 
00054 #if CPU_CM3_LM3S1968
00055     #define GPIO_I2C0_SCL_PIN   BV(2)
00056     #define GPIO_I2C0_SDA_PIN   BV(3)
00057 
00058     #define GPIO_I2C1_SCL_PIN   BV(6)
00059     #define GPIO_I2C1_SDA_PIN   BV(7)
00060 #elif CPU_CM3_LM3S8962
00061     #define GPIO_I2C0_SCL_PIN   BV(2)
00062     #define GPIO_I2C0_SDA_PIN   BV(3)
00063 #else
00064     #error No i2c pins are defined for select cpu
00065 #endif
00066 
00067 /* Flash memory mapping */
00068 #if CPU_CM3_LM3S1968 || CPU_CM3_LM3S8962
00069     #define FLASH_SIZE               0x40000 //< 256KiB
00070     #define FLASH_PAGE_SIZE          0x400   //< 1KiB
00071 #else
00072     #error No embedded definition for select cpu
00073 #endif
00074 
00075 #endif /* LM3S_H */