driver/sensor: rename /dev/sensor -> /dev/uorb

because this directory contains all topics by uorb using, not just sensors.

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2022-08-08 13:49:41 +08:00 committed by Xiang Xiao
parent 8b43f9f9ca
commit e04333c986
2 changed files with 4 additions and 4 deletions

View File

@ -76,7 +76,7 @@ typedef uint64_t orb_abstime;
* Pre-processor Definitions
****************************************************************************/
#define ORB_SENSOR_PATH "/dev/sensor/"
#define ORB_SENSOR_PATH "/dev/uorb/"
#define ORB_USENSOR_PATH "/dev/usensor"
#define ORB_PATH_MAX (NAME_MAX + 16)
@ -210,7 +210,7 @@ int orb_close(int fd);
*
* Description:
* This performs the initial advertisement of a topic; it creates the topic
* node in /dev/sensor and publishes the initial data.
* node in /dev/uorb and publishes the initial data.
*
* Input Parameters:
* meta The uORB metadata (usually from the ORB_ID() macro)

View File

@ -37,7 +37,7 @@
****************************************************************************/
#define ARRAYSIZE(a) (sizeof(a) / sizeof(a)[0])
#define DEVNAME_FMT "/dev/sensor/sensor_%s"
#define DEVNAME_FMT "/dev/uorb/sensor_%s"
#define DEVNAME_MAX 64
/****************************************************************************
@ -214,7 +214,7 @@ static void usage(void)
printf("\t default: 0\n");
printf(" Commands:\n");
printf("\t<sensor_node_name> ex, accel0(/dev/sensor/accel0)\n");
printf("\t<sensor_node_name> ex, accel0(/dev/uorb/sensor_accel0)\n");
}
static void exit_handler(int signo)