File tree Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 4444 "cstdint" : " c" ,
4545 "array" : " c" ,
4646 "string" : " c" ,
47- "string_view" : " c"
47+ "string_view" : " c" ,
48+ "pico.h" : " c" ,
49+ "platform.h" : " c" ,
50+ "gpu.h" : " c"
4851 }
4952}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ set(PICO9918_PCB_MINOR_VER 4)
99
1010set (PICO9918_SCANLINES 0)
1111set (PICO9918_NO_SPLASH 0)
12- set (PICO9918_DIAG 0 )
12+ set (PICO9918_DIAG 1 )
1313
1414# end compile-time options
1515
@@ -31,6 +31,9 @@ if (${PICO9918_SCANLINES})
3131 set (PICO9918_BINARY_SUFFIX ${PICO9918_BINARY_SUFFIX} -sl)
3232endif ()
3333
34+ if (${PICO9918_DIAG} )
35+ set (PICO9918_BINARY_SUFFIX ${PICO9918_BINARY_SUFFIX} -diag)
36+ endif ()
3437
3538set (PROGRAM pico9918${PICO9918_BINARY_SUFFIX} )
3639
Original file line number Diff line number Diff line change @@ -138,9 +138,9 @@ static uint8_t nextValue = 0; /* TMS9918A read-ahead value */
138138static bool currentInt = false; /* current interrupt state */
139139static uint8_t currentStatus = 0x1f ; /* current status register value */
140140
141- static __attribute__((section (".scratch_y.buffer" ))) uint32_t bg ;
141+ static __attribute__((section (".scratch_y.buffer" ))) uint32_t __aligned ( 4 ) bg ;
142142
143- static __attribute__((section (".scratch_x.buffer" ))) uint8_t __aligned (8 ) tmsScanlineBuffer [TMS9918_PIXELS_X + 8 ];
143+ static __attribute__((section (".scratch_x.buffer" ))) uint8_t __aligned (4 ) tmsScanlineBuffer [TMS9918_PIXELS_X + 8 ];
144144
145145const uint tmsWriteSm = 0 ;
146146const uint tmsReadSm = 1 ;
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ uint32_t __aligned(8) syncDataPorch[4]; // vertical porch
7979uint32_t __aligned (8 ) syncDataSync [4 ]; // vertical sync
8080
8181#if VGA_NO_MALLOC
82- __attribute__((section (".scratch_y.lookup" ))) uint16_t __aligned (8 ) rgbDataBuffer [2 + VGA_SCANLINE_TIME_DEBUG ][VIRTUAL_PIXELS_X ] = { 0 }; // two scanline buffers (odd and even)
82+ __attribute__((section (".scratch_y.lookup" ))) uint16_t __aligned (4 ) rgbDataBuffer [2 + VGA_SCANLINE_TIME_DEBUG ][VIRTUAL_PIXELS_X ] = { 0 }; // two scanline buffers (odd and even)
8383#else
8484#include <stdlib.h>
8585uint16_t * __aligned (8 ) rgbDataBuffer [2 + VGA_SCANLINE_TIME_DEBUG ] = { 0 }; // two scanline buffers (odd and even)
You can’t perform that action at this time.
0 commit comments