-const char trbnet_version[] = "$Revision: 2.43 $";
+const char trbnet_version[] = "$Revision: 2.44 $";
#include <stdio.h>
#include <stdlib.h>
static uint32_t fifoToggleBit = 0;
-
static inline void write32_to_FPGA(uint16_t address, uint32_t value)
{
/* writes a 32bit word to a given address on a given device */
/* set address RW_WRITE */
fifoToggleBit ^= FIFO_TOGGLE_BIT;
writePC((address & 0x7fff) | fifoToggleBit);
- __asm("nop");
- __asm("nop");
- __asm("nop");
-
-
-
-
+ __asm__ __volatile__ ("nop");
+ __asm__ __volatile__ ("nop");
+ __asm__ __volatile__ ("nop");
/* write value */
fifoToggleBit ^= FIFO_TOGGLE_BIT;
/* set address RW_READ */
fifoToggleBit ^= FIFO_TOGGLE_BIT;
writePC((address | 0x8000) | fifoToggleBit);
- __asm("nop");
- __asm("nop");
- __asm("nop");
-
-
-
+ __asm__ __volatile__ ("nop");
+ __asm__ __volatile__ ("nop");
+ __asm__ __volatile__ ("nop");
/* read value */
fifoToggleBit ^= FIFO_TOGGLE_BIT;