Skip to content

Commit 2a73434

Browse files
committed
drivers/sensors:Revert "drivers/sensors: add a new sensor type ENG"
Fix formatting errors Signed-off-by: likun17 <likun17@xiaomi.com>
1 parent 36e5752 commit 2a73434

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

drivers/sensors/sensor.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ static const struct sensor_meta_s g_sensor_meta[] =
218218
{sizeof(struct sensor_pm25), "pm25"},
219219
{sizeof(struct sensor_pm10), "pm10"},
220220
{sizeof(struct sensor_uv), "uv"},
221-
{sizeof(struct sensor_eng), "eng"},
222221
};
223222

224223
static const struct file_operations g_sensor_fops =

include/nuttx/uorb.h

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@
475475
/* GNSS Geofence */
476476

477477
#define SENSOR_TYPE_GNSS_GEOFENCE 52
478+
478479
/* Velocity Sensor
479480
* A sensor of this type measures the velocity as it is moving.
480481
* The default unit velocity is meter by seconds m/s (SI).
@@ -510,20 +511,11 @@
510511

511512
#define SENSOR_TYPE_ULTRAVIOLET 57
512513

513-
/* ENG (Electroneurography)
514-
* A sensor of this type measures the electrical activity of peripheral
515-
* nerves. This neural electrical signal, generated by nerve impulses
516-
* traveling through axons and captured by electrodes, provides valuable
517-
* information about nervous system and muscle-nerve communication.
518-
*/
519-
520-
#define SENSOR_TYPE_ENG 58
521-
522514
/* The total number of sensor
523515
* please increase it if you added a new sensor type!
524516
*/
525517

526-
#define SENSOR_TYPE_COUNT 59
518+
#define SENSOR_TYPE_COUNT 58
527519

528520
/* The additional sensor open flags */
529521

@@ -910,13 +902,6 @@ struct sensor_cap /* Type: Capacitance */
910902
int32_t rawdata[4]; /* in SI units pF */
911903
};
912904

913-
struct sensor_eng /* Type: ENG */
914-
{
915-
uint64_t timestamp; /* Unit is microseconds */
916-
float voltage[4]; /* Voltage unit in mV */
917-
uint32_t stat; /* Status. bit3:0 - value 3:0 is valid or not */
918-
};
919-
920905
struct sensor_gnss /* Type: GNSS */
921906
{
922907
uint64_t timestamp; /* Time since system start, Units is microseconds */

0 commit comments

Comments
 (0)