tlc is telling me that I attempt to call a non-function value
Show older comments
Hey guys,
I'm trying to call an own written tlc function (GpioPlatformInclusions()) from another tlc file. TLC is telling me that I "attempt to call a non-function value: NULL" when trying to call this function. Here is my source code
Function in file to be included :
%function GpioPlatformInclusions() Output
#include "LPC1769_GPIO/LPC1769_GPIO.h"
#include "LPC1769_GPIO/LPC1769_GPIO_PIN.h"
%endfunction
Code to include the file (path is correctly build via an own matlab function:
%function includePlatformgpio() void
%assign platform= mbed_getPlatform()
%assign platformroot = FEVAL("%<platform>_root")
%include "%<platformroot>/target/gpio/%<platform>_gpio.tlc"
%return
%endfunction
Location Where Function gets called :
%function GpioInclusions() Output
%<includePlatformgpio()>
#include "MDD_GPIO/MDD_GPIO.h"
#include "MDD_GPIO/MDD_GPIO_PORT.h"
#include "MDD_GPIO/MDD_GPIO_PIN.h"
%<GpioPlatformInclusions()>
%endfunction
Thank you for your help !
Answers (0)
Categories
Find more on ARM Cortex-A Processors in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!