Improve fix for internal module not supporting PXX1
This commit is contained in:
@@ -576,7 +576,7 @@ bool isInternalModuleAvailable(int moduleType)
|
|||||||
|
|
||||||
#if defined(PXX1)
|
#if defined(PXX1)
|
||||||
if (moduleType == MODULE_TYPE_XJT)
|
if (moduleType == MODULE_TYPE_XJT)
|
||||||
#if defined(PCBXLITES)
|
#if defined(INTMODULE_NO_PXX1)
|
||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
return (!isModuleUSingSport(EXTERNAL_MODULE, g_model.moduleData[EXTERNAL_MODULE].type));
|
return (!isModuleUSingSport(EXTERNAL_MODULE, g_model.moduleData[EXTERNAL_MODULE].type));
|
||||||
|
|||||||
@@ -671,6 +671,9 @@
|
|||||||
|
|
||||||
// Internal Module
|
// Internal Module
|
||||||
#define HARDWARE_INTERNAL_MODULE
|
#define HARDWARE_INTERNAL_MODULE
|
||||||
|
#if defined(PCBXLITES) || defined(PCBX3)
|
||||||
|
#define INTMODULE_NO_PXX1
|
||||||
|
#endif
|
||||||
#if defined(PCBXLITE) || defined(PCBX3)
|
#if defined(PCBXLITE) || defined(PCBX3)
|
||||||
#define INTMODULE_RCC_APB1Periph RCC_APB1Periph_TIM3
|
#define INTMODULE_RCC_APB1Periph RCC_APB1Periph_TIM3
|
||||||
#define INTMODULE_RCC_APB2Periph RCC_APB2Periph_USART1
|
#define INTMODULE_RCC_APB2Periph RCC_APB2Periph_USART1
|
||||||
|
|||||||
Reference in New Issue
Block a user