LPC1549 blink darn you, blink!

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

LPC1549 blink darn you, blink!

623件の閲覧回数
DanielLongo
Contributor I

I have the LPC1549 on its own board and I am trying to get familiar with MCUExpresso by using the periph_blinky example. It builds and flashes successfully. Since it is not on the development board, I need to reassign the LED pins. It is clear in the systick.c file where the LED pins are set:

Board_LED_Set(0, false);

Board_LED_Set(1, true);

 

However, I can't find where the pins are defined. Where do I find where pins "0" and "1" are defined? I need to change them to PIO0_22 and PIO0_23.

Thanks!

0 件の賞賛
返信
1 返信

54件の閲覧回数
Harry_Zhang
NXP Employee
NXP Employee

Hi @DanielLongo 

You can find it in board.c

Harry_Zhang_0-1782879080472.png

 

The default pins "0" and "1" are 25 3

If you want to change them to PIO0_22 and PIO0_23.
You just need to change to
#define MAXLEDS 3
static const uint8_t ledpins[MAXLEDS] = {22, 23, 1};
static const uint8_t ledports[MAXLEDS] = {0, 0, 1};

Hope this will help you.

BR

Harry

0 件の賞賛
返信