Added exporting support

pull/2499/head
Yoshihiro TSUBOI 2016-08-17 10:58:48 +09:00 committed by 0xc0170
parent 7b02d5396c
commit 0b195e8594
3 changed files with 20 additions and 0 deletions

View File

@ -1536,6 +1536,7 @@
"TY51822R3": {
"inherits": ["MCU_NRF51_32K_UNIFIED"],
"macros_add": ["TARGET_NRF_32MHZ_XTAL"],
"progen": {"target": "ty51822r3"},
"device_has": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPI_ASYNCH", "SPISLAVE"],
"detect_code": ["1019"],
"release_versions": ["2", "5"]

View File

@ -0,0 +1,18 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_all %}
all: $(PROJECT).bin $(PROJECT)-combined.hex size
{% endblock %}
{% block additional_variables %}
SOFTDEVICE = {% for f in hex_files %}{{f}} {% endfor %}
{% endblock %}
{% block additional_executables %}
SREC_CAT = srec_cat
{% endblock %}
{% block additional_targets %}
$(PROJECT)-combined.hex: $(PROJECT).hex
$(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel -o $(PROJECT)-combined.hex -intel --line-length=44
{% endblock %}

View File

@ -58,6 +58,7 @@ class GccArm(Exporter):
'ARCH_PRO',
'NRF51822',
'HRM1017',
'TY51822R3',
'RBLAB_NRF51822',
'RBLAB_BLENANO',
'LPC2368',