LPC54628 Writing directly to registers

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC54628 Writing directly to registers

699件の閲覧回数
aswinprabhu
Contributor III

Hello,

I'm trying to write a sample code to drive an LED using the output pin of LPC54628 using uVision 5.28. Saw some examples in SDK 2.7.0 (gpio_led). However, I prefer to write to registers directly instead of using pin_mux files.

 

#include "LPC54628.h"

 

int main(void){

IOCON_PIO29 = 0x01;

 while(1){

}

}

I tried writing to IOCON register just to see whether the general idea/syntax is ok or not. It throws an error stating 'identifier "IOCON_PIO029" is undefined'.

 

Can someone tell which files am I missing?

Thanks in advance!

ラベル(1)
タグ(2)
0 件の賞賛
返信
0 返答(返信)