mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
De-Magic I2C configuration for SFP-EEPROM reads
This commit is contained in:
+5
-1
@@ -5,7 +5,11 @@
|
||||
#include <stdint.h>
|
||||
|
||||
// This has to be set to the number of SFP+ ports, i.e. 1 or 2
|
||||
#define NSFP 2
|
||||
#define NSFP 2
|
||||
// SCL and SDA pin numbers for SFP cage 0 and SFP cage 1
|
||||
#define SCL_PIN 3
|
||||
#define SDA_PIN_0 4
|
||||
#define SDA_PIN_1 3
|
||||
|
||||
// Define Port-masks for 9-port devices and 6-port devices
|
||||
#define PMASK_9 0x1ff
|
||||
|
||||
Reference in New Issue
Block a user