goToMain / libosdp

Implementation of IEC 60839-11-5 OSDP (Open Supervised Device Protocol); provides a C library with support for C++, Rust and Python3
https://libosdp.sidcha.dev
Apache License 2.0
128 stars 69 forks source link

porting libOSDP to STM32 without queues? #132

Closed MatTab3335 closed 9 months ago

MatTab3335 commented 9 months ago

I want to run OSDP lib on STM32, but without using any RTOS, so the problem is in queues, is it possible somehow run this lib without queue.h ?

sidcha commented 9 months ago

I don't see the connection, sorry; queue.h depends on list.h and both list.c and queue.c don't impose any OS specific requirements so you should be able to compile it to bare-metal. Can you please elaborate how queue.h is causing issues for you?

MatTab3335 commented 9 months ago

I'm sorry, instead of "slab", I wrote "queue". So the problem is to use slab functions and structures, I can't find anything similar to use with stm32

sidcha commented 9 months ago

Slab also does not depend on anything OS specific.

Most of the modules in c-utils repo is written to be OS independent. All you have to do is build a subset of that repository for STM32 and then build libosdp along with it.

MatTab3335 commented 9 months ago

Ok, thank you, I'll try

sidcha commented 9 months ago

I will close this issue for now, please keep the conversation going if need be.

vk2tds commented 7 months ago

I am currently running the library on an STM32F411 under Arduino, and it is working fairly well. https://github.com/vk2tds/libosdp_arduino