One of the fundamental issues in driver design is deciding how to map to the peripheral registers. Over the years there have been many different methods that have been used such as setting up ...
Pointer arrays are a useful tool for mapping peripheral registers to a driver. There are many advantages to using pointer arrays such as simplified initializations and the ability to generate a ...
式の中では、配列は先頭要素へのポインタに読み替えられる という基本ルールがある。 ただし、例外が3つ存在する。 char a[10]; char *p1 = a; // OK(先頭要素へのポインタ) char (*p2)[10] = &a; // OK(配列全体へのポインタ) 👉 その結果、変更禁止になっている。