OpenCores
URL https://opencores.org/ocsvn/sockit_owm/sockit_owm/trunk

Subversion Repositories sockit_owm

[/] [sockit_owm/] [trunk/] [HAL/] [src/] [sockit_owm.c] - Diff between revs 3 and 5

Show entire file | Details | Blame | View Log

Rev 3 Rev 5
Line 30... Line 30...
* This agreement shall be governed in all respects by the laws of the State   *
* This agreement shall be governed in all respects by the laws of the State   *
* of California and by the laws of the United States of America.              *
* of California and by the laws of the United States of America.              *
*                                                                             *
*                                                                             *
******************************************************************************/
******************************************************************************/
 
 
 
// this header would be used if a proper file handler could be assidned,
#include <fcntl.h>
// but due to global variables in the public domain kit, this is not possible
 
//#include <fcntl.h>
 
 
#include "sys/alt_dev.h"
#include "sys/alt_dev.h"
#include "sys/alt_irq.h"
#include "sys/alt_irq.h"
#include "sys/ioctl.h"
#include "sys/ioctl.h"
#include "sys/alt_errno.h"
#include "sys/alt_errno.h"
Line 81... Line 82...
#else
#else
static void sockit_owm_irq(void * state, alt_u32 id)
static void sockit_owm_irq(void * state, alt_u32 id)
#endif
#endif
{
{
  // clear onewire interrupts
  // clear onewire interrupts
  IORD_SOCKIT_OWM (sockit_owm.base);
  IORD_SOCKIT_OWM_CTL (sockit_owm.base);
  // set the flag indicating a completed 1-wire cycle
  // set the flag indicating a completed 1-wire cycle
  ALT_FLAG_POST (sockit_owm.irq, 0x1, OS_FLAG_SET);
  ALT_FLAG_POST (sockit_owm.irq, 0x1, OS_FLAG_SET);
}
}
#else
#else
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.