Speed regression in the mbed library between revisions 31 and 32 The frequency of the latch() call, tested on the LPC1768: r31: 536 kHz r32: 500 kHz r35: 500 kHz

Dependencies:   mbed

main.cpp

Committer:
allanw
Date:
2012-01-16
Revision:
1:14c0250ab954
Parent:
0:d308aef39cfa

File content as of revision 1:14c0250ab954:

#include "mbed.h"

SPI spi(p11, p12, p13);
DigitalOut latchpin(p10);

int main() {
    spi.format(8, 0);
    spi.frequency(16 * 1000 * 1000);
    
    latchpin = 0;
    while (1) {
        latchpin = 1;
        spi.write(0);
        latchpin = 0;
    }
}