File nut/boot/bootmon/twbbi.c


Included Files


Preprocessor definitions

#define PIO_BASE 0xFFFF0000

#define PIO_PER

#define PIO_OER

#define PIO_ODR

#define PIO_CODR

#define PIO_PDSR

#define TWI_SDA_BIT 16

#define TWI_SDA_PE_REG PIO_PER

#define TWI_SDA_OE_REG PIO_OER

#define TWI_SDA_OD_REG PIO_ODR

#define TWI_SDA_COD_REG PIO_CODR

#define TWI_SDA_PDS_REG PIO_PDSR

#define TWI_SCL_BIT 17

#define TWI_SCL_PE_REG PIO_PER

#define TWI_SCL_OE_REG PIO_OER

#define TWI_SCL_OD_REG PIO_ODR

#define TWI_SCL_COD_REG PIO_CODR

#define outr( _reg, _val )

#define inr( _reg )

#define _BV( bit )

#define TWI_DELAY 8

#define SDA_LOW

#define SDA_HIGH

#define SDA_STAT

#define SCL_LOW

#define SCL_HIGH


Global Function TwInit()

void TwInit ( void )
Prototyped in: nut/boot/bootmon/twbbi.h
Called by: NvMemInit() nut/boot/bootmon/nvmem.c

Global Function TwMasterTransact()

int TwMasterTransact ( unsigned char sla, void* txdata, unsigned short txlen, void* rxdata, unsigned short rxsiz, unsigned long tmo )
Prototyped in: nut/boot/bootmon/twbbi.h
Calls: TwAck() nut/boot/bootmon/twbbi.c
  TwGet() nut/boot/bootmon/twbbi.c
  TwPut() nut/boot/bootmon/twbbi.c
  TwStart() nut/boot/bootmon/twbbi.c
  TwStop() nut/boot/bootmon/twbbi.c
Called by: NvMemRead() nut/boot/bootmon/nvmem.c
  NvMemWaitReady() nut/boot/bootmon/nvmem.c
  NvMemWrite() nut/boot/bootmon/nvmem.c
  NvMemWriteEnable() nut/boot/bootmon/nvmem.c

Local Function TwAck()

static void TwAck ( void )
Calls: TwDelay() nut/boot/bootmon/twbbi.c
Called by: TwMasterTransact() nut/boot/bootmon/twbbi.c

Local Function TwDelay()

static void TwDelay ( int nops )
Called by: TwAck() nut/boot/bootmon/twbbi.c
  TwGet() nut/boot/bootmon/twbbi.c
  TwPut() nut/boot/bootmon/twbbi.c
  TwStart() nut/boot/bootmon/twbbi.c
  TwStop() nut/boot/bootmon/twbbi.c

Local Function TwGet()

static unsigned char TwGet ( void )
Calls: TwDelay() nut/boot/bootmon/twbbi.c
Called by: TwMasterTransact() nut/boot/bootmon/twbbi.c

Local Function TwPut()

static int TwPut ( unsigned char octet )
Calls: TwDelay() nut/boot/bootmon/twbbi.c
Called by: TwMasterTransact() nut/boot/bootmon/twbbi.c

Local Function TwStart()

static void TwStart ( void )
Calls: TwDelay() nut/boot/bootmon/twbbi.c
Called by: TwMasterTransact() nut/boot/bootmon/twbbi.c

Local Function TwStop()

static void TwStop ( void )
Calls: TwDelay() nut/boot/bootmon/twbbi.c
Called by: TwMasterTransact() nut/boot/bootmon/twbbi.c