Hello, I try to coding : GPIO Driver but get and error : no member name rcgcpio in sysctl_type any body can help my problem..
//PF4 GPIO SW1//PF0 GPIO SW2//PF1 GPIO RGB LED (Red)//PF2 GPIO RGB LED (Blue)//PF3 GPIO RGD LED (Green)
#include "TM4C123.h" // Device header#include <stdint.h>
int main(void){ SYSCTL->RCGCPIO |= 0x20; // OB 0010 0000 : Enable Clock access to PORTA GPIOF->DIR |=0x02; // 0000 0010 : set RED LED as output GPIOF->DEN |=0x02; // Set Pin1 digital GPIOF->DATA |=0x02; // Set Pin1 high while(1) { }}
No doubt sysctl_type is a struct; you have the source code, so look at the definition - is there a member in that struct called "RCGCPIO" ... ?
How to properly post source code:
remember also that 'C' is case sensitive - so you can't go arbitrarily changing the case from 'SYSCTL_Type' to 'sysctl_type' or from 'RCGCPIO' to 'rcgcpio' (or whatever it should be).
Thx for the answer
You're welcome.
For the benefit of future readers who may have similar questions, what was the actual problem -and how did you solve it?