Acendendo os LEDs da iMX31PDK

volatile unsigned char *led = ((volatile unsigned char *)0xB6020000);
*led = 0xFF;

Para acender o LED usando assembly:

    /* Configure CPLD early to get LEDs working to debug */
    ldr r0, =0xB8000050
    ldr r1, #0x0000D843
    str r1, [r0]
    ldr r1, #0x22252521
    str r1, [r0, #0x04]
    ldr r1, #0x22220A00
    str r1, [r0, #0x08]

    /*Power ON all LEDs*/
    ldr r0, =0xB6020000
    mov r1, #0xFF
    strb r1, [r0]
About these ads

2 thoughts on “Acendendo os LEDs da iMX31PDK

  1. Ola Franz,
    sim, estou trabalhando com o iMX31PDK. E’ uma plaquinha muito legal, mas infelizmente e’ bem carinha.

    Um abraco,

    Alan

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s