mirror of
https://github.com/Koenkk/Z-Stack-firmware.git
synced 2025-01-19 12:21:18 +01:00
Update readme about build CC2530 Coordinator
This commit is contained in:
parent
47e0db677b
commit
d3499e4d41
@ -17,6 +17,22 @@ And replace by:
|
|||||||
uartConfig.baudRate = HAL_UART_BR_115200;
|
uartConfig.baudRate = HAL_UART_BR_115200;
|
||||||
uartConfig.flowControl = FALSE;//Old value true
|
uartConfig.flowControl = FALSE;//Old value true
|
||||||
```
|
```
|
||||||
|
Edit file Components\mt\MT_SYS.c replace powerOffSoc(void) with:
|
||||||
|
```
|
||||||
|
HAL_DISABLE_INTERRUPTS();
|
||||||
|
STIF = 0; //HAL_SLEEP_TIMER_CLEAR_INT;
|
||||||
|
if (ZNP_CFG1_UART == znpCfg1)
|
||||||
|
{
|
||||||
|
HalUARTSuspend();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Prep CC2530 power mode */
|
||||||
|
//HAL_SLEEP_PREP_POWER_MODE(3);
|
||||||
|
SLEEPCMD &= ~PMODE; /* clear mode bits */
|
||||||
|
SLEEPCMD |= 3; /* set mode bits to PM3 */
|
||||||
|
while (!(STLOAD & LDRDY));
|
||||||
|
SystemReset();
|
||||||
|
```
|
||||||
4. Right-click on *CC2530 - ProdHex** and press options. Go to C/C++ compiler -> preprocessor. Change the *Defined symbols* to:
|
4. Right-click on *CC2530 - ProdHex** and press options. Go to C/C++ compiler -> preprocessor. Change the *Defined symbols* to:
|
||||||
```
|
```
|
||||||
FEATURE_SYSTEM_STATS
|
FEATURE_SYSTEM_STATS
|
||||||
|
Loading…
Reference in New Issue
Block a user