* (ARM peripheral access)
Syntax
* variable
* constant
Description
The Cpointer syntax is used to give direct access to the ARM peripheral registers. Caution must be taken, for instance in interupts are altered, this will interfere with the operation of ARMbasic and your program.
Example
X=
$E0014018
*X =
1234
' set the ARM PWM0 match register
T = * $E001401C
' read the ARM PWM1 match register
*
$E0014020 = 4321 ' set the ARM PWM2 match
register
Differences from other BASICs
- No equivalent in Visual BASIC
- no direct equivalent in PBASIC, CONFIGPIN is a similar function