boardctl(): Add support for the BOARDIOC_SYMTAB command
This commit is contained in:
parent
16294a0963
commit
c2d10cf875
@ -45,6 +45,7 @@
|
||||
#include <errno.h>
|
||||
|
||||
#include <nuttx/board.h>
|
||||
#include <nuttx/binfmt/canned_symtab.h>
|
||||
|
||||
#ifdef CONFIG_LIB_BOARDCTL
|
||||
|
||||
@ -129,6 +130,26 @@ int boardctl(unsigned int cmd, uintptr_t arg)
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LIBC_SYMTAB
|
||||
/* CMD: BOARDIOC_SYMTAB
|
||||
* DESCRIPTION: Select a symbol table
|
||||
* ARG: A pointer to an instance of struct symtab_desc_s
|
||||
* (See include/nuttx/binfmt/canned_symtab.h).
|
||||
* CONFIGURATION: CONFIG_LIBC_SYMTAB
|
||||
* DEPENDENCIES: None
|
||||
*/
|
||||
|
||||
case BOARDIOC_SYMTAB:
|
||||
{
|
||||
FAR const struct symtab_desc_s *symdesc =
|
||||
(FAR const struct symtab_desc_s *)arg;
|
||||
|
||||
DEBUGASSERT(symdesc != NULL);
|
||||
ret = canned_symtab_select(symdesc);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_BOARDCTL_TSCTEST
|
||||
/* CMD: BOARDIOC_TSCTEST_SETUP
|
||||
* DESCRIPTION: Touchscreen controller test configuration
|
||||
|
Loading…
Reference in New Issue
Block a user