mirror of
https://github.com/apache/nuttx.git
synced 2026-08-29 05:10:44 +00:00
arch/esp32: Fix nxstyle errors in partition.h
Fix coding style issues in partition.h reported by nxstyle, specifically correcting brace placement in enum definitions. Signed-off-by: Aviral Garg <aviral.garg.2023@gmail.com>
This commit is contained in:
parent
38731ab840
commit
151e36a0f0
1 changed files with 14 additions and 12 deletions
|
|
@ -33,24 +33,26 @@
|
|||
|
||||
/* OTA image operation code */
|
||||
|
||||
enum ota_img_ctrl {
|
||||
OTA_IMG_GET_BOOT = 0xe1,
|
||||
OTA_IMG_SET_BOOT = 0xe2,
|
||||
OTA_IMG_SET_ENCRYPTED = 0xe3,
|
||||
OTA_IMG_GET_ENCRYPTED = 0xe4,
|
||||
OTA_IMG_GET_TYPE = 0xe5,
|
||||
OTA_IMG_GET_SUBTYPE = 0xe6,
|
||||
OTA_IMG_INVALIDATE_BOOT = 0xe7,
|
||||
enum ota_img_ctrl
|
||||
{
|
||||
OTA_IMG_GET_BOOT = 0xe1,
|
||||
OTA_IMG_SET_BOOT = 0xe2,
|
||||
OTA_IMG_SET_ENCRYPTED = 0xe3,
|
||||
OTA_IMG_GET_ENCRYPTED = 0xe4,
|
||||
OTA_IMG_GET_TYPE = 0xe5,
|
||||
OTA_IMG_GET_SUBTYPE = 0xe6,
|
||||
OTA_IMG_INVALIDATE_BOOT = 0xe7,
|
||||
OTA_IMG_IS_MAPPED_AS_TEXT = 0xe8,
|
||||
OTA_IMG_GET_OFFSET = 0xe9,
|
||||
OTA_IMG_GET_OFFSET = 0xe9,
|
||||
};
|
||||
|
||||
/* OTA image boot sequency */
|
||||
|
||||
enum ota_img_bootseq {
|
||||
enum ota_img_bootseq
|
||||
{
|
||||
OTA_IMG_BOOT_FACTORY = 0,
|
||||
OTA_IMG_BOOT_OTA_0 = 1,
|
||||
OTA_IMG_BOOT_OTA_1 = 2,
|
||||
OTA_IMG_BOOT_OTA_0 = 1,
|
||||
OTA_IMG_BOOT_OTA_1 = 2,
|
||||
OTA_IMG_BOOT_SEQ_MAX
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue