Skip to content

Commit

Permalink
Sensor working on Ingenic, next step is the framesource configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed May 31, 2024
1 parent 5db9463 commit 447da22
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/hal/inge/tx_isp.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

#include "tx_common.h"

typedef enum {
TX_ISP_COMM_I2C = 1,
TX_ISP_COMM_SPI,
} tx_isp_comm;

typedef struct {
char type[20];
int addr;
Expand All @@ -15,7 +20,7 @@ typedef struct {

typedef struct {
char name[32];
int spiMode;
tx_isp_comm mode;
union {
tx_isp_i2c i2c;
tx_isp_spi spi;
Expand All @@ -26,7 +31,7 @@ typedef struct {
} tx_isp_snr;

static tx_isp_snr tx_sensors[] = {
{ .name = "sc2335", .spiMode = 0, .i2c.type = "sc2335", .i2c.addr = 0x30 }
{ .name = "sc2335", .mode = TX_ISP_COMM_I2C, .i2c.type = "sc2335", .i2c.addr = 0x30 }
};

typedef struct {
Expand Down

0 comments on commit 447da22

Please sign in to comment.