Make use of FAR storage class consistent

This commit is contained in:
Gregory Nutt 2017-02-27 07:54:21 -06:00
parent fa4b047d35
commit a7e34f3b97

View File

@ -71,7 +71,7 @@
struct dbgmem_s struct dbgmem_s
{ {
bool dm_write; /* true: perfrom write operation */ bool dm_write; /* true: perfrom write operation */
void *dm_addr; /* Address to access */ FAR void *dm_addr; /* Address to access */
uint32_t dm_value; /* Value to write */ uint32_t dm_value; /* Value to write */
unsigned int dm_count; /* The number of bytes to access */ unsigned int dm_count; /* The number of bytes to access */
}; };
@ -86,10 +86,10 @@ struct dbgmem_s
****************************************************************************/ ****************************************************************************/
#ifdef NSH_HAVE_MEMCMDS #ifdef NSH_HAVE_MEMCMDS
static int mem_parse(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv, static int mem_parse(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv,
struct dbgmem_s *mem) FAR struct dbgmem_s *mem)
{ {
char *pcvalue = strchr(argv[1], '='); FAR char *pcvalue = strchr(argv[1], '=');
unsigned long lvalue = 0; unsigned long lvalue = 0;
/* Check if we are writing a value */ /* Check if we are writing a value */
@ -142,10 +142,10 @@ static int mem_parse(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv,
****************************************************************************/ ****************************************************************************/
#ifndef CONFIG_NSH_DISABLE_MB #ifndef CONFIG_NSH_DISABLE_MB
int cmd_mb(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) int cmd_mb(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
{ {
struct dbgmem_s mem; struct dbgmem_s mem;
volatile uint8_t *ptr; FAR volatile uint8_t *ptr;
unsigned int i; unsigned int i;
int ret; int ret;
@ -196,10 +196,10 @@ int cmd_mb(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
****************************************************************************/ ****************************************************************************/
#ifndef CONFIG_NSH_DISABLE_MH #ifndef CONFIG_NSH_DISABLE_MH
int cmd_mh(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) int cmd_mh(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
{ {
struct dbgmem_s mem; struct dbgmem_s mem;
volatile uint16_t *ptr; FAR volatile uint16_t *ptr;
unsigned int i; unsigned int i;
int ret; int ret;
@ -252,10 +252,10 @@ int cmd_mh(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
****************************************************************************/ ****************************************************************************/
#ifndef CONFIG_NSH_DISABLE_MW #ifndef CONFIG_NSH_DISABLE_MW
int cmd_mw(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) int cmd_mw(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
{ {
struct dbgmem_s mem; struct dbgmem_s mem;
volatile uint32_t *ptr; FAR volatile uint32_t *ptr;
unsigned int i; unsigned int i;
int ret; int ret;
@ -297,8 +297,8 @@ int cmd_mw(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
* Name: nsh_dumpbuffer * Name: nsh_dumpbuffer
****************************************************************************/ ****************************************************************************/
void nsh_dumpbuffer(FAR struct nsh_vtbl_s *vtbl, const char *msg, void nsh_dumpbuffer(FAR struct nsh_vtbl_s *vtbl, FAR const char *msg,
const uint8_t *buffer, ssize_t nbytes) FAR const uint8_t *buffer, ssize_t nbytes)
{ {
char line[128]; char line[128];
int ch; int ch;
@ -340,7 +340,7 @@ void nsh_dumpbuffer(FAR struct nsh_vtbl_s *vtbl, const char *msg,
****************************************************************************/ ****************************************************************************/
#ifndef CONFIG_NSH_DISABLE_XD #ifndef CONFIG_NSH_DISABLE_XD
int cmd_xd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) int cmd_xd(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
{ {
FAR char *addr; FAR char *addr;
FAR char *endptr; FAR char *endptr;
@ -369,7 +369,7 @@ int cmd_xd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
#if CONFIG_NFILE_DESCRIPTORS > 0 #if CONFIG_NFILE_DESCRIPTORS > 0
#ifndef CONFIG_NSH_DISABLE_HEXDUMP #ifndef CONFIG_NSH_DISABLE_HEXDUMP
int cmd_hexdump(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) int cmd_hexdump(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
{ {
FAR uint8_t *buffer; FAR uint8_t *buffer;
char msg[32]; char msg[32];