Serial api - clock, SPImaster test

pull/11/head
0xc0170 2013-06-28 19:59:15 +02:00
parent 5d169ce654
commit 4c4d15f323
2 changed files with 5 additions and 2 deletions

View File

@ -24,7 +24,7 @@
#include "pinmap.h"
#include "error.h"
#define UART_CLOCK_HZ 47972352u
#define UART_CLOCK_HZ 23986176u
static const PinMap PinMap_UART_TX[] = {
{PTB1, UART_0, 2},

View File

@ -4,6 +4,9 @@
#if defined(TARGET_KL25Z)
SPI spi(PTD2, PTD3, PTD1); // mosi, miso, sclk
DigitalOut cs(PTA13);
#elif defined(TARGET_KL05Z)
SPI spi(PTA7, PTA6, PTB0); // mosi, miso, sclk
DigitalOut cs(PTB1);
#else
SPI spi(p5, p6, p7); // mosi, miso, sclk
DigitalOut cs(p8);