Skip to content

Commit a0b92dd

Browse files
committed
Remove R510 FOTA support
1 parent ca4a2ae commit a0b92dd

File tree

11 files changed

+68
-1398
lines changed

11 files changed

+68
-1398
lines changed

hal/inc/hal_platform.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,6 @@
434434
#define HAL_PLATFORM_NCP_COUNT (0)
435435
#endif // HAL_PLATFORM_NCP_COUNT
436436

437-
#ifndef HAL_PLATFORM_NCP_FW_UPDATE
438-
#define HAL_PLATFORM_NCP_FW_UPDATE (0)
439-
#endif // HAL_PLATFORM_NCP_FW_UPDATE
440-
441437
#ifndef HAL_PLATFORM_WIFI_COMPAT
442438
#define HAL_PLATFORM_WIFI_COMPAT (0)
443439
#endif // HAL_PLATFORM_WIFI_COMPAT

services/inc/diagnostics.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
#define DIAG_NAME_NETWORK_CELLULAR_CELL_GLOBAL_IDENTITY_MOBILE_NETWORK_CODE "net:cell:cgi:mnc"
4949
#define DIAG_NAME_NETWORK_CELLULAR_CELL_GLOBAL_IDENTITY_LOCATION_AREA_CODE "net:cell:cgi:lac"
5050
#define DIAG_NAME_NETWORK_CELLULAR_CELL_GLOBAL_IDENTITY_CELL_ID "net:cell:cgi:ci"
51-
#define DIAG_NAME_NETWORK_NCP_FW_UPDATE_STATUS "net:ncpfw:stat"
5251
#define DIAG_NAME_CLOUD_CONNECTION_STATUS "cloud:stat"
5352
#define DIAG_NAME_CLOUD_CONNECTION_ERROR_CODE "cloud:err"
5453
#define DIAG_NAME_CLOUD_DISCONNECTS "cloud:dconn"
@@ -96,7 +95,6 @@ typedef enum diag_id {
9695
DIAG_ID_NETWORK_CELLULAR_CELL_GLOBAL_IDENTITY_MOBILE_NETWORK_CODE = 41, // net:cell:cgi:mnc
9796
DIAG_ID_NETWORK_CELLULAR_CELL_GLOBAL_IDENTITY_LOCATION_AREA_CODE = 42, // net:cell:cgi:lac
9897
DIAG_ID_NETWORK_CELLULAR_CELL_GLOBAL_IDENTITY_CELL_ID = 43, // net:cell:cgi:ci
99-
DIAG_ID_NETWORK_NCP_FW_UPDATE_STATUS = 50, // net:nfu:stat
10098
DIAG_ID_CLOUD_CONNECTION_STATUS = 10, // cloud:stat
10199
DIAG_ID_CLOUD_CONNECTION_ERROR_CODE = 13, // cloud:err
102100
DIAG_ID_CLOUD_DISCONNECTS = 14, // cloud:dconn

services/inc/ncp_fw_update.h

Lines changed: 0 additions & 230 deletions
This file was deleted.

services/inc/ncp_fw_update_dynalib.h

Lines changed: 0 additions & 41 deletions
This file was deleted.

services/inc/services_dynalib.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#ifdef DYNALIB_EXPORT
2929
#include "nanopb_misc.h"
3030
#include <stdint.h>
31-
#include "ncp_fw_update_dynalib.h"
3231
#ifdef PB_WITHOUT_64BIT
3332
#define pb_int64_t int32_t
3433
#define pb_uint64_t uint32_t
@@ -115,7 +114,6 @@ DYNALIB_FN(BASE_IDX + 0, services, set_system_error_message, void(const char*, .
115114
DYNALIB_FN(BASE_IDX + 1, services, clear_system_error_message, void())
116115
DYNALIB_FN(BASE_IDX + 2, services, get_system_error_message, const char*(int))
117116
DYNALIB_FN(BASE_IDX + 3, services, jsmn_parse, int(jsmn_parser*, const char*, size_t, jsmntok_t*, unsigned int, void*))
118-
DYNALIB_FN(BASE_IDX + 4, services, ncp_fw_udpate_check, int(const NcpFwUpdateConfig*, void*))
119117

120118
DYNALIB_END(services)
121119

services/inc/system_cache.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ namespace particle { namespace services {
2323

2424
enum class SystemCacheKey : uint16_t {
2525
WIFI_NCP_FIRMWARE_VERSION = 0x0000,
26-
WIFI_NCP_MAC_ADDRESS = 0x0001,
27-
NCP_FW_UPDATE_DATA = 0x0002,
26+
WIFI_NCP_MAC_ADDRESS = 0x0001
2827
};
2928

3029
class SystemCache {

services/inc/system_defs.h

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -94,71 +94,6 @@ typedef enum network_disconnect_reason {
9494
NETWORK_DISCONNECT_REASON_UNKNOWN = 7 ///< Unspecified disconnection reason.
9595
} network_disconnect_reason;
9696

97-
typedef enum system_flag_t {
98-
/**
99-
* When 0, no OTA update is pending.
100-
* When 1, an OTA update is pending, and will start when the SYSTEM_FLAG_OTA_UPDATES_FLAG
101-
* is set.
102-
*/
103-
SYSTEM_FLAG_OTA_UPDATE_PENDING,
104-
105-
/**
106-
* When 0, OTA updates are not started.
107-
* When 1, OTA updates are started. Default.
108-
*/
109-
SYSTEM_FLAG_OTA_UPDATE_ENABLED,
110-
111-
/*
112-
* When 0, no reset is pending.
113-
* When 1, a reset is pending. The system will perform the reset
114-
* when SYSTEM_FLAG_RESET_ENABLED is set to 1.
115-
*/
116-
SYSTEM_FLAG_RESET_PENDING,
117-
118-
/**
119-
* When 0, the system is not able to perform a system reset.
120-
* When 1, thee system will reset the device when a reset is pending.
121-
*/
122-
SYSTEM_FLAG_RESET_ENABLED,
123-
124-
/**
125-
* A persistent flag that when set will cause the system to startup
126-
* in listening mode. The flag is automatically cleared on reboot.
127-
*/
128-
SYSTEM_FLAG_STARTUP_LISTEN_MODE,
129-
130-
/**
131-
* Enable/Disable use of serial1 during setup.
132-
*/
133-
SYSTEM_FLAG_WIFITESTER_OVER_SERIAL1,
134-
135-
/**
136-
* Enable/disable publishing of last reset info to the cloud.
137-
*/
138-
SYSTEM_FLAG_PUBLISH_RESET_INFO,
139-
140-
/**
141-
* When 0, the system doesn't reset network connection on cloud connection errors.
142-
* When 1 (default), the system resets network connection after a number of failed attempts to
143-
* connect to the cloud.
144-
*/
145-
SYSTEM_FLAG_RESET_NETWORK_ON_CLOUD_ERRORS,
146-
147-
/**
148-
* Enable/Disable runtime power management peripheral detection
149-
*/
150-
SYSTEM_FLAG_PM_DETECTION,
151-
152-
/**
153-
* When 0, OTA updates are only applied when SYSTEM_FLAG_OTA_UPDATE_ENABLED is set.
154-
* When 1, OTA updates are applied irrespective of the value of SYSTEM_FLAG_OTA_UPDATE_ENABLED.
155-
*/
156-
SYSTEM_FLAG_OTA_UPDATE_FORCED,
157-
158-
SYSTEM_FLAG_MAX
159-
160-
} system_flag_t;
161-
16297
#ifdef __cplusplus
16398

16499
#include "enumflags.h"

0 commit comments

Comments
 (0)