Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util/atomic.h not found #85

Open
Styne13 opened this issue May 2, 2024 · 4 comments
Open

util/atomic.h not found #85

Styne13 opened this issue May 2, 2024 · 4 comments

Comments

@Styne13
Copy link

Styne13 commented May 2, 2024

Hi,

thank you for the great work on this project.

I try to use ch32v003 with the radiohead library to connect to ASK or Lora RF modules. If I try to compile the code, I get util/atomic.h not found. I had a look and it is normally located in the avr code for original arduino, so I would guess the core ch32 shall adapt it somehow to be compatible.

@Styne13 Styne13 changed the title tools/atomic.h not found util/atomic.h not found May 2, 2024
@maxint-rd
Copy link
Contributor

Have you tried this release? It contains a folder named RHutil, which also contains atomic.h.

@Styne13
Copy link
Author

Styne13 commented May 7, 2024

Thank you for your advice. 👍
I will try out this fork of the library.

@Styne13
Copy link
Author

Styne13 commented May 7, 2024

Ok, looked into the code of the library and RHutil/atomic.h is only used in the case of arm
If I try to include it in else path, other things like ATOMIC_BLOCK are not declared.

@TianpeiLee
Copy link
Collaborator

@Styne13 Can you provide the function declaration for the atomic operation you need so that I can know what functions I need to provide? The AMO extension of RISC-V provides the following instructions:
amo.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants