PIC32MZ: Correct a few more DEVCFG issues
This commit is contained in:
parent
a7c1053f9d
commit
c0d2e33288
@ -340,8 +340,8 @@ menu "Device Configuration 0 (DEVCFG0)"
|
|||||||
|
|
||||||
config PIC32MZ_DEBUGGER_ENABLE
|
config PIC32MZ_DEBUGGER_ENABLE
|
||||||
bool "Background debugger enable"
|
bool "Background debugger enable"
|
||||||
default y if CONFIG_DEBUG
|
default y if DEBUG
|
||||||
default n if !CONFIG_DEBUG
|
default n if !DEBUG
|
||||||
---help---
|
---help---
|
||||||
Background Debugger Enable
|
Background Debugger Enable
|
||||||
|
|
||||||
@ -359,8 +359,8 @@ config PIC32MZ_ICESEL_CH2
|
|||||||
|
|
||||||
config PIC32MZ_TRACE_ENABLE
|
config PIC32MZ_TRACE_ENABLE
|
||||||
bool "Trace enable"
|
bool "Trace enable"
|
||||||
default y if CONFIG_DEBUG
|
default y if DEBUG
|
||||||
default n if !CONFIG_DEBUG
|
default n if !DEBUG
|
||||||
---help---
|
---help---
|
||||||
Trace Enable
|
Trace Enable
|
||||||
|
|
||||||
@ -368,7 +368,7 @@ endmenu
|
|||||||
|
|
||||||
menu "Device Configuration 1 (DEVCFG1)"
|
menu "Device Configuration 1 (DEVCFG1)"
|
||||||
|
|
||||||
config CONFIG_PIC32MZ_OSCIOFNC
|
config PIC32MZ_OSCIOFNC
|
||||||
int "CLKO Enable"
|
int "CLKO Enable"
|
||||||
default 1
|
default 1
|
||||||
range 0 1
|
range 0 1
|
||||||
@ -434,7 +434,8 @@ config PIC32MZ_FETHIO
|
|||||||
|
|
||||||
config PIC32MZ_FUSBIDIO
|
config PIC32MZ_FUSBIDIO
|
||||||
int "USB USBID selection"
|
int "USB USBID selection"
|
||||||
default 1
|
default 0 if !PIC32MZ_ETHERNET
|
||||||
|
default 1 if PIC32MZ_ETHERNET
|
||||||
range 0 1
|
range 0 1
|
||||||
---help---
|
---help---
|
||||||
USB USBID selection
|
USB USBID selection
|
||||||
|
@ -176,9 +176,9 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_PIC32MZ_FUSBIDIO /* USB USBID selection: 0=GPIO 1=USB */
|
#ifndef CONFIG_PIC32MZ_FUSBIDIO /* USB USBID selection: 0=GPIO 1=USB */
|
||||||
# ifdef CONFIG_PIC32MZ_USB
|
# ifdef CONFIG_PIC32MZ_USB
|
||||||
# define CONFIG_PIC32MZ_FUSBIDIO 0 /* USBID pin is controlled by the IOPORT configuration */
|
|
||||||
# else
|
|
||||||
# define CONFIG_PIC32MZ_FUSBIDIO 1 /* USBID pin is controlled by the USB module */
|
# define CONFIG_PIC32MZ_FUSBIDIO 1 /* USBID pin is controlled by the USB module */
|
||||||
|
# else
|
||||||
|
# define CONFIG_PIC32MZ_FUSBIDIO 0 /* USBID pin is controlled by the IOPORT configuration */
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -230,7 +230,7 @@
|
|||||||
|
|
||||||
#undef CONFIG_PIC32MZ_PLLMULT
|
#undef CONFIG_PIC32MZ_PLLMULT
|
||||||
#if BOARD_PLL_MULT >= 1 && BOARD_PLL_MULT <= 128
|
#if BOARD_PLL_MULT >= 1 && BOARD_PLL_MULT <= 128
|
||||||
# define CONFIG_PIC32MZ_PLLMULT ((BOARD_PLL_MULT-1) << DEVCFG2_FPLLIDIV_SHIFT)
|
# define CONFIG_PIC32MZ_PLLMULT ((BOARD_PLL_MULT-1) << DEVCFG2_FPLLMULT_SHIFT)
|
||||||
#else
|
#else
|
||||||
# error "Unsupported BOARD_PLL_MULT"
|
# error "Unsupported BOARD_PLL_MULT"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user