mbed os with nrf51 internal bandgap enabled to read battery level

Dependents:   BLE_file_test BLE_Blink ExternalEncoder

Committer:
elessair
Date:
Sun Oct 23 15:10:02 2016 +0000
Revision:
0:f269e3021894
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
elessair 0:f269e3021894 1 {% extends "codered_cproject_cortexm3_common.tmpl" %}
elessair 0:f269e3021894 2
elessair 0:f269e3021894 3 {% block startup_file %}cr_startup_lpc176x.c{% endblock %}
elessair 0:f269e3021894 4
elessair 0:f269e3021894 5 {% block cpu_config %}<?xml version="1.0" encoding="UTF-8"?>
elessair 0:f269e3021894 6 <TargetConfig>
elessair 0:f269e3021894 7 <Properties property_0="" property_1="" property_2="" property_3="NXP" property_4="LPC1768" property_count="5" version="1"/>
elessair 0:f269e3021894 8 <infoList vendor="NXP">
elessair 0:f269e3021894 9 <info chip="LPC1768" match_id="0x00013f37,0x26013F37,0x26113F37" name="LPC1768" package="lpc17_lqfp100.xml">
elessair 0:f269e3021894 10 <chip>
elessair 0:f269e3021894 11 <name>LPC1768</name>
elessair 0:f269e3021894 12 <family>LPC17xx</family>
elessair 0:f269e3021894 13 <vendor>NXP (formerly Philips)</vendor>
elessair 0:f269e3021894 14 <reset board="None" core="Real" sys="Real"/>
elessair 0:f269e3021894 15 <clock changeable="TRUE" freq="20MHz" is_accurate="TRUE"/>
elessair 0:f269e3021894 16 <memory can_program="true" id="Flash" is_ro="true" type="Flash"/>
elessair 0:f269e3021894 17 <memory id="RAM" type="RAM"/>
elessair 0:f269e3021894 18 <memory id="Periph" is_volatile="true" type="Peripheral"/>
elessair 0:f269e3021894 19 <memoryInstance derived_from="Flash" id="MFlash512" location="0x00000000" size="0x80000"/>
elessair 0:f269e3021894 20 <memoryInstance derived_from="RAM" id="RamLoc32" location="0x10000000" size="0x8000"/>
elessair 0:f269e3021894 21 <memoryInstance derived_from="RAM" id="RamAHB32" location="0x2007c000" size="0x8000"/>
elessair 0:f269e3021894 22 <prog_flash blocksz="0x1000" location="0" maxprgbuff="0x1000" progwithcode="TRUE" size="0x10000"/>
elessair 0:f269e3021894 23 <prog_flash blocksz="0x8000" location="0x10000" maxprgbuff="0x1000" progwithcode="TRUE" size="0x70000"/>
elessair 0:f269e3021894 24 <peripheralInstance derived_from="LPC17_NVIC" determined="infoFile" id="NVIC" location="0xE000E000"/>
elessair 0:f269e3021894 25 <peripheralInstance derived_from="TIMER" determined="infoFile" enable="SYSCTL.PCONP.PCTIM0&0x1" id="TIMER0" location="0x40004000"/>
elessair 0:f269e3021894 26 <peripheralInstance derived_from="TIMER" determined="infoFile" enable="SYSCTL.PCONP.PCTIM1&0x1" id="TIMER1" location="0x40008000"/>
elessair 0:f269e3021894 27 <peripheralInstance derived_from="TIMER" determined="infoFile" enable="SYSCTL.PCONP.PCTIM2&0x1" id="TIMER2" location="0x40090000"/>
elessair 0:f269e3021894 28 <peripheralInstance derived_from="TIMER" determined="infoFile" enable="SYSCTL.PCONP.PCTIM3&0x1" id="TIMER3" location="0x40094000"/>
elessair 0:f269e3021894 29 <peripheralInstance derived_from="LPC17_RIT" determined="infoFile" enable="SYSCTL.PCONP.PCRIT&0x1" id="RIT" location="0x400B0000"/>
elessair 0:f269e3021894 30 <peripheralInstance derived_from="FGPIO" determined="infoFile" enable="SYSCTL.PCONP.PCGPIO&0x1" id="GPIO0" location="0x2009C000"/>
elessair 0:f269e3021894 31 <peripheralInstance derived_from="FGPIO" determined="infoFile" enable="SYSCTL.PCONP.PCGPIO&0x1" id="GPIO1" location="0x2009C020"/>
elessair 0:f269e3021894 32 <peripheralInstance derived_from="FGPIO" determined="infoFile" enable="SYSCTL.PCONP.PCGPIO&0x1" id="GPIO2" location="0x2009C040"/>
elessair 0:f269e3021894 33 <peripheralInstance derived_from="FGPIO" determined="infoFile" enable="SYSCTL.PCONP.PCGPIO&0x1" id="GPIO3" location="0x2009C060"/>
elessair 0:f269e3021894 34 <peripheralInstance derived_from="FGPIO" determined="infoFile" enable="SYSCTL.PCONP.PCGPIO&0x1" id="GPIO4" location="0x2009C080"/>
elessair 0:f269e3021894 35 <peripheralInstance derived_from="LPC17_I2S" determined="infoFile" enable="SYSCTL.PCONP&0x08000000" id="I2S" location="0x400A8000"/>
elessair 0:f269e3021894 36 <peripheralInstance derived_from="LPC17_SYSCTL" determined="infoFile" id="SYSCTL" location="0x400FC000"/>
elessair 0:f269e3021894 37 <peripheralInstance derived_from="LPC17_DAC" determined="infoFile" enable="PCB.PINSEL1.P0_26&0x2=2" id="DAC" location="0x4008C000"/>
elessair 0:f269e3021894 38 <peripheralInstance derived_from="LPC17xx_UART" determined="infoFile" enable="SYSCTL.PCONP.PCUART0&0x1" id="UART0" location="0x4000C000"/>
elessair 0:f269e3021894 39 <peripheralInstance derived_from="LPC17xx_UART_MODEM" determined="infoFile" enable="SYSCTL.PCONP.PCUART1&0x1" id="UART1" location="0x40010000"/>
elessair 0:f269e3021894 40 <peripheralInstance derived_from="LPC17xx_UART" determined="infoFile" enable="SYSCTL.PCONP.PCUART2&0x1" id="UART2" location="0x40098000"/>
elessair 0:f269e3021894 41 <peripheralInstance derived_from="LPC17xx_UART" determined="infoFile" enable="SYSCTL.PCONP.PCUART3&0x1" id="UART3" location="0x4009C000"/>
elessair 0:f269e3021894 42 <peripheralInstance derived_from="SPI" determined="infoFile" enable="SYSCTL.PCONP.PCSPI&0x1" id="SPI" location="0x40020000"/>
elessair 0:f269e3021894 43 <peripheralInstance derived_from="LPC17_SSP" determined="infoFile" enable="SYSCTL.PCONP.PCSSP0&0x1" id="SSP0" location="0x40088000"/>
elessair 0:f269e3021894 44 <peripheralInstance derived_from="LPC17_SSP" determined="infoFile" enable="SYSCTL.PCONP.PCSSP1&0x1" id="SSP1" location="0x40030000"/>
elessair 0:f269e3021894 45 <peripheralInstance derived_from="LPC17_ADC" determined="infoFile" enable="SYSCTL.PCONP.PCAD&0x1" id="ADC" location="0x40034000"/>
elessair 0:f269e3021894 46 <peripheralInstance derived_from="LPC17_USBINTST" determined="infoFile" enable="USBCLKCTL.USBClkCtrl&0x12" id="USBINTSTAT" location="0x400fc1c0"/>
elessair 0:f269e3021894 47 <peripheralInstance derived_from="LPC17_USB_CLK_CTL" determined="infoFile" id="USBCLKCTL" location="0x5000cff4"/>
elessair 0:f269e3021894 48 <peripheralInstance derived_from="LPC17_USBDEV" determined="infoFile" enable="USBCLKCTL.USBClkSt&0x12=0x12" id="USBDEV" location="0x5000C200"/>
elessair 0:f269e3021894 49 <peripheralInstance derived_from="LPC17_PWM" determined="infoFile" enable="SYSCTL.PCONP.PWM1&0x1" id="PWM" location="0x40018000"/>
elessair 0:f269e3021894 50 <peripheralInstance derived_from="LPC17_I2C" determined="infoFile" enable="SYSCTL.PCONP.PCI2C0&0x1" id="I2C0" location="0x4001C000"/>
elessair 0:f269e3021894 51 <peripheralInstance derived_from="LPC17_I2C" determined="infoFile" enable="SYSCTL.PCONP.PCI2C1&0x1" id="I2C1" location="0x4005C000"/>
elessair 0:f269e3021894 52 <peripheralInstance derived_from="LPC17_I2C" determined="infoFile" enable="SYSCTL.PCONP.PCI2C2&0x1" id="I2C2" location="0x400A0000"/>
elessair 0:f269e3021894 53 <peripheralInstance derived_from="LPC17_DMA" determined="infoFile" enable="SYSCTL.PCONP.PCGPDMA&0x1" id="DMA" location="0x50004000"/>
elessair 0:f269e3021894 54 <peripheralInstance derived_from="LPC17_ENET" determined="infoFile" enable="SYSCTL.PCONP.PCENET&0x1" id="ENET" location="0x50000000"/>
elessair 0:f269e3021894 55 <peripheralInstance derived_from="CM3_DCR" determined="infoFile" id="DCR" location="0xE000EDF0"/>
elessair 0:f269e3021894 56 <peripheralInstance derived_from="LPC17_PCB" determined="infoFile" id="PCB" location="0x4002c000"/>
elessair 0:f269e3021894 57 <peripheralInstance derived_from="LPC17_QEI" determined="infoFile" enable="SYSCTL.PCONP.PCQEI&0x1" id="QEI" location="0x400bc000"/>
elessair 0:f269e3021894 58 <peripheralInstance derived_from="LPC17_USBHOST" determined="infoFile" enable="USBCLKCTL.USBClkSt&0x11=0x11" id="USBHOST" location="0x5000C000"/>
elessair 0:f269e3021894 59 <peripheralInstance derived_from="LPC17_USBOTG" determined="infoFile" enable="USBCLKCTL.USBClkSt&0x1c=0x1c" id="USBOTG" location="0x5000C000"/>
elessair 0:f269e3021894 60 <peripheralInstance derived_from="LPC17_RTC" determined="infoFile" enable="SYSCTL.PCONP.PCRTC&0x1" id="RTC" location="0x40024000"/>
elessair 0:f269e3021894 61 <peripheralInstance derived_from="MPU" determined="infoFile" id="MPU" location="0xE000ED90"/>
elessair 0:f269e3021894 62 <peripheralInstance derived_from="LPC1x_WDT" determined="infoFile" id="WDT" location="0x40000000"/>
elessair 0:f269e3021894 63 <peripheralInstance derived_from="LPC17_FLASHCFG" determined="infoFile" id="FLASHACCEL" location="0x400FC000"/>
elessair 0:f269e3021894 64 <peripheralInstance derived_from="GPIO_INT" determined="infoFile" id="GPIOINTMAP" location="0x40028080"/>
elessair 0:f269e3021894 65 <peripheralInstance derived_from="LPC17_CANAFR" determined="infoFile" enable="SYSCTL.PCONP.PCCAN1&0x1|SYSCTL.PCONP.PCCAN2&0x1" id="CANAFR" location="0x4003C000"/>
elessair 0:f269e3021894 66 <peripheralInstance derived_from="LPC17_CANCEN" determined="infoFile" enable="SYSCTL.PCONP.PCCAN1&0x1|SYSCTL.PCONP.PCCAN2&0x1" id="CANCEN" location="0x40040000"/>
elessair 0:f269e3021894 67 <peripheralInstance derived_from="LPC17_CANWAKESLEEP" determined="infoFile" id="CANWAKESLEEP" location="0x400FC110"/>
elessair 0:f269e3021894 68 <peripheralInstance derived_from="LPC17_CANCON" determined="infoFile" enable="SYSCTL.PCONP.PCCAN1&0x1" id="CANCON1" location="0x40044000"/>
elessair 0:f269e3021894 69 <peripheralInstance derived_from="LPC17_CANCON" determined="infoFile" enable="SYSCTL.PCONP.PCCAN2&0x1" id="CANCON2" location="0x40048000"/>
elessair 0:f269e3021894 70 <peripheralInstance derived_from="LPC17_MCPWM" determined="infoFile" enable="SYSCTL.PCONP.PCMCPWM&0x1" id="MCPWM" location="0x400B8000"/>
elessair 0:f269e3021894 71 </chip>
elessair 0:f269e3021894 72 <processor>
elessair 0:f269e3021894 73 <name gcc_name="cortex-m3">Cortex-M3</name>
elessair 0:f269e3021894 74 <family>Cortex-M</family>
elessair 0:f269e3021894 75 </processor>
elessair 0:f269e3021894 76 <link href="nxp_lpcxxxx_peripheral.xme" show="embed" type="simple"/>
elessair 0:f269e3021894 77 </info>
elessair 0:f269e3021894 78 </infoList>
elessair 0:f269e3021894 79 </TargetConfig>{% endblock %}