Fixed the nRF51-Dongle support

pull/578/merge
Mihail Stoyanov 2014-10-29 11:05:58 +02:00
parent 823e012597
commit fcd3ac25dc
3 changed files with 21 additions and 0 deletions

View File

@ -58,6 +58,7 @@ typedef enum {
p25 = 25,
p28 = 28,
p29 = 29,
p30 = 30,
P0_0 = p0,
P0_1 = p1,
@ -94,6 +95,7 @@ typedef enum {
LED1 = p21,
LED2 = p22,
LED3 = p23,
LED4 = p23,
LEDR = LED1,
LEDG = LED2,
LEDB = LED3,
@ -112,6 +114,16 @@ typedef enum {
SPI_PSELSS0 = p17,
SPI_PSELSCK0 = p18,
SPI_PSELMOSI1 = p15,
SPI_PSELMISO1 = p16,
SPI_PSELSS1 = p17,
SPI_PSELSCK1 = p18,
SPIS_PSELMOSI = p15,
SPIS_PSELMISO = p16,
SPIS_PSELSS = p17,
SPIS_PSELSCK = p18,
I2C_SDA0 = p19,
I2C_SCL0 = p20,

View File

@ -605,6 +605,14 @@ class NRF51_DK_OTA(Target):
self.supported_toolchains = ["ARM", "GCC_ARM"]
self.is_disk_virtual = True
class NRF51_DONGLE(NRF51822):
def __init__(self):
NRF51822.__init__(self)
self.extra_labels = ['NORDIC', 'MCU_NRF51822', 'MCU_NORDIC_32K']
self.macros = ['TARGET_NRF51822']
self.supported_form_factors = ["ARDUINO"]
class LPC1549(LPCTarget):
def __init__(self):
@ -778,6 +786,7 @@ TARGETS = [
LPC11U35_501(),
NRF51822(),
NRF51822_OTA(),
NRF51_DONGLE(),
UBLOX_C027(),
LPC1549(),
LPC11U68(),