Skip to content

Commit 34da9e9

Browse files
committed
pbio/platform/ev3/platform.ld: combine NOLOAD sections
We already have a .noinit section, so we can drop all of the other named NOLOAD sections and just use that one.
1 parent 3d60bc0 commit 34da9e9

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

lib/pbio/drv/display/display_ev3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ PROCESS(pbdrv_display_ev3_init_process, "st7586s");
134134
*
135135
* Non-atomic updated by the application are allowed.
136136
*/
137-
static uint8_t pbdrv_display_user_frame[PBDRV_CONFIG_DISPLAY_NUM_ROWS][PBDRV_CONFIG_DISPLAY_NUM_COLS] __attribute__((section(".pbdrv_display_user_frame"), used));
137+
static uint8_t pbdrv_display_user_frame[PBDRV_CONFIG_DISPLAY_NUM_ROWS][PBDRV_CONFIG_DISPLAY_NUM_COLS] __attribute__((section(".noinit"), used));
138138

139139
/**
140140
* Flag to indicate that the user frame has been updated and needs to be
@@ -164,7 +164,7 @@ static bool pbdrv_display_user_frame_update_requested = false;
164164
* Even in monochrome mode, you can only have 3 pixels per byte, so there is no
165165
* savings in using it. We might as well support gray scale.
166166
*/
167-
static uint8_t st7586s_send_buf[ST7586S_NUM_COL_TRIPLETS * ST7586S_NUM_ROWS] __attribute__((section(".st7586s_send_buf"), used));
167+
static uint8_t st7586s_send_buf[ST7586S_NUM_COL_TRIPLETS * ST7586S_NUM_ROWS] __attribute__((section(".noinit"), used));
168168

169169
/**
170170
* Encode a triplet of pixels into a single byte in the format descrived above.

lib/pbio/platform/ev3/platform.ld

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ SECTIONS
4545
_pru0_end = .;
4646
} >DDR
4747

48-
.display_frames (NOLOAD) :
49-
{
50-
. = ALIGN(4);
51-
*(.pbdrv_display_user_frame)
52-
. = ALIGN(4);
53-
*(.st7586s_send_buf)
54-
} > DDR
55-
5648
/* Uninitialized (not zeroed at startup) data section */
5749

5850
.noinit (NOLOAD) :

0 commit comments

Comments
 (0)