-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds uninit for MPSL PM integration. Unregisters pm policy latency requests and events. Signed-off-by: Knut Eldhuset <knut.eldhuset@nordicsemi.no>
- Loading branch information
1 parent
5b43696
commit 64fb0eb
Showing
7 changed files
with
146 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
#ifndef ZEPHYR_INCLUDE_KERNEL_H_ | ||
#define ZEPHYR_INCLUDE_KERNEL_H_ | ||
|
||
/* CMock chokes on zephyr/kernel.h, so we define the minimum required to build | ||
* mpsl_pm and tests, then let CMock generate mocks from this file instead. | ||
*/ | ||
|
||
#include <stdint.h> | ||
|
||
struct k_work { | ||
void *handler; | ||
}; | ||
|
||
typedef struct k_timeout { | ||
uint64_t value; | ||
} k_timeout_t; | ||
|
||
struct k_work_delayable { | ||
void *handler; | ||
}; | ||
|
||
#define Z_WORK_DELAYABLE_INITIALIZER(work_handler) {work_handler} | ||
#define K_WORK_DELAYABLE_DEFINE(work, work_handler) \ | ||
struct k_work_delayable work = Z_WORK_DELAYABLE_INITIALIZER(work_handler) | ||
|
||
#define Z_WORK_INITIALIZER(work_handler) {work_handler} | ||
#define K_WORK_DEFINE(work, work_handler) \ | ||
struct k_work_delayable work = Z_WORK_INITIALIZER(work_handler) | ||
|
||
k_timeout_t K_USEC(uint64_t d); | ||
|
||
#define K_NO_WAIT (k_timeout_t) {0} | ||
|
||
int64_t k_uptime_get(void); | ||
|
||
#endif /* ZEPHYR_INCLUDE_KERNEL_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters