Changeset 79f093b in rtems for c/src/libchip


Ignore:
Timestamp:
Oct 9, 2014, 3:01:34 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
78a38fa2
Parents:
a3ae261a
git-author:
Joel Sherrill <joel.sherrill@…> (10/09/14 15:01:34)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/09/14 15:11:58)
Message:

libchip/rtc/mc146818a*: Fix prototypes to use uintptr_t and fix set but unused warning

Location:
c/src/libchip/rtc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/rtc/mc146818a.h

    ra3ae261a r79f093b  
    5555 */
    5656uint32_t mc146818a_get_register(
    57   uint32_t  ulCtrlPort,
    58   uint8_t   ucRegNum
     57  uintptr_t  ulCtrlPort,
     58  uint8_t    ucRegNum
    5959);
    6060
    6161void  mc146818a_set_register(
    62   uint32_t  ulCtrlPort,
    63   uint8_t   ucRegNum,
    64   uint32_t  ucData
     62  uintptr_t  ulCtrlPort,
     63  uint8_t    ucRegNum,
     64  uint32_t   ucData
    6565);
    6666
  • c/src/libchip/rtc/mc146818a_ioreg.c

    ra3ae261a r79f093b  
    66 *    + registers are accessed as bytes
    77 *    + registers are only byte-aligned (no address gaps)
    8  *
     8 */
     9
     10/*
    911 *  COPYRIGHT (c) 1989-1997.
    1012 *  On-Line Applications Research Corporation (OAR).
     
    1719#include <rtems.h>
    1820#include <bsp.h>
     21#include <libchip/rtc.h>
     22#include <libchip/mc146818a.h>
    1923
    2024/*
     
    2428#if defined(inport_byte)
    2529uint32_t mc146818a_get_register(
    26   uint32_t  ulCtrlPort,
    27   uint8_t   ucRegNum
     30  uintptr_t  ulCtrlPort,
     31  uint8_t    ucRegNum
    2832)
    2933{
    3034  uint8_t   val;
    3135  uint8_t   tmp;
     36
     37  (void) tmp;                 /* eliminate warning for set but not used */
    3238
    3339  outport_byte( ulCtrlPort, ucRegNum );
     
    3945
    4046void  mc146818a_set_register(
    41   uint32_t  ulCtrlPort,
    42   uint8_t   ucRegNum,
    43   uint32_t  ucData
     47  uintptr_t  ulCtrlPort,
     48  uint8_t    ucRegNum,
     49  uint32_t   ucData
    4450)
    4551{
Note: See TracChangeset for help on using the changeset viewer.