Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions include/libc/libc_signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern "C" {
NOTE: P1003.1c/D10, p. 34 adds sigev_notify_function and
sigev_notify_attributes to the sigevent structure. */

union sigval
union sigval
{
int sival_int; /* Integer signal value */
void *sival_ptr; /* Pointer signal value */
Expand Down Expand Up @@ -107,7 +107,7 @@ typedef unsigned long sigset_t;

typedef void (*_sig_func_ptr)(int);

struct sigaction
struct sigaction
{
_sig_func_ptr sa_handler;
sigset_t sa_mask;
Expand Down Expand Up @@ -163,7 +163,7 @@ typedef unsigned long sigset_t;

typedef void (*_sig_func_ptr)(int);

struct sigaction
struct sigaction
{
_sig_func_ptr sa_handler;
sigset_t sa_mask;
Expand Down
2 changes: 1 addition & 1 deletion include/rtdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ typedef siginfo_t rt_siginfo_t;

/**
* CPUs definitions
*
*
*/
struct rt_cpu
{
Expand Down
2 changes: 1 addition & 1 deletion include/rthw.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extern "C" {
#endif

#ifndef RT_CPU_CACHE_LINE_SZ
#define RT_CPU_CACHE_LINE_SZ 32
#define RT_CPU_CACHE_LINE_SZ 32
#endif

enum RT_HW_CACHE_OPS
Expand Down
2 changes: 1 addition & 1 deletion src/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ static rt_tick_t rt_tick = 0;
#endif

/**
* This function will init system tick and set it to zero.
* This function will initialize system tick and set it to zero.
* @ingroup SystemInit
*
* @deprecated since 1.1.0, this function does not need to be invoked
Expand Down
16 changes: 8 additions & 8 deletions src/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ RTM_EXPORT(rt_device_unregister);
* @return the error code, RT_EOK on successfully.
*
* @deprecated since 1.2.x, this function is not needed because the initialization
* of a device is performed when applicaiton opens it.
* of a device is performed when application opens it.
*/
rt_err_t rt_device_init_all(void)
{
Expand Down Expand Up @@ -162,7 +162,7 @@ rt_device_t rt_device_create(int type, int attach_size)

size = RT_ALIGN(sizeof(struct rt_device), RT_ALIGN_SIZE);
attach_size = RT_ALIGN(attach_size, RT_ALIGN_SIZE);
/* use the totoal size */
/* use the total size */
size += attach_size;

device = (rt_device_t)rt_malloc(size);
Expand Down Expand Up @@ -208,7 +208,7 @@ rt_err_t rt_device_init(rt_device_t dev)

RT_ASSERT(dev != RT_NULL);

/* get device init handler */
/* get device_init handler */
if (device_init != RT_NULL)
{
if (!(dev->flag & RT_DEVICE_FLAG_ACTIVATED))
Expand Down Expand Up @@ -269,7 +269,7 @@ rt_err_t rt_device_open(rt_device_t dev, rt_uint16_t oflag)
return -RT_EBUSY;
}

/* call device open interface */
/* call device_open interface */
if (device_open != RT_NULL)
{
result = device_open(dev, oflag);
Expand Down Expand Up @@ -317,7 +317,7 @@ rt_err_t rt_device_close(rt_device_t dev)
if (dev->ref_count != 0)
return RT_EOK;

/* call device close interface */
/* call device_close interface */
if (device_close != RT_NULL)
{
result = device_close(dev);
Expand Down Expand Up @@ -357,7 +357,7 @@ rt_size_t rt_device_read(rt_device_t dev,
return 0;
}

/* call device read interface */
/* call device_read interface */
if (device_read != RT_NULL)
{
return device_read(dev, pos, buffer, size);
Expand Down Expand Up @@ -396,7 +396,7 @@ rt_size_t rt_device_write(rt_device_t dev,
return 0;
}

/* call device write interface */
/* call device_write interface */
if (device_write != RT_NULL)
{
return device_write(dev, pos, buffer, size);
Expand All @@ -423,7 +423,7 @@ rt_err_t rt_device_control(rt_device_t dev, int cmd, void *arg)
RT_ASSERT(dev != RT_NULL);
RT_ASSERT(rt_object_get_type(&dev->parent) == RT_Object_Class_Device);

/* call device write interface */
/* call device_write interface */
if (device_control != RT_NULL)
{
return device_control(dev, cmd, arg);
Expand Down
Loading