Add reset_button.c and test_led.c. Clean up init_peripherials.c
This commit is contained in:
@@ -1,10 +1,29 @@
|
||||
#ifndef __MAIN_H__
|
||||
#define __MAIN_H__
|
||||
#ifndef __I2C_H__
|
||||
#define __I2C_H__
|
||||
|
||||
#define I2C_BASEADDR_MAIN_BUS I2C0
|
||||
#define I2C_BASEADDR_EEPROM_BUS I2C1
|
||||
#define I2C_MAIN_BUS_SDA_PORT PORTD
|
||||
#define I2C_MAIN_BUS_SDA_CLOCK kCLOCK_PortD
|
||||
#define I2C_MAIN_BUS_SDA_PIN 3
|
||||
|
||||
#define I2C_BAUD_RATE 100000
|
||||
#define I2C_MASTER_CLK_SRC I2C0_CLK_SRC
|
||||
#define I2C_MAIN_BUS_SCL_PORT PORTD
|
||||
#define I2C_MAIN_BUS_SCL_CLOCK kCLOCK_PortD
|
||||
#define I2C_MAIN_BUS_SCL_PIN 2
|
||||
|
||||
#define I2C_EEPROM_BUS_SDA_PORT PORTC
|
||||
#define I2C_EEPROM_BUS_SDA_CLOCK kCLOCK_PortC
|
||||
#define I2C_EEPROM_BUS_SDA_PIN 11
|
||||
|
||||
#define I2C_EEPROM_BUS_SCL_PORT PORTC
|
||||
#define I2C_EEPROM_BUS_SCL_CLOCK kCLOCK_PortD
|
||||
#define I2C_EEPROM_BUS_SCL_PIN 10
|
||||
|
||||
#define I2C_MAIN_BUS_BASEADDR I2C0
|
||||
#define I2C_EEPROM_BUS_BASEADDR I2C1
|
||||
|
||||
#define I2C_MAIN_BUS_BAUD_RATE 100000
|
||||
#define I2C_EEPROM_BUS_BAUD_RATE 1000000
|
||||
|
||||
#define I2C_MASTER_BUS_CLK_SRC I2C0_CLK_SRC
|
||||
#define I2C_EEPROM_BUS_CLK_SRC I2C1_CLK_SRC
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user