Hallo,
Ich stehe grade auf dem Schlauch... möchte einem Register einen Wert
zuweisen.
dazu habe ich folgenden Code:
1 | #include "sam.h"
|
2 |
|
3 |
|
4 | int main(void)
|
5 | {
|
6 | /* Initialize the SAM system */
|
7 | SystemInit();
|
8 | PIO_PER_P2 = 0x04000000; //PIO-Enable
|
9 | PIO_OER_P2 = 0x04000000; //Output-Enable
|
10 | PIO_SODR_P2 = 0x04000000; //Set Output-Data
|
11 | PIO_OWER_P2 = 0x04000000; //Output-Write-Enable
|
12 | /* Replace with your application code */
|
13 | while (1)
|
14 | {
|
15 | PIO_SODR_P2 = 0x04000000; //Set Output-Data
|
16 | PIO_CODR_P2 = 0x04000000; //Clear Output-Data-Reg
|
17 | }
|
18 | }
|
Problem:
lvalue required as left operand of assignment
--> Bei allen zuweisungen...
Ziel wäre es eine am Pin PortB_26 --> Arduino-Pin22
hängende LED zu schalten...
Stehe grade echt auf dem Schlauch, wäre super wenn mich jemand über den
scheinbar offensichtlichen Fehler aufklären könnte ;)