From 30f62fac47fe553491972ded5ed3d56ee19fe6cf Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Sat, 19 Jul 2014 16:57:25 -0300 Subject: [PATCH 01/10] stack: Add delay API --- stack/delay.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 stack/delay.h diff --git a/stack/delay.h b/stack/delay.h new file mode 100644 index 0000000..538d411 --- /dev/null +++ b/stack/delay.h @@ -0,0 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Paulo B. de Oliveira Filho + * Copyright (c) 2014 Claudio Takahasi + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +void delay(uint32_t us); From 8e7964db276da5d8e9c86643054210551097df96 Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Sat, 19 Jul 2014 16:59:07 -0300 Subject: [PATCH 02/10] nrf51822: Implement delay module --- platform/nrf51822/Makefile.platform | 1 + platform/nrf51822/delay.c | 50 +++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 platform/nrf51822/delay.c diff --git a/platform/nrf51822/Makefile.platform b/platform/nrf51822/Makefile.platform index eb7ce54..3444e2b 100644 --- a/platform/nrf51822/Makefile.platform +++ b/platform/nrf51822/Makefile.platform @@ -71,6 +71,7 @@ PLATFORM_SOURCE_FILES = system_nrf51.c \ app_gpiote.c \ nrf_delay.c \ nrf51822.c \ + delay.c \ log.c \ timer.c \ radio.c diff --git a/platform/nrf51822/delay.c b/platform/nrf51822/delay.c new file mode 100644 index 0000000..df6a12e --- /dev/null +++ b/platform/nrf51822/delay.c @@ -0,0 +1,50 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Paulo B. de Oliveira Filho + * Copyright (c) 2014 Claudio Takahasi + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +#include + +void delay(uint32_t us) +{ + asm volatile ( + "start: nop\n\t" + "nop\n\t" + "nop\n\t" + "nop\n\t" + "nop\n\t" + "nop\n\t" + "nop\n\t" + "nop\n\t" + "nop\n\t" + "nop\n\t" + "nop\n\t" + "nop\n\t" + "nop\n\t" + "nop\n\t" + "sub %[cycles], #1\n\t" + "bne start\n\t" + + : /* empty */ : [cycles] "l" (us) + ); +} From 041bca875ea91829ecfa14666dd80a39fe43eee2 Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Sat, 19 Jul 2014 17:00:58 -0300 Subject: [PATCH 03/10] nrf51822/log: Replace nrf_delay module by delay --- platform/nrf51822/log.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platform/nrf51822/log.c b/platform/nrf51822/log.c index 962c181..769fe7c 100644 --- a/platform/nrf51822/log.c +++ b/platform/nrf51822/log.c @@ -31,18 +31,21 @@ #include #include -#include #include +#include #include #include #include "nrf51822.h" +#include "delay.h" #ifndef CONFIG_LOG_BUFFER_LEN #define CONFIG_LOG_BUFFER_LEN 128 #endif +#define UART_INIT_DELAY 1000 /* 1 ms */ + #define UNINITIALIZED 0 #define READY 1 #define BUSY 2 @@ -121,7 +124,7 @@ int16_t log_init(void) state = READY; /* Necessary to fully initialize the UART */ - nrf_delay_ms(1); + delay(UART_INIT_DELAY); log_print("\r\n"); #endif From 018b6165c6a7501f21802e5be6888eed2c7deb60 Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Sat, 19 Jul 2014 17:03:50 -0300 Subject: [PATCH 04/10] examples/ll-scanner: Replace nrf_delay module by delay --- examples/ll-scanner/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/ll-scanner/main.c b/examples/ll-scanner/main.c index 999ca98..a8da613 100644 --- a/examples/ll-scanner/main.c +++ b/examples/ll-scanner/main.c @@ -31,12 +31,12 @@ #include #include -#include "nrf_delay.h" - #include "ll.h" +#include "delay.h" #define SCAN_WINDOW 200000 #define SCAN_INTERVAL 500000 +#define SCAN_DURATION 1100000 /* 1.1 s */ static const bdaddr_t addr = { { 0x14, 0x20, 0xCC, 0xDD, 0xEE, 0xFF }, BDADDR_TYPE_RANDOM }; @@ -84,7 +84,7 @@ int main(void) ll_scan_start(LL_SCAN_PASSIVE, SCAN_INTERVAL, SCAN_WINDOW, adv_report_cb); - nrf_delay_ms(1100); + delay(SCAN_DURATION); ll_scan_stop(); From 73b7eb5944ce9e825397ee6c95a6607420089083 Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Sat, 19 Jul 2014 17:04:48 -0300 Subject: [PATCH 05/10] nrf51822: Remove nrf_delay.c from sources list --- platform/nrf51822/Makefile.platform | 2 -- 1 file changed, 2 deletions(-) diff --git a/platform/nrf51822/Makefile.platform b/platform/nrf51822/Makefile.platform index 3444e2b..424807f 100644 --- a/platform/nrf51822/Makefile.platform +++ b/platform/nrf51822/Makefile.platform @@ -60,7 +60,6 @@ PLATFORM_LDFLAGS = -T$(SDK_TEMPLATE_PATH)/gcc/$(LINKER_SCRIPT) \ PLATFORM_SOURCE_PATHS = $(SDK_SOURCE_PATH) \ $(SDK_SOURCE_PATH)/app_common \ - $(SDK_SOURCE_PATH)/nrf_delay \ $(SDK_TEMPLATE_PATH) \ $(SDK_TEMPLATE_PATH/gcc) \ $(PLATFORM_PATH) @@ -69,7 +68,6 @@ PLATFORM_SOURCE_FILES = system_nrf51.c \ app_uart.c \ app_fifo.c \ app_gpiote.c \ - nrf_delay.c \ nrf51822.c \ delay.c \ log.c \ From c35009be5a0bdd834339c917a72e3ca3f1b27bea Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Sat, 19 Jul 2014 18:02:28 -0300 Subject: [PATCH 06/10] nrf51822: Implement uart module --- platform/nrf51822/Makefile.platform | 1 + platform/nrf51822/uart.c | 126 ++++++++++++++++++++++++++++ platform/nrf51822/uart.h | 75 +++++++++++++++++ 3 files changed, 202 insertions(+) create mode 100644 platform/nrf51822/uart.c create mode 100644 platform/nrf51822/uart.h diff --git a/platform/nrf51822/Makefile.platform b/platform/nrf51822/Makefile.platform index 424807f..86b9601 100644 --- a/platform/nrf51822/Makefile.platform +++ b/platform/nrf51822/Makefile.platform @@ -72,6 +72,7 @@ PLATFORM_SOURCE_FILES = system_nrf51.c \ delay.c \ log.c \ timer.c \ + uart.c \ radio.c PLATFORM_ASM_PATHS = $(SDK_TEMPLATE_PATH)/gcc diff --git a/platform/nrf51822/uart.c b/platform/nrf51822/uart.c new file mode 100644 index 0000000..f1aa307 --- /dev/null +++ b/platform/nrf51822/uart.c @@ -0,0 +1,126 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Paulo B. de Oliveira Filho + * Copyright (c) 2014 Claudio Takahasi + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +#include +#include + +#include +#include + +#include + +#include "nrf51822.h" +#include "uart.h" + +#define STATE_UNINITIALIZED 0 +#define STATE_IDLE 1 +#define STATE_BUSY 2 + +#define DISCONNECTED_PIN 0xFFFFFFFF + +#if CONFIG_UART_ENABLE + +/* nRF51 Series Reference Manual v2.1, section 28.9.10, page 166 */ +static const uint32_t baudrates[] = { + 0x0004F000UL, 0x0009D000UL, 0x0013B000UL, 0x00275000UL, 0x003B0000UL, + 0x004EA000UL, 0x0075F000UL, 0x009D5000UL, 0x00EBF000UL, 0x013A9000UL, + 0x01D7E000UL, 0x03AFB000UL, 0x04000000UL, 0x075F7000UL, 0x0EBEDFA4UL, + 0x10000000UL +}; + +static uint8_t state = STATE_UNINITIALIZED; +static uart_sent_cb_t sent_cb = 0; + +void UART0_IRQHandler(void) +{ + if (NRF_UART0->EVENTS_TXDRDY) { + NRF_UART0->EVENTS_TXDRDY = 0UL; + NRF_UART0->TASKS_STOPTX = 1UL; + + state = STATE_IDLE; + + if (sent_cb) + sent_cb(); + } else { + NRF_UART0->EVENTS_ERROR = 0UL; + NRF_UART0->TASKS_STOPTX = 1UL; + + state = STATE_IDLE; + } +} + +int16_t uart_send(uint8_t octet) +{ + if (state != STATE_IDLE) + return -ENOREADY; + + NRF_UART0->TASKS_STARTTX = 1UL; + NRF_UART0->TXD = octet; + + state = STATE_BUSY; + + return 0; +} + +int16_t uart_init(struct uart_config config, uart_sent_cb_t cb) +{ + if (state != STATE_UNINITIALIZED) + return -EALREADY; + + sent_cb = cb; + + NRF_UART0->PSELRTS = DISCONNECTED_PIN; + NRF_UART0->PSELCTS = DISCONNECTED_PIN; + + NRF_UART0->PSELTXD = config.tx_pin; + NRF_UART0->PSELRXD = config.rx_pin; + + NRF_UART0->BAUDRATE = baudrates[config.baud]; + + NRF_UART0->CONFIG = 0UL; + + if (config.parity_bit) + NRF_UART0->CONFIG |= UART_CONFIG_PARITY_Included + << UART_CONFIG_PARITY_Pos; + else + NRF_UART0->CONFIG |= UART_CONFIG_PARITY_Excluded + << UART_CONFIG_PARITY_Pos; + + NRF_UART0->INTENSET = UART_INTENSET_TXDRDY_Enabled + << UART_INTENSET_TXDRDY_Pos; + + NVIC_ClearPendingIRQ(UART0_IRQn); + NVIC_SetPriority(UART0_IRQn, IRQ_PRIORITY_HIGHEST); + NVIC_EnableIRQ(UART0_IRQn); + + NRF_UART0->ENABLE = UART_ENABLE_ENABLE_Enabled + << UART_ENABLE_ENABLE_Pos; + + state = STATE_IDLE; + + return 0; +} + +#endif diff --git a/platform/nrf51822/uart.h b/platform/nrf51822/uart.h new file mode 100644 index 0000000..4f0d83b --- /dev/null +++ b/platform/nrf51822/uart.h @@ -0,0 +1,75 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Paulo B. de Oliveira Filho + * Copyright (c) 2014 Claudio Takahasi + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +#ifndef CONFIG_UART_ENABLE +#define CONFIG_UART_ENABLE 1 +#endif + +typedef enum { + UART_BAUD_1200, + UART_BAUD_2400, + UART_BAUD_4800, + UART_BAUD_9600, + UART_BAUD_14400, + UART_BAUD_19200, + UART_BAUD_28800, + UART_BAUD_38400, + UART_BAUD_57600, + UART_BAUD_76800, + UART_BAUD_115200, + UART_BAUD_230400, + UART_BAUD_250000, + UART_BAUD_460800, + UART_BAUD_921600, + UART_BAUD_1000000 +} uart_baud_t; + +struct uart_config { + uart_baud_t baud; + uint8_t rx_pin; + uint8_t tx_pin; + bool parity_bit; +}; + +typedef void (*uart_sent_cb_t) (void); + +#if CONFIG_UART_ENABLE + +int16_t uart_init(struct uart_config config, uart_sent_cb_t cb); +int16_t uart_send(uint8_t octet); + +#else + +inline int16_t uart_init(struct uart_config config, uart_sent_cb_t cb) +{ + return 0; +} + +inline int16_t uart_send(uint8_t octet) +{ + return 0; +} + +#endif From d8bd160cfb58cdc701ed76e6f757540aaafb2a37 Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Sun, 20 Jul 2014 19:20:27 -0300 Subject: [PATCH 07/10] nrf51822/log: Replace app_uart module by uart --- platform/nrf51822/log.c | 41 +++++++++++++---------------------------- 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/platform/nrf51822/log.c b/platform/nrf51822/log.c index 769fe7c..2e2e594 100644 --- a/platform/nrf51822/log.c +++ b/platform/nrf51822/log.c @@ -25,13 +25,13 @@ */ #include -#include +#include #include #include #include -#include #include +#include #include #include @@ -39,6 +39,7 @@ #include "nrf51822.h" #include "delay.h" +#include "uart.h" #ifndef CONFIG_LOG_BUFFER_LEN #define CONFIG_LOG_BUFFER_LEN 128 @@ -56,22 +57,15 @@ static volatile uint16_t len; static volatile uint8_t buffer[CONFIG_LOG_BUFFER_LEN] __attribute__ ((aligned)); static volatile uint8_t state = UNINITIALIZED; -static __inline void tx_next_byte(void) + +static void send_next_octet(void) { if (pos == len) { state = READY; return; } - app_uart_put(buffer[pos++]); -} - -static void uart_evt_handler(app_uart_evt_t *p_app_uart_evt) -{ - if (p_app_uart_evt->evt_type != APP_UART_TX_EMPTY) - return; - - tx_next_byte(); + uart_send(buffer[pos++]); } #endif @@ -92,7 +86,7 @@ int16_t log_print(const char *format, ...) pos = 0; state = BUSY; - tx_next_byte(); + send_next_octet(); #endif return 0; @@ -101,26 +95,17 @@ int16_t log_print(const char *format, ...) int16_t log_init(void) { #if CONFIG_LOG_ENABLE - uint32_t err_code; - - UNUSED(err_code); - - app_uart_comm_params_t params = { - RX_PIN_NUMBER, - TX_PIN_NUMBER, - RTS_PIN_NUMBER, - CTS_PIN_NUMBER, - APP_UART_FLOW_CONTROL_ENABLED, - false, - UART_BAUDRATE_BAUDRATE_Baud115200 + struct uart_config config = { + .baud = UART_BAUD_115200, + .rx_pin = RX_PIN_NUMBER, + .tx_pin = TX_PIN_NUMBER, + .parity_bit = false }; if (state != UNINITIALIZED) return -EALREADY; - APP_UART_INIT(¶ms, uart_evt_handler, IRQ_PRIORITY_HIGHEST, - err_code); - + uart_init(config, send_next_octet); state = READY; /* Necessary to fully initialize the UART */ From 8c8e79939624caed071b16c92fc1b2f6d3e16571 Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Sun, 20 Jul 2014 19:26:58 -0300 Subject: [PATCH 08/10] nrf51822: Remove app_uart.c and its dependencies from sources list --- platform/nrf51822/Makefile.platform | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/platform/nrf51822/Makefile.platform b/platform/nrf51822/Makefile.platform index 86b9601..1d6026a 100644 --- a/platform/nrf51822/Makefile.platform +++ b/platform/nrf51822/Makefile.platform @@ -58,16 +58,11 @@ PLATFORM_LDFLAGS = -T$(SDK_TEMPLATE_PATH)/gcc/$(LINKER_SCRIPT) \ -mthumb \ -mcpu=$(CPU) -PLATFORM_SOURCE_PATHS = $(SDK_SOURCE_PATH) \ - $(SDK_SOURCE_PATH)/app_common \ - $(SDK_TEMPLATE_PATH) \ +PLATFORM_SOURCE_PATHS = $(SDK_TEMPLATE_PATH) \ $(SDK_TEMPLATE_PATH/gcc) \ $(PLATFORM_PATH) PLATFORM_SOURCE_FILES = system_nrf51.c \ - app_uart.c \ - app_fifo.c \ - app_gpiote.c \ nrf51822.c \ delay.c \ log.c \ From 2f0b6d5b7ece98fa28fd06ce27d15d6345fc1243 Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Mon, 21 Jul 2014 11:15:03 -0300 Subject: [PATCH 09/10] nrf51822: Remove app_error_handler() function This function was needed to handle errors from Nordic SDK via APP_ERROR_CHECK/APP_ERROR_HANDLER macros. --- platform/nrf51822/Makefile.platform | 1 - platform/nrf51822/nrf51822.c | 36 ----------------------------- 2 files changed, 37 deletions(-) delete mode 100644 platform/nrf51822/nrf51822.c diff --git a/platform/nrf51822/Makefile.platform b/platform/nrf51822/Makefile.platform index 1d6026a..27e6884 100644 --- a/platform/nrf51822/Makefile.platform +++ b/platform/nrf51822/Makefile.platform @@ -63,7 +63,6 @@ PLATFORM_SOURCE_PATHS = $(SDK_TEMPLATE_PATH) \ $(PLATFORM_PATH) PLATFORM_SOURCE_FILES = system_nrf51.c \ - nrf51822.c \ delay.c \ log.c \ timer.c \ diff --git a/platform/nrf51822/nrf51822.c b/platform/nrf51822/nrf51822.c deleted file mode 100644 index cfe660f..0000000 --- a/platform/nrf51822/nrf51822.c +++ /dev/null @@ -1,36 +0,0 @@ -/** - * The MIT License (MIT) - * - * Copyright (c) 2013 Paulo B. de Oliveira Filho - * Copyright (c) 2013 Claudio Takahasi - * Copyright (c) 2013 João Paulo Rechi Vita - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -#include -#include - -#include - -void app_error_handler(uint32_t error_code, uint32_t line_num, - const uint8_t *p_file_name) -{ - ERROR("NRF error 0x%04x %s:%d", error_code, p_file_name, line_num); -} From 3d1146976be77b0395ba40c8c0bb6dddf1be3b6f Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Mon, 21 Jul 2014 11:23:14 -0300 Subject: [PATCH 10/10] TODO --- TODO | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 TODO diff --git a/TODO b/TODO new file mode 100644 index 0000000..ca6f234 --- /dev/null +++ b/TODO @@ -0,0 +1,19 @@ +Remove sources: +* system_nrf51.c +* gcc_startup_nrf51.s + +Remove headers: +* boards.h +* pca10001.h +* system_nrf51.h +* nrf.h +* nrf51.h +* nrf51_bitfields.h + +Copy files: +* core_cm0.h +* core_cmInstr.h +* core_cmFunc.h +* gcc_nrf51_common.ld +* gcc_nrf51_blank_xxaa.ld +* gcc_nrf51_blank_xxab.ld