Part Number: 66AK2H12
Tool/software: TI-RTOS
XDCtools 3.32, SYS/BIOS 6.46, CCS 7.4, PDK 4.0.7, NDK 2.25
I am trying to write a bsd socket application to run on ARM0. I read in the NDK API (spru524j) in the section on BSD that I should only include files in <NDK_install_dir>/packages/ti/ndk/inc/bsd and to be sure and not include files in <NDK_install_dir>/packages/ti/ndk/inc/.
"The file containing BSD-style code can include header files found in the ti/ndk/inc/bsd directory tree (for
example, sys/socket.h) and should not need to include any NDK header file found in ti/ndk/inc and its
subdirectories other than the /bsd subdirectory."
To use the socket interface I need to open the file system with fdOpenSession() which takes a HANDLE to the current task. HANDLE is not defined in <NDK_install_dir>/packages/ti/ndk/inc/bsd. Further, the examples show calling TaskSelf() to get the HANDLE but TaskSelf() is in <NDK_install_dir>/packages\ti\ndk\inc\os\osif.h which I'm not suppose to include.
So how do I get the handle to my task running the BSD socket code and where do I find HANDLE defined?
Thanks,
Mike