Ignore:
Timestamp:
Dec 15, 2009, 3:20:47 PM (11 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, 5, master
Children:
85893bc
Parents:
9db18dd
Message:

add support for LPC32xx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/lpc24xx/rtc/rtc-config.c

    r9db18dd rc468f18b  
    2626#define LPC24XX_RTC_NUMBER 1
    2727
    28 static void lpc24xx_rtc_initialize( int minor)
     28static void lpc24xx_rtc_initialize(int minor)
    2929{
    3030  /* Enable module power */
    31   lpc24xx_module_enable( LPC24XX_MODULE_RTC, 0, LPC24XX_MODULE_PCLK_DEFAULT);
     31  lpc24xx_module_enable(LPC24XX_MODULE_RTC, LPC24XX_MODULE_PCLK_DEFAULT);
    3232
    3333  /* Enable the RTC and use external clock */
     
    4343}
    4444
    45 static int lpc24xx_rtc_get_time( int minor, rtems_time_of_day *tod)
     45static int lpc24xx_rtc_get_time(int minor, rtems_time_of_day *tod)
    4646{
    4747  tod->ticks = 0;
     
    5656}
    5757
    58 static int lpc24xx_rtc_set_time( int minor, const rtems_time_of_day *tod)
     58static int lpc24xx_rtc_set_time(int minor, const rtems_time_of_day *tod)
    5959{
    6060  RTC_SEC = tod->second;
     
    6868}
    6969
    70 static bool lpc24xx_rtc_probe( int minor)
     70static bool lpc24xx_rtc_probe(int minor)
    7171{
    7272  return true;
Note: See TracChangeset for help on using the changeset viewer.