mirror of
https://github.com/erichelgeson/BlueSCSI.git
synced 2024-06-14 03:29:40 +00:00
Fix some compiler warnings
- Fix syntax of a cast to a uint32 - Remove defines that are already made by the base platform
This commit is contained in:
parent
810eae9be3
commit
458617a827
|
@ -11,9 +11,7 @@ upload_protocol = stlink
|
||||||
; Different gcc versions produce much different binaries in terms of speed.
|
; Different gcc versions produce much different binaries in terms of speed.
|
||||||
platform_packages = platformio/toolchain-gccarmnoneeabi@1.90301.200702
|
platform_packages = platformio/toolchain-gccarmnoneeabi@1.90301.200702
|
||||||
build_flags =
|
build_flags =
|
||||||
-DARDUINO_GENERIC_STM32F103C
|
|
||||||
-DARDUINO_LIB_DISCOVERY_PHASE
|
-DARDUINO_LIB_DISCOVERY_PHASE
|
||||||
-DARDUINO=10813
|
|
||||||
-DARDUINO_ARCH_STM32
|
-DARDUINO_ARCH_STM32
|
||||||
-DDEBUG_LEVEL=DEBUG_NONE
|
-DDEBUG_LEVEL=DEBUG_NONE
|
||||||
-O2
|
-O2
|
||||||
|
@ -78,9 +76,7 @@ build_flags =
|
||||||
-D USB_MANUFACTURER="Unknown"
|
-D USB_MANUFACTURER="Unknown"
|
||||||
-D USB_PRODUCT="\"BLUEPILL_F103C8\""
|
-D USB_PRODUCT="\"BLUEPILL_F103C8\""
|
||||||
-D HAL_PCD_MODULE_ENABLED
|
-D HAL_PCD_MODULE_ENABLED
|
||||||
-DARDUINO_GENERIC_STM32F103C
|
|
||||||
-DARDUINO_LIB_DISCOVERY_PHASE
|
-DARDUINO_LIB_DISCOVERY_PHASE
|
||||||
-DARDUINO=10813
|
|
||||||
-DARDUINO_ARCH_STM32
|
-DARDUINO_ARCH_STM32
|
||||||
-DDEBUG_LEVEL=DEBUG_NONE
|
-DDEBUG_LEVEL=DEBUG_NONE
|
||||||
-O2
|
-O2
|
||||||
|
|
|
@ -235,7 +235,7 @@ enum SCSI_DEVICE_TYPE
|
||||||
// Put DB and DP in output mode
|
// 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; }
|
#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
|
// 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
|
// HDDiamge file
|
||||||
#define HDIMG_ID_POS 2 // Position to embed ID number
|
#define HDIMG_ID_POS 2 // Position to embed ID number
|
||||||
|
|
Loading…
Reference in New Issue
Block a user