RTEMS: cpukit/libmisc/shell/main_rtc.c File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Macros | Variables
main_rtc.c File Reference
`#include <stdio.h>`
`#include <inttypes.h>`
`#include <sys/types.h>`
`#include <sys/stat.h>`
`#include <fcntl.h>`
`#include <rtems.h>`
`#include <rtems/rtc.h>`
`#include <rtems/error.h>`
`#include <rtems/shell.h>`

## Macros
#define | RTEMS_RTC_SHELL_ERROR(fmt, ...)
#define | RTEMS_RTC_SHELL_ERROR_SC(sc, fmt, ...)

## Variables
struct rtems_shell_cmd_tt | rtems_shell_RTC_Command

## Detailed Description

Real time clock shell command.

## Macro Definition Documentation

## ◆ RTEMS_RTC_SHELL_ERROR

#define RTEMS_RTC_SHELL_ERROR | ( |  | fmt,
|  |  | ...
| ) |  |

Value:
do { \
printf( "error: " fmt "\n", ##__VA_ARGS__); \
return -1; \
} while (0)

## ◆ RTEMS_RTC_SHELL_ERROR_SC

#define RTEMS_RTC_SHELL_ERROR_SC | ( |  | sc,
|  |  | fmt,
|  |  | ...
| ) |  |

Value:
if ((sc) != RTEMS_SUCCESSFUL) { \
printf( "error: " fmt ": %s\n", ##__VA_ARGS__, rtems_status_text( sc)); \
return -1; \
}
rtems_status_text
const char * rtems_status_text(rtems_status_code code)
Returns a text for a status code.
Definition: statustext.c:60
RTEMS_SUCCESSFUL
@ RTEMS_SUCCESSFUL
Definition: status.h:47

## Variable Documentation

## ◆ rtems_shell_RTC_Command

struct rtems_shell_cmd_tt rtems_shell_RTC_Command

Initial value:
= {
.name = "rtc",
.usage = rtems_rtc_shell_usage,
.topic = "misc",
.command = rtems_rtc_shell_main,
.alias = NULL,
.next = NULL
}
NULL
#define NULL
Requests a GPIO pin group configuration.
Definition: bestcomm_api.h:77