cheers that seems to have fixed that problem - however a new problem has appeared. in my rng_task file after setting up the IO commands (open, close, read, write and ioctl) and the install command it hits the following line and complains about an undefined indentifier 'rng_range_struct' : (highlighted in red where the error occurs)
_mqx_int _io_rng_open(FILE_PTR fd_ptr, char_ptr open_name_ptr, char_ptr flags)
{
VMCF5225_STRUCT_PTR reg_ptr = (VMCF5225_STRUCT_PTR)BSP_IPSBAR;
rng_range_struct.rng_max_value = 0xFFFFFFFF;
rng_range_struct.rng_min_value = 0;
reg_ptr->RNG.RNGCR |= MCF5225_RNG_RNGCR_GO;
return(IO_OK);
} i have added the lines to the ioctl.h to define the IO type :
#define IO_TYPE_PCCARD 0x09
#define IO_TYPE_PCFLASH 0x0A
#define IO_TYPE_PIPE 0x0B
#define IO_TYPE_QSPI 0x0C
#define IO_TYPE_SERIAL 0x0D
#define IO_TYPE_SPI 0x0E
#define IO_TYPE_USBMFS 0x0F
#define IO_TYPE_TFS 0x10
#define IO_TYPE_RNG 0x11
however it hasnt turned the pale blue that the other define device types have so i have a feeling that this is what is causing the undefined indentifier error. So have i missed adding something in the ioctl.h file.
cheers
Message Edited by private_hell on 2009-10-28 10:57 PM
Message Edited by private_hell on 2009-10-28 10:58 PM