File nut/arch/cm3/dev/stm/stm32_twi1.c

References Functions: Stm32I2cBus1Init() nut/arch/cm3/dev/stm/stm32_twi1.c
  Stm32I2cBus1Recover() nut/arch/cm3/dev/stm/stm32_twi1.c

Included Files


Preprocessor definitions

#define I2C_PORT NUTGPIO_PORTB

#define I2CBUS1_SDA_PIN 7

#define I2CBUS1_SCL_PIN 6


Global Variable Stm32TwiBus_1

NUTTWIBUS Stm32TwiBus_1
Visible in:   nut/arch/cm3/dev/stm/stm32_twi1.c

Global Function Stm32I2cBus1Init()

int Stm32I2cBus1Init ( void )
Calls: GpioPortConfigSet() nut/arch/avr/dev/gpio_avr.c
  RCC_APB1PeriphClockCmd() nut/arch/cm3/dev/stm/stm32f2xx_rcc.c
  RCC_APB1PeriphResetCmd() nut/arch/cm3/dev/stm/stm32f2xx_rcc.c
  NVIC_SetPriority(), NVIC_SetPriorityGrouping()
Used in:   nut/arch/cm3/dev/stm/stm32_twi1.c

Global Function Stm32I2cBus1Recover()

int Stm32I2cBus1Recover ( void )
Calls: GpioPortConfigSet() nut/arch/avr/dev/gpio_avr.c
  NutMicroDelay()
Used in:   nut/arch/cm3/dev/stm/stm32_twi1.c