Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

RTOS/CC1310: NVOCOP_compactNV needs to be called in idle function ?

$
0
0

Part Number:CC1310

Tool/software: TI-RTOS

Hello,

I'm using the storage algrotihme but i rewritten it for an external flash. My question is the following one, do i need to call compactNV regularly in an idle function in this way :

void common_idle(void) {
    static uint32_t memo_time = 10000;
    uint32_t current_time = Clock_getTicks() * Clock_tickPeriod / 1000;
    if (current_time > memo_time) {
        pNV->compactNV(1024);
        memo_time = current_time + 10000;
    }
}

Regards,

Aurélien


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>