Part Number: TMS320F28335 Tool/software: TI C/C++ Compiler Hello, Hello, I created a class for writing and reading to an FPGA. One of the functions is given below, which is contained in a header file with the class declaration. The compiler is not inlining the function. I also tried adding the #pragma FUNC_ALWAYS_INLINE before each of the member function declarations, but that also didn't cause the compiler to inline the functions. What am I doing wrong? Thanks, Stephen #pragma FUNC_ALWAYS_INLINE __inline FPGADATA Fpga::tReadValue(FPGA_ADDRESS tAddress) { FPGADATA tReturnValue; DINT; DRTM; tReturnValue = *(FPGADATA*)(FPGA_BASE_ADDRESS + tAddress); EINT; ERTM; return tReturnValue; }
↧