@@ -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,7 @@ 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." , FACTORY_RESET_CANCEL_WINDOW_TIMEOUT / 1000 );
305
305
// Start timer for FACTORY_RESET_CANCEL_WINDOW_TIMEOUT to allow user to
306
306
// cancel, if required.
307
307
sAppTask .StartTimer (FACTORY_RESET_CANCEL_WINDOW_TIMEOUT);
@@ -325,7 +325,7 @@ void AppTask::FunctionHandler(AppEvent * event)
325
325
// canceled.
326
326
sAppTask .mFunction = Function::kNoneSelected ;
327
327
328
- P6_LOG (" Factory Reset has been Canceled" );
328
+ PSOC6_LOG (" Factory Reset has been Canceled" );
329
329
}
330
330
}
331
331
}
@@ -334,7 +334,7 @@ void AppTask::CancelTimer()
334
334
{
335
335
if (xTimerStop (sFunctionTimer , 0 ) == pdFAIL)
336
336
{
337
- P6_LOG (" app timer stop() failed" );
337
+ PSOC6_LOG (" app timer stop() failed" );
338
338
appError (APP_ERROR_STOP_TIMER_FAILED);
339
339
}
340
340
@@ -345,7 +345,7 @@ void AppTask::StartTimer(uint32_t aTimeoutInMs)
345
345
{
346
346
if (xTimerIsTimerActive (sFunctionTimer ))
347
347
{
348
- P6_LOG (" app timer already started!" );
348
+ PSOC6_LOG (" app timer already started!" );
349
349
CancelTimer ();
350
350
}
351
351
@@ -354,7 +354,7 @@ void AppTask::StartTimer(uint32_t aTimeoutInMs)
354
354
// cannot immediately be sent to the timer command queue.
355
355
if (xTimerChangePeriod (sFunctionTimer , aTimeoutInMs / portTICK_PERIOD_MS, 100 ) != pdPASS)
356
356
{
357
- P6_LOG (" app timer start() failed" );
357
+ PSOC6_LOG (" app timer start() failed" );
358
358
appError (APP_ERROR_START_TIMER_FAILED);
359
359
}
360
360
@@ -385,11 +385,11 @@ void AppTask::PostEvent(const AppEvent * event)
385
385
}
386
386
387
387
if (!status)
388
- P6_LOG (" Failed to post event to app task event queue" );
388
+ PSOC6_LOG (" Failed to post event to app task event queue" );
389
389
}
390
390
else
391
391
{
392
- P6_LOG (" Event Queue is NULL should never happen" );
392
+ PSOC6_LOG (" Event Queue is NULL should never happen" );
393
393
}
394
394
}
395
395
@@ -401,7 +401,7 @@ void AppTask::DispatchEvent(AppEvent * event)
401
401
}
402
402
else
403
403
{
404
- P6_LOG (" Event received with no handler. Dropping event." );
404
+ PSOC6_LOG (" Event received with no handler. Dropping event." );
405
405
}
406
406
}
407
407
@@ -414,7 +414,7 @@ void AppTask::OnOffUpdateClusterState(intptr_t context)
414
414
415
415
if (status != Protocols::InteractionModel::Status::Success)
416
416
{
417
- P6_LOG (" ERR: updating on/off %x" , to_underlying (status));
417
+ PSOC6_LOG (" ERR: updating on/off %x" , to_underlying (status));
418
418
}
419
419
}
420
420
@@ -435,7 +435,7 @@ void AppTask::InitOTARequestor()
435
435
436
436
gRequestorUser .Init (&gRequestorCore , &gImageProcessor );
437
437
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);
438
+ PSOC6_LOG (" Current Software Version: %u" , CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION);
439
+ PSOC6_LOG (" Current Software Version String: %s" , CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING);
440
440
}
441
441
#endif
0 commit comments