uLisp Ethernet support for Wiznet W5500 / RP2350


#1

Hello,

I hope you are doing well.

Could you please provide some guidance on the general activities involved in adding Ethernet support to uLisp?

I found a quite interesting hardware based on the RP2350 + WIZNET5K (for Ethernet). with arduino library support.

Based on this internal docs you should be able to add your own functions, however not sure if adding a new library will required any extra steps to the point that you will be able to define new functions.

Finally, could the Wi-Fi implementation serve as a good starting point?

#elif defined(ARDUINO_RASPBERRY_PI_PICO_W)
_ #define WORKSPACESIZE (15536-SDSIZE) /* Objects (8*bytes) /_
_ #define CODESIZE 256 /
Bytes */_
_ #define STACKDIFF 480_
_ #define LITTLEFS_
_ #include <WiFi.h>_
_ #include <LittleFS.h>_
_ #define FS_FILE_WRITE “w”_
_ #define FS_FILE_READ “r”_
_ #define CPU_RP2040_

Best Regards


#2

The best way to add this would be as a uLisp Extension; see:

Adding your own functions

Another board it would be nice to support is the ESP32-P4 Function EV Board; see

ESP32-P4 Function EV Board


#3

Hello David,

Thank you for your feedback. Ok, it seems I’m more or less starting to understand. Essentially, if a library is available in the associated Arduino core, there should be a way to expose or recode it for uLisp.

The ESP32-P4 is using an IP101GR so it is probably already supported by the arduino-esp32.

On the other hand I just realized that circuit python currently supporting the RP2350 based IRIV IO Controller is also being migrated to Zephyr RTOS. My guess is that you can simply access all (or most) of the existing libraries / drivers there.

Migrating uLisp in this way will probably require a complete rewrite, correct? I mean, there is no way to simply adapt the current uLisp code to run within Zephyr RTOS :-D

Best Regards


#4

Yes, I was referring to supporting the functions in the Arduino Ethernet library in a parallel way to the way uLisp supports Wi-Fi.


#5

Hello,

Ok, let me see if I can get an IRIV IO controller.

Thanks a lot for your guidance.

Best regards,


#6

It looks like the Cytron IRIV IO Controller is supported by the Earle Philhower RP2040/RP2350 Arduino Core, but I can’t find the specific IR4.0 model you’ve linked to. This would be a prerequisite to getting uLisp running on the board.


#7

Hello David,

Thank you for checking that. I will take that validation into account for future reference.

Best Regards