De-Magic I2C configuration for SFP-EEPROM reads

This commit is contained in:
logicog
2025-11-02 09:49:13 +01:00
parent 0989b227c0
commit 9c7572b289
3 changed files with 18 additions and 9 deletions
+5 -1
View File
@@ -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