Documentation of Arduino 33 Iot registers

I'm trying to modify Arduino 33 IoT registers. Do you know any documentation avaiable that is explaining macros and pointers' types?
Thank you!

Welcome to the forum.

I would recommend to use the source code together with the device datasheets. These are the ultimate documentation.

If you can provide us a few more details about what you would like to do and ask some more specific question maybe we can provide some more specific answers.

the SAMD21G datasheet

Hi!
Thank you for your answer. My problem is that I can not find the source code. Where can I find it ? Also I want to ask you: is there a way to understand macros from the datasheet?
Thank you!

The starting point for the source code depends on your system. In Windows it is in (starting at your Home folder) AppData\Local\Arduino15\packages\arduino. Note that AppData is a hidden folder. On a Mac the files can be found in ~/Library/Arduino15/packages/arduino. Library is often hidden. In Linux it’s ~/.arduino15/packages/arduino. Of course .arduino15 is hidden because it starts with a period character.

From there the register definitions can be found at tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/samd21/include

Macros related to the peripherals should have some relation to the description in the datasheet, ether addresses, offsets, values to write or read ...

You can always just play with macros you do not understand. Many are just used to generate some values. Write them to some variables and print them. If there is one that you cannot figure out by yourself, provide the information in your post and ask.

Thank you for the advice! i was able to find all the files !

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.