Skip to content

nrfs: Added explicit enum values #277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions nrfs/include/internal/requests/nrfs_reqs_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,19 @@
extern "C" {
#endif

/* Warning! Do not change the order of this enumeration */
enum {
NRFS_SERVICE_ID_CLOCK,
NRFS_SERVICE_ID_DIAG,
NRFS_SERVICE_ID_DVFS,
NRFS_SERVICE_ID_GDPWR,
NRFS_SERVICE_ID_MRAM,
NRFS_SERVICE_ID_PMIC,
NRFS_SERVICE_ID_RESET,
NRFS_SERVICE_ID_TEMP,
NRFS_SERVICE_ID_USB,
NRFS_SERVICE_ID_GDFS,
NRFS_SERVICE_ID_SWEXT,
NRFS_SERVICE_ID_CLOCK = 0,
NRFS_SERVICE_ID_DIAG = 1,
NRFS_SERVICE_ID_DVFS = 2,
NRFS_SERVICE_ID_GDPWR = 3,
NRFS_SERVICE_ID_MRAM = 4,
NRFS_SERVICE_ID_PMIC = 5,
NRFS_SERVICE_ID_RESET = 6,
NRFS_SERVICE_ID_TEMP = 7,
NRFS_SERVICE_ID_USB = 8,
NRFS_SERVICE_ID_GDFS = 9,
NRFS_SERVICE_ID_SWEXT = 10,
};

#ifdef __cplusplus
Expand Down
10 changes: 5 additions & 5 deletions nrfs/include/internal/services/nrfs_gdpwr.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ extern "C" {

/** @brief Power domain selection */
typedef enum __NRFS_PACKED {
GDPWR_GD_FAST_ACTIVE_0,
GDPWR_GD_FAST_ACTIVE_1,
GDPWR_GD_FAST_MAIN,
GDPWR_GD_SLOW_ACTIVE,
GDPWR_GD_SLOW_MAIN
GDPWR_GD_FAST_ACTIVE_0 = 0,
GDPWR_GD_FAST_ACTIVE_1 = 1,
GDPWR_GD_FAST_MAIN = 2,
GDPWR_GD_SLOW_ACTIVE = 3,
GDPWR_GD_SLOW_MAIN = 4
} gdpwr_power_domain_t;

typedef enum __NRFS_PACKED {
Expand Down