mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-06 16:56:31 +00:00
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:
parent
8b43f9f9ca
commit
e04333c986
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue