Skip to content

Commit

Permalink
Fix some compiler warnings
Browse files Browse the repository at this point in the history
 - Fix syntax of a cast to a uint32
 - Remove defines that are already made by the base platform
  • Loading branch information
dotsam committed Aug 11, 2023
1 parent 810eae9 commit 458617a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ upload_protocol = stlink
; Different gcc versions produce much different binaries in terms of speed.
platform_packages = platformio/[email protected]
build_flags =
-DARDUINO_GENERIC_STM32F103C
-DARDUINO_LIB_DISCOVERY_PHASE
-DARDUINO=10813
-DARDUINO_ARCH_STM32
-DDEBUG_LEVEL=DEBUG_NONE
-O2
Expand Down Expand Up @@ -78,9 +76,7 @@ build_flags =
-D USB_MANUFACTURER="Unknown"
-D USB_PRODUCT="\"BLUEPILL_F103C8\""
-D HAL_PCD_MODULE_ENABLED
-DARDUINO_GENERIC_STM32F103C
-DARDUINO_LIB_DISCOVERY_PHASE
-DARDUINO=10813
-DARDUINO_ARCH_STM32
-DDEBUG_LEVEL=DEBUG_NONE
-O2
Expand Down
2 changes: 1 addition & 1 deletion src/BlueSCSI.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ enum SCSI_DEVICE_TYPE
// Put DB and DP in output mode
#define SCSI_DB_OUTPUT() { PBREG->CRL=(PBREG->CRL &0xfffffff0)|DB_MODE_OUT; PBREG->CRH = 0x11111111*DB_MODE_OUT; }
// Put DB and DP in input mode
#define SCSI_DB_INPUT() { PBREG->CRL=(PBREG->CRL &0xfffffff0)|DB_MODE_IN ; PBREG->CRH = (uint32_t)(0x11111111*DB_MODE_IN); }
#define SCSI_DB_INPUT() { PBREG->CRL=(PBREG->CRL &0xfffffff0)|DB_MODE_IN ; PBREG->CRH = (uint32_t)0x11111111*DB_MODE_IN; }

// HDDiamge file
#define HDIMG_ID_POS 2 // Position to embed ID number
Expand Down

0 comments on commit 458617a

Please sign in to comment.