Open ClementBonnetPACotte opened 2 months ago
Hi @ClementBonnetPACotte! We appreciate you submitting your first issue for our open-source project. 🌟
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙
Is your enhancement proposal related to a problem? Please describe. GPIO emulation on native sim always return success of lot of functions. This forbid to create tests linked to GPIO errors.
Describe the solution you'd like The GPIO simulator should be able to generate error like the reals drivers. For example, the function
gpio_emul_port_set_masked_raw
alway return 0, it should return the error produced bygpio_emul_input_set_masked_int
.I'm not sure why this limitation was put in place. If someone can provide some insight, I may be able to code the solution myself.
Describe alternatives you've considered I try to wrap the driver functions using GCC but the usage of static and inline function blocks this option.