Skip to content

Commit

Permalink
projects/03app_nrf5340_net: force constant latency mode on network core
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed Apr 14, 2023
1 parent 55fd6fe commit 3980b39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions projects/03app_nrf5340_net/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ void radio_callback(uint8_t *packet, uint8_t length) {
//=========================== main ==============================================

int main(void) {

#if defined(NRF5340_XXAA)
// Configure constant latency mode for better performances
NRF_POWER_NS->TASKS_CONSTLAT = 1;
#endif

NRF_IPC_NS->INTENSET = 1 << DB_IPC_CHAN_REQ;
NRF_IPC_NS->SEND_CNF[DB_IPC_CHAN_ACK] = 1 << DB_IPC_CHAN_ACK;
NRF_IPC_NS->SEND_CNF[DB_IPC_CHAN_RADIO_RX] = 1 << DB_IPC_CHAN_RADIO_RX;
Expand Down

0 comments on commit 3980b39

Please sign in to comment.