Skip to content

Commit c38444b

Browse files
leonardocavagnisfacchinm
authored andcommitted
remove mutual dependency between anx7625 module and dsi module
1 parent 8566076 commit c38444b

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

libraries/H7_Video/src/anx7625.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@
1616
#include <Arduino.h>
1717
#include <drivers/DigitalOut.h>
1818
#include <drivers/DigitalInOut.h>
19-
#include <dsi.h>
20-
//#include <string.h>
2119
#include <drivers/I2C.h>
2220

2321
#ifdef TARGET_PORTENTA_H7
2422

23+
#include "dsi.h"
2524
#include "anx7625.h"
2625
#include "video_modes.h"
2726

libraries/H7_Video/src/anx7625.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -353,20 +353,6 @@ enum AudioWdLen {
353353
#define ONE_BLOCK_SIZE 128
354354
#define FOUR_BLOCK_SIZE (128*4)
355355

356-
struct display_timing {
357-
unsigned int pixelclock;
358-
unsigned int hactive;
359-
unsigned int hfront_porch;
360-
unsigned int hback_porch;
361-
unsigned int hsync_len;
362-
unsigned int vactive;
363-
unsigned int vfront_porch;
364-
unsigned int vback_porch;
365-
unsigned int vsync_len;
366-
unsigned int hpol : 1;
367-
unsigned int vpol : 1;
368-
};
369-
370356
int anx7625_dp_start(uint8_t bus, const struct edid *edid, enum edid_modes mode = EDID_MODE_AUTO);
371357
int anx7625_dp_get_edid(uint8_t bus, struct edid *out);
372358
int anx7625_init(uint8_t bus);

libraries/H7_Video/src/dsi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <Arduino.h>
2-
#include <anx7625.h>
2+
33
#include "dsi.h"
44
#include "SDRAM.h"
55

libraries/H7_Video/src/dsi.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33

44
extern DSI_HandleTypeDef dsi;
55

6+
struct display_timing {
7+
unsigned int pixelclock;
8+
unsigned int hactive;
9+
unsigned int hfront_porch;
10+
unsigned int hback_porch;
11+
unsigned int hsync_len;
12+
unsigned int vactive;
13+
unsigned int vfront_porch;
14+
unsigned int vback_porch;
15+
unsigned int vsync_len;
16+
unsigned int hpol : 1;
17+
unsigned int vpol : 1;
18+
};
19+
620
int dsi_init(uint8_t bus, struct edid *edid, struct display_timing *dt);
721

822
void dsi_lcdClear(uint32_t color);

0 commit comments

Comments
 (0)