@@ -148,7 +148,7 @@ CHIP_ERROR AppTask::StartAppTask()
148
148
sAppEventQueue = xQueueCreateStatic (APP_EVENT_QUEUE_SIZE, sizeof (AppEvent), sAppEventQueueBuffer , &sAppEventQueueStruct );
149
149
if (sAppEventQueue == NULL )
150
150
{
151
- P6_LOG (" Failed to allocate app event queue" );
151
+ PSOC6_LOG (" Failed to allocate app event queue" );
152
152
appError (APP_ERROR_EVENT_QUEUE_FAILED);
153
153
}
154
154
// Start App task.
@@ -160,10 +160,10 @@ CHIP_ERROR AppTask::Init()
160
160
{
161
161
CHIP_ERROR err = CHIP_NO_ERROR;
162
162
#if CHIP_DEVICE_CONFIG_ENABLE_OTA_REQUESTOR
163
- int rc = boot_set_confirmed ();
163
+ int rc = flash_area_boot_set_confirmed ();
164
164
if (rc != 0 )
165
165
{
166
- P6_LOG ( " boot_set_confirmed failed" );
166
+ PSOC6_LOG ( " flash_area_boot_set_confirmed failed" );
167
167
appError (CHIP_ERROR_UNINITIALIZED);
168
168
}
169
169
#endif
@@ -196,11 +196,11 @@ CHIP_ERROR AppTask::Init()
196
196
);
197
197
if (sFunctionTimer == NULL )
198
198
{
199
- P6_LOG (" funct timer create failed" );
199
+ PSOC6_LOG (" funct timer create failed" );
200
200
appError (APP_ERROR_CREATE_TIMER_FAILED);
201
201
}
202
202
NetWorkCommissioningInstInit ();
203
- P6_LOG (" Current Software Version: %s" , CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING);
203
+ PSOC6_LOG (" Current Software Version: %s" , CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING);
204
204
205
205
// Initialize LEDs
206
206
sStatusLED .Init (SYSTEM_STATE_LED);
@@ -221,11 +221,11 @@ void AppTask::AppTaskMain(void * pvParameter)
221
221
CHIP_ERROR err = sAppTask .Init ();
222
222
if (err != CHIP_NO_ERROR)
223
223
{
224
- P6_LOG (" AppTask.Init() failed" );
224
+ PSOC6_LOG (" AppTask.Init() failed" );
225
225
appError (err);
226
226
}
227
227
228
- P6_LOG (" App Task started" );
228
+ PSOC6_LOG (" App Task started" );
229
229
230
230
while (true )
231
231
{
@@ -301,7 +301,8 @@ void AppTask::FunctionHandler(AppEvent * event)
301
301
{
302
302
if (!sAppTask .mFunctionTimerActive && sAppTask .mFunction == Function::kNoneSelected )
303
303
{
304
- P6_LOG (" Factory Reset Triggered. Press button again within %us to cancel." , FACTORY_RESET_CANCEL_WINDOW_TIMEOUT / 1000 );
304
+ PSOC6_LOG (" Factory Reset Triggered. Press button again within %us to cancel." ,
305
+ FACTORY_RESET_CANCEL_WINDOW_TIMEOUT / 1000 );
305
306
// Start timer for FACTORY_RESET_CANCEL_WINDOW_TIMEOUT to allow user to
306
307
// cancel, if required.
307
308
sAppTask .StartTimer (FACTORY_RESET_CANCEL_WINDOW_TIMEOUT);
@@ -325,7 +326,7 @@ void AppTask::FunctionHandler(AppEvent * event)
325
326
// canceled.
326
327
sAppTask .mFunction = Function::kNoneSelected ;
327
328
328
- P6_LOG (" Factory Reset has been Canceled" );
329
+ PSOC6_LOG (" Factory Reset has been Canceled" );
329
330
}
330
331
}
331
332
}
@@ -334,7 +335,7 @@ void AppTask::CancelTimer()
334
335
{
335
336
if (xTimerStop (sFunctionTimer , 0 ) == pdFAIL)
336
337
{
337
- P6_LOG (" app timer stop() failed" );
338
+ PSOC6_LOG (" app timer stop() failed" );
338
339
appError (APP_ERROR_STOP_TIMER_FAILED);
339
340
}
340
341
@@ -345,7 +346,7 @@ void AppTask::StartTimer(uint32_t aTimeoutInMs)
345
346
{
346
347
if (xTimerIsTimerActive (sFunctionTimer ))
347
348
{
348
- P6_LOG (" app timer already started!" );
349
+ PSOC6_LOG (" app timer already started!" );
349
350
CancelTimer ();
350
351
}
351
352
@@ -354,7 +355,7 @@ void AppTask::StartTimer(uint32_t aTimeoutInMs)
354
355
// cannot immediately be sent to the timer command queue.
355
356
if (xTimerChangePeriod (sFunctionTimer , aTimeoutInMs / portTICK_PERIOD_MS, 100 ) != pdPASS)
356
357
{
357
- P6_LOG (" app timer start() failed" );
358
+ PSOC6_LOG (" app timer start() failed" );
358
359
appError (APP_ERROR_START_TIMER_FAILED);
359
360
}
360
361
@@ -385,11 +386,11 @@ void AppTask::PostEvent(const AppEvent * event)
385
386
}
386
387
387
388
if (!status)
388
- P6_LOG (" Failed to post event to app task event queue" );
389
+ PSOC6_LOG (" Failed to post event to app task event queue" );
389
390
}
390
391
else
391
392
{
392
- P6_LOG (" Event Queue is NULL should never happen" );
393
+ PSOC6_LOG (" Event Queue is NULL should never happen" );
393
394
}
394
395
}
395
396
@@ -401,7 +402,7 @@ void AppTask::DispatchEvent(AppEvent * event)
401
402
}
402
403
else
403
404
{
404
- P6_LOG (" Event received with no handler. Dropping event." );
405
+ PSOC6_LOG (" Event received with no handler. Dropping event." );
405
406
}
406
407
}
407
408
@@ -414,7 +415,7 @@ void AppTask::OnOffUpdateClusterState(intptr_t context)
414
415
415
416
if (status != Protocols::InteractionModel::Status::Success)
416
417
{
417
- P6_LOG (" ERR: updating on/off %x" , to_underlying (status));
418
+ PSOC6_LOG (" ERR: updating on/off %x" , to_underlying (status));
418
419
}
419
420
}
420
421
@@ -435,7 +436,7 @@ void AppTask::InitOTARequestor()
435
436
436
437
gRequestorUser .Init (&gRequestorCore , &gImageProcessor );
437
438
438
- P6_LOG (" Current Software Version: %u" , CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION);
439
- P6_LOG (" Current Software Version String: %s" , CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING);
439
+ PSOC6_LOG (" Current Software Version: %u" , CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION);
440
+ PSOC6_LOG (" Current Software Version String: %s" , CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING);
440
441
}
441
442
#endif
0 commit comments