1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 17:25:13 +03:00

Cosmetics

This commit is contained in:
Bertrand Songis 2020-06-02 09:18:06 +02:00
parent 515aa9bcdb
commit f7a3aeac74
No known key found for this signature in database
GPG key ID: F189F79290FEC50F

View file

@ -41,15 +41,12 @@ uint32_t CurrentLayer = LCD_FIRST_LAYER;
#define NRST_LOW() do { LCD_GPIO_NRST->BSRRH = LCD_GPIO_PIN_NRST; } while(0) #define NRST_LOW() do { LCD_GPIO_NRST->BSRRH = LCD_GPIO_PIN_NRST; } while(0)
#define NRST_HIGH() do { LCD_GPIO_NRST->BSRRL = LCD_GPIO_PIN_NRST; } while(0) #define NRST_HIGH() do { LCD_GPIO_NRST->BSRRL = LCD_GPIO_PIN_NRST; } while(0)
static inline bool coordsWithinScreen(coord_t x, coord_t y, coord_t w, coord_t h) inline bool coordsWithinScreen(coord_t x, coord_t y, coord_t w, coord_t h)
{ {
if (x < 0 || y < 0 || (x + w) > LCD_W || (y + h) > LCD_H) return x >= 0 && y >= 0 && x + w <= LCD_W && y + h <= LCD_H;
return false;
else
return true;
} }
static void LCD_AF_GPIOConfig(void) static void LCD_AF_GPIOConfig()
{ {
GPIO_InitTypeDef GPIO_InitStructure; GPIO_InitTypeDef GPIO_InitStructure;