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) { }}
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).