mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
[Horus] Compilation fix
This commit is contained in:
parent
1ff32c64f5
commit
595a191be4
7 changed files with 41 additions and 38 deletions
|
@ -200,31 +200,31 @@ const uint8_t * const LBM_MODEL_ICONS[] = {
|
||||||
* Model selection screen bitmaps
|
* Model selection screen bitmaps
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const uint8_t LBM_LIBRARY_ICON[] __attribute__((aligned(32))) = {
|
const uint8_t LBM_LIBRARY_ICON[] __DMA = {
|
||||||
#include "mask_library.lbm"
|
#include "mask_library.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t LBM_LIBRARY_SLOT[] __attribute__((aligned(32))) = {
|
const uint8_t LBM_LIBRARY_SLOT[] __DMA = {
|
||||||
#include "mask_library_slot.lbm"
|
#include "mask_library_slot.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t LBM_LIBRARY_CURSOR[] __attribute__((aligned(32))) = {
|
const uint8_t LBM_LIBRARY_CURSOR[] __DMA = {
|
||||||
#include "mask_library_category_index.lbm"
|
#include "mask_library_category_index.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t LBM_SCORE0[] __attribute__((aligned(32))) = {
|
const uint8_t LBM_SCORE0[] __DMA = {
|
||||||
#include "mask_library_score_0.lbm"
|
#include "mask_library_score_0.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t LBM_SCORE1[] __attribute__((aligned(32))) = {
|
const uint8_t LBM_SCORE1[] __DMA = {
|
||||||
#include "mask_library_score_1.lbm"
|
#include "mask_library_score_1.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t LBM_STAR0[] __attribute__((aligned(32))) = {
|
const uint8_t LBM_STAR0[] __DMA = {
|
||||||
#include "mask_library_star_0.lbm"
|
#include "mask_library_star_0.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t LBM_STAR1[] __attribute__((aligned(32))) = {
|
const uint8_t LBM_STAR1[] __DMA = {
|
||||||
#include "mask_library_star_1.lbm"
|
#include "mask_library_star_1.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -232,30 +232,30 @@ const uint8_t LBM_STAR1[] __attribute__((aligned(32))) = {
|
||||||
* Other
|
* Other
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const uint8_t LBM_ASTERISK[] __attribute__((aligned(32))) = {
|
const uint8_t LBM_ASTERISK[] __DMA = {
|
||||||
#include "asterisk.lbm"
|
#include "asterisk.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t LBM_POINT[] __attribute__((aligned(32))) = {
|
const uint8_t LBM_POINT[] __DMA = {
|
||||||
#include "mask_point.lbm"
|
#include "mask_point.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t LBM_CURVE_POINT[] __attribute__((aligned(32))) = {
|
const uint8_t LBM_CURVE_POINT[] __DMA = {
|
||||||
#include "mask_cvpoint.lbm"
|
#include "mask_cvpoint.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t LBM_CURVE_POINT_CENTER[] __attribute__((aligned(32))) = {
|
const uint8_t LBM_CURVE_POINT_CENTER[] __DMA = {
|
||||||
#include "mask_cvpoint_center.lbm"
|
#include "mask_cvpoint_center.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t LBM_CURVE_COORD_SHADOW[] __attribute__((aligned(32))) = {
|
const uint8_t LBM_CURVE_COORD_SHADOW[] __DMA = {
|
||||||
#include "mask_coord_shadow.lbm"
|
#include "mask_coord_shadow.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t LBM_SHUTDOWN[] __attribute__((aligned(32))) = {
|
const uint8_t LBM_SHUTDOWN[] __DMA = {
|
||||||
#include "shutdown.lbm"
|
#include "shutdown.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t LBM_SLEEP[] __attribute__((aligned(32))) = {
|
const uint8_t LBM_SLEEP[] __DMA = {
|
||||||
#include "sleep.lbm"
|
#include "sleep.lbm"
|
||||||
};
|
};
|
|
@ -888,7 +888,7 @@ void lcdDrawBitmap(coord_t x, coord_t y, const uint8_t * bmp, coord_t offset, co
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scale == 0) {
|
if (scale == 0) {
|
||||||
lcdDrawBitmapDMA(x, y, width, height, bmp + 4 + offset*width*2);
|
lcdDrawBitmapDMA(x, y, width, height, bmp + 4 + offset * width * 2);
|
||||||
}
|
}
|
||||||
else if (scale < 0) {
|
else if (scale < 0) {
|
||||||
for (coord_t i=0, row=0; row<height; i+=1, row-=scale) {
|
for (coord_t i=0, row=0; row<height; i+=1, row-=scale) {
|
||||||
|
|
|
@ -360,7 +360,7 @@ bool menuGeneralSdManager(evt_t _event)
|
||||||
if (ext && (!strcasecmp(ext, BITMAPS_EXT) || !strcasecmp(ext, PNG_EXT) || !strcasecmp(ext, JPG_EXT))) {
|
if (ext && (!strcasecmp(ext, BITMAPS_EXT) || !strcasecmp(ext, PNG_EXT) || !strcasecmp(ext, JPG_EXT))) {
|
||||||
if (lastBitmap != menuVerticalPosition) {
|
if (lastBitmap != menuVerticalPosition) {
|
||||||
lastBitmap = menuVerticalPosition;
|
lastBitmap = menuVerticalPosition;
|
||||||
if (imgLoad(modelBitmap, reusableBuffer.sdmanager.lines[index], MODEL_BITMAP_WIDTH, MODEL_BITMAP_HEIGHT)) {
|
if (bmpLoad(modelBitmap, reusableBuffer.sdmanager.lines[index], MODEL_BITMAP_WIDTH, MODEL_BITMAP_HEIGHT)) {
|
||||||
((uint32_t *)modelBitmap)[0] = 0;
|
((uint32_t *)modelBitmap)[0] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
#include "../../opentx.h"
|
#include "../../opentx.h"
|
||||||
|
|
||||||
const uint8_t LBM_SPLASH[] __attribute__((aligned(32))) = {
|
const uint8_t LBM_SPLASH[] __DMA = {
|
||||||
#include "splash.lbm"
|
#include "splash.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ Clipboard clipboard;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(PCBTARANIS) || defined(PCBHORUS)) && defined(SDCARD)
|
#if (defined(PCBTARANIS) || defined(PCBHORUS)) && defined(SDCARD)
|
||||||
uint8_t modelBitmap[MODEL_BITMAP_SIZE] __attribute__((aligned(32)));
|
uint8_t modelBitmap[MODEL_BITMAP_SIZE] __DMA;
|
||||||
bool loadModelBitmap(char * name, uint8_t * bitmap)
|
bool loadModelBitmap(char * name, uint8_t * bitmap)
|
||||||
{
|
{
|
||||||
uint8_t len = zlen(name, LEN_BITMAP_NAME);
|
uint8_t len = zlen(name, LEN_BITMAP_NAME);
|
||||||
|
|
|
@ -467,6 +467,9 @@ void lcdDrawSolidFilledRectDMA(uint16_t x, uint16_t y, uint16_t w, uint16_t h, u
|
||||||
|
|
||||||
void lcdDrawBitmapDMA(uint16_t x, uint16_t y, uint16_t w, uint16_t h, const uint8_t * bitmap)
|
void lcdDrawBitmapDMA(uint16_t x, uint16_t y, uint16_t w, uint16_t h, const uint8_t * bitmap)
|
||||||
{
|
{
|
||||||
|
if ((uint32_t(bitmap) & 0x03) != 0)
|
||||||
|
return;
|
||||||
|
|
||||||
uint32_t addr = CurrentFrameBuffer + 2*(LCD_W*y + x);
|
uint32_t addr = CurrentFrameBuffer + 2*(LCD_W*y + x);
|
||||||
|
|
||||||
DMA2D_DeInit();
|
DMA2D_DeInit();
|
||||||
|
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Loading…
Add table
Add a link
Reference in a new issue