Browse Source

soft_3rdpart:mailbox: update mailbox test application

update mailbox test application

Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
shanlong.li 9 months ago
parent
commit
4411108dc5
2 changed files with 2 additions and 2 deletions
  1. 2 2
      mailbox/read_mbox.c
  2. BIN
      mailbox/read_test

+ 2 - 2
mailbox/read_mbox.c

@@ -33,7 +33,7 @@ void init_signal(int fd)
 void * mailbox_user_read(void *arg)
 {
     char buf[8] = {0};
-    int fp = open("/sys/kernel/debug/soc:mailbox_client@0/message", O_RDWR);
+    int fp = open("/sys/kernel/debug/mailbox_client/message", O_RDWR);
 
     while(active) {
         read(fp, buf, sizeof(char));
@@ -48,7 +48,7 @@ int main(int argv,char **argc)
     int fd = 0, i = 0;
     char buf_tx[8];
 
-    fd = open("/sys/kernel/debug/soc:mailbox_client@0/message", O_RDWR);
+    fd = open("/sys/kernel/debug/mailbox_client/message", O_RDWR);
     if (fd < 0) {
         printf("open device error\n");
         return 1;

BIN
mailbox/read_test