From 537f3a38f2592687311890e7d513ba1cec664018 Mon Sep 17 00:00:00 2001 From: "ivan.ruzavin" Date: Thu, 17 Oct 2024 12:07:01 +0200 Subject: [PATCH] Fixed all mcu_card headers to have correct TFT mappings --- .../include/mcu_cards/mcu_card_3_for_pic32/mcu_card.h | 2 +- .../include/mcu_cards/mcu_card_4_for_kinetis/mcu_card.h | 2 +- bsp/board/include/mcu_cards/mcu_card_for_pic32/mcu_card.h | 2 +- .../mcu_cards/sibrain_for_dspic33ep512mu814/mcu_card.h | 8 ++++---- .../mcu_cards/sibrain_for_dspic33fj256gp710a/mcu_card.h | 8 ++++---- .../mcu_cards/sibrain_for_pic24ep512gu814/mcu_card.h | 8 ++++---- .../mcu_cards/sibrain_for_pic24hj256gp610/mcu_card.h | 8 ++++---- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/bsp/board/include/mcu_cards/mcu_card_3_for_pic32/mcu_card.h b/bsp/board/include/mcu_cards/mcu_card_3_for_pic32/mcu_card.h index 3dcc2c9d8..895211d39 100644 --- a/bsp/board/include/mcu_cards/mcu_card_3_for_pic32/mcu_card.h +++ b/bsp/board/include/mcu_cards/mcu_card_3_for_pic32/mcu_card.h @@ -400,7 +400,7 @@ extern "C"{ #define LCD_TFT_CH0_8BIT_MASK 0xFF #define LCD_TFT_16BIT_CH0 HAL_PORT_NC -#define LCD_TFT_16BIT_CH0_MASK 0xFF +#define LCD_TFT_16BIT_CH0_MASK 0x00 #define LCD_TFT_16BIT_CH1 HAL_PORT_NC #define LCD_TFT_16BIT_CH1_MASK 0x00 diff --git a/bsp/board/include/mcu_cards/mcu_card_4_for_kinetis/mcu_card.h b/bsp/board/include/mcu_cards/mcu_card_4_for_kinetis/mcu_card.h index 9f1bdefa4..78bcf2bef 100644 --- a/bsp/board/include/mcu_cards/mcu_card_4_for_kinetis/mcu_card.h +++ b/bsp/board/include/mcu_cards/mcu_card_4_for_kinetis/mcu_card.h @@ -403,7 +403,7 @@ extern "C"{ #define LCD_TFT_16BIT_CH0_MASK 0x00FF #define LCD_TFT_16BIT_CH1 PORT_C -#define LCD_TFT_16BIT_CH1_MASK 0xFF00 +#define LCD_TFT_16BIT_CH1_MASK 0x00FF #ifdef __cplusplus } diff --git a/bsp/board/include/mcu_cards/mcu_card_for_pic32/mcu_card.h b/bsp/board/include/mcu_cards/mcu_card_for_pic32/mcu_card.h index 16f6bb31a..769b6a3cd 100644 --- a/bsp/board/include/mcu_cards/mcu_card_for_pic32/mcu_card.h +++ b/bsp/board/include/mcu_cards/mcu_card_for_pic32/mcu_card.h @@ -403,7 +403,7 @@ extern "C"{ #define LCD_TFT_CH0_8BIT_MASK 0xFF #define LCD_TFT_16BIT_CH0 HAL_PORT_NC -#define LCD_TFT_16BIT_CH0_MASK 0xFF +#define LCD_TFT_16BIT_CH0_MASK 0x00 #define LCD_TFT_16BIT_CH1 HAL_PORT_NC #define LCD_TFT_16BIT_CH1_MASK 0x00 diff --git a/bsp/board/include/mcu_cards/sibrain_for_dspic33ep512mu814/mcu_card.h b/bsp/board/include/mcu_cards/sibrain_for_dspic33ep512mu814/mcu_card.h index 26135cf8e..e8c18d5f1 100644 --- a/bsp/board/include/mcu_cards/sibrain_for_dspic33ep512mu814/mcu_card.h +++ b/bsp/board/include/mcu_cards/sibrain_for_dspic33ep512mu814/mcu_card.h @@ -402,11 +402,11 @@ extern "C"{ #define LCD_TFT_8BIT_CH0 PORT_H #define LCD_TFT_CH0_8BIT_MASK 0xFF -#define LCD_TFT_16BIT_CH0 PORT_H -#define LCD_TFT_16BIT_CH0_MASK 0xFF +#define LCD_TFT_16BIT_CH0 HAL_PORT_NC +#define LCD_TFT_16BIT_CH0_MASK 0x00 -#define LCD_TFT_16BIT_CH1 // Pin not routed. -#define LCD_TFT_16BIT_CH1_MASK 0xFF00 +#define LCD_TFT_16BIT_CH1 HAL_PORT_NC +#define LCD_TFT_16BIT_CH1_MASK 0x00 #ifdef __cplusplus } diff --git a/bsp/board/include/mcu_cards/sibrain_for_dspic33fj256gp710a/mcu_card.h b/bsp/board/include/mcu_cards/sibrain_for_dspic33fj256gp710a/mcu_card.h index a12334a58..503484b8c 100644 --- a/bsp/board/include/mcu_cards/sibrain_for_dspic33fj256gp710a/mcu_card.h +++ b/bsp/board/include/mcu_cards/sibrain_for_dspic33fj256gp710a/mcu_card.h @@ -402,11 +402,11 @@ extern "C"{ #define LCD_TFT_8BIT_CH0 PORT_E #define LCD_TFT_CH0_8BIT_MASK 0xFF -#define LCD_TFT_16BIT_CH0 PORT_E -#define LCD_TFT_16BIT_CH0_MASK 0xFF +#define LCD_TFT_16BIT_CH0 HAL_PORT_NC +#define LCD_TFT_16BIT_CH0_MASK 0x00 -#define LCD_TFT_16BIT_CH1 // Pin not routed. -#define LCD_TFT_16BIT_CH1_MASK 0xFF00 +#define LCD_TFT_16BIT_CH1 HAL_PORT_NC +#define LCD_TFT_16BIT_CH1_MASK 0x00 #ifdef __cplusplus } diff --git a/bsp/board/include/mcu_cards/sibrain_for_pic24ep512gu814/mcu_card.h b/bsp/board/include/mcu_cards/sibrain_for_pic24ep512gu814/mcu_card.h index 26135cf8e..e8c18d5f1 100644 --- a/bsp/board/include/mcu_cards/sibrain_for_pic24ep512gu814/mcu_card.h +++ b/bsp/board/include/mcu_cards/sibrain_for_pic24ep512gu814/mcu_card.h @@ -402,11 +402,11 @@ extern "C"{ #define LCD_TFT_8BIT_CH0 PORT_H #define LCD_TFT_CH0_8BIT_MASK 0xFF -#define LCD_TFT_16BIT_CH0 PORT_H -#define LCD_TFT_16BIT_CH0_MASK 0xFF +#define LCD_TFT_16BIT_CH0 HAL_PORT_NC +#define LCD_TFT_16BIT_CH0_MASK 0x00 -#define LCD_TFT_16BIT_CH1 // Pin not routed. -#define LCD_TFT_16BIT_CH1_MASK 0xFF00 +#define LCD_TFT_16BIT_CH1 HAL_PORT_NC +#define LCD_TFT_16BIT_CH1_MASK 0x00 #ifdef __cplusplus } diff --git a/bsp/board/include/mcu_cards/sibrain_for_pic24hj256gp610/mcu_card.h b/bsp/board/include/mcu_cards/sibrain_for_pic24hj256gp610/mcu_card.h index a12334a58..503484b8c 100644 --- a/bsp/board/include/mcu_cards/sibrain_for_pic24hj256gp610/mcu_card.h +++ b/bsp/board/include/mcu_cards/sibrain_for_pic24hj256gp610/mcu_card.h @@ -402,11 +402,11 @@ extern "C"{ #define LCD_TFT_8BIT_CH0 PORT_E #define LCD_TFT_CH0_8BIT_MASK 0xFF -#define LCD_TFT_16BIT_CH0 PORT_E -#define LCD_TFT_16BIT_CH0_MASK 0xFF +#define LCD_TFT_16BIT_CH0 HAL_PORT_NC +#define LCD_TFT_16BIT_CH0_MASK 0x00 -#define LCD_TFT_16BIT_CH1 // Pin not routed. -#define LCD_TFT_16BIT_CH1_MASK 0xFF00 +#define LCD_TFT_16BIT_CH1 HAL_PORT_NC +#define LCD_TFT_16BIT_CH1_MASK 0x00 #ifdef __cplusplus }