aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/fx3/b200/b200_i2c.h
diff options
context:
space:
mode:
authorMark Meserve <mark.meserve@ni.com>2019-04-11 15:14:37 -0500
committermichael-west <michael.west@ettus.com>2019-05-21 16:08:43 -0700
commit4f57ecab13e37f132c99ec797d412def3f1e2a66 (patch)
tree4789bce38abf657f52a4ebd1dabce720e1e62f68 /firmware/fx3/b200/b200_i2c.h
parent914206e04182d2446de14be29ef886ae7c013641 (diff)
downloaduhd-4f57ecab13e37f132c99ec797d412def3f1e2a66.tar.gz
uhd-4f57ecab13e37f132c99ec797d412def3f1e2a66.tar.bz2
uhd-4f57ecab13e37f132c99ec797d412def3f1e2a66.zip
b200: add custom bootloader
- Adds custom bootloader code - Refactor common functions in firmware and bootloader
Diffstat (limited to 'firmware/fx3/b200/b200_i2c.h')
-rw-r--r--firmware/fx3/b200/b200_i2c.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/firmware/fx3/b200/b200_i2c.h b/firmware/fx3/b200/b200_i2c.h
deleted file mode 100644
index c5c781946..000000000
--- a/firmware/fx3/b200/b200_i2c.h
+++ /dev/null
@@ -1,40 +0,0 @@
-//
-// Copyright 2013-2014 Ettus Research LLC
-//
-
-#ifndef _B200_I2C_H
-#define _B200_I2C_H
-
-#include "cyu3externcstart.h"
-
-#include "cyu3usbconst.h"
-#include "cyu3types.h"
-
-/* Following two definitions made in b200_main.h for consistency. */
-/* define B200_VREQ_EEPROM_WRITE (uint8_t)(0xBA) */
-/* define B200_VREQ_EEPROM_READ (uint8_t)(0xBB) */
-
-static uint16_t glI2cPageSize = 0x40; /* I2C Page size to be used for transfers. */
-
-/* This application uses EEPROM as the slave I2C device. The I2C EEPROM
- * part number used is 24LC256. The capacity of the EEPROM is 256K bits */
-#define CY_FX_USBI2C_I2C_MAX_CAPACITY (32 * 1024) /* Capacity in bytes */
-
-/* The following constant is defined based on the page size that the I2C
- * device support. 24LC256 support 64 byte page write access. */
-#define CY_FX_USBI2C_I2C_PAGE_SIZE (64)
-
-/* I2C Data rate */
-#define CY_FX_USBI2C_I2C_BITRATE (100000)
-
-/* Give a timeout value of 5s for any programming. */
-#define CY_FX_USB_I2C_TIMEOUT (5000)
-
-/* Function forward-declerations. */
-void CyFxI2cInit (uint16_t pageLen);
-void CyFxUsbI2cTransfer (uint16_t byteAddress, uint8_t devAddr,
- uint16_t byteCount, uint8_t *buffer, CyBool_t isRead);
-
-#include "cyu3externcend.h"
-
-#endif /* _B200_I2C_H */