|
|
|
@ -25,6 +25,9 @@ |
|
|
|
#include "MinIni/McuMinINI.h" |
|
|
|
#include "MinIni/McuMinINI.h" |
|
|
|
#include "minIni/McuFlash.h" |
|
|
|
#include "minIni/McuFlash.h" |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
#if PL_CONFIG_USE_RS485 |
|
|
|
|
|
|
|
#include "rs485.h" |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
void PL_Init(void){ |
|
|
|
void PL_Init(void){ |
|
|
|
|
|
|
|
|
|
|
|
@ -32,6 +35,7 @@ void PL_Init(void){ |
|
|
|
CLOCK_EnableClock(kCLOCK_PortA); |
|
|
|
CLOCK_EnableClock(kCLOCK_PortA); |
|
|
|
CLOCK_EnableClock(kCLOCK_PortB); |
|
|
|
CLOCK_EnableClock(kCLOCK_PortB); |
|
|
|
CLOCK_EnableClock(kCLOCK_PortC); |
|
|
|
CLOCK_EnableClock(kCLOCK_PortC); |
|
|
|
|
|
|
|
CLOCK_EnableClock(kCLOCK_PortD); |
|
|
|
|
|
|
|
|
|
|
|
/* NVMC init */ |
|
|
|
/* NVMC init */ |
|
|
|
#if PL_CONFIG_USE_NVMC |
|
|
|
#if PL_CONFIG_USE_NVMC |
|
|
|
@ -50,6 +54,9 @@ void PL_Init(void){ |
|
|
|
McuLED_Init(); |
|
|
|
McuLED_Init(); |
|
|
|
McuULN2003_Init(); |
|
|
|
McuULN2003_Init(); |
|
|
|
McuRTT_Init(); |
|
|
|
McuRTT_Init(); |
|
|
|
|
|
|
|
#if PL_CONFIG_USE_RS485 |
|
|
|
|
|
|
|
RS485_Init(); |
|
|
|
|
|
|
|
#endif |
|
|
|
McuShell_Init(); |
|
|
|
McuShell_Init(); |
|
|
|
McuShellUart_Init(); |
|
|
|
McuShellUart_Init(); |
|
|
|
McuLog_Init(); |
|
|
|
McuLog_Init(); |
|
|
|
@ -81,4 +88,5 @@ void PL_Deinit(void){ |
|
|
|
#if PL_CONFIG_USE_NVMC |
|
|
|
#if PL_CONFIG_USE_NVMC |
|
|
|
NVMC_Deinit(); |
|
|
|
NVMC_Deinit(); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|