add bootloader version retrieval

This commit is contained in:
hathach committed 2016-12-09 14:51:21 +07:00
1 parent 9f0ba29d46
commit 558aa7c717
4 files changed
+1347 -1279

No files matched your search

+11
View File
@@ -18,6 +18,10 @@
*/
#include "variant.h"
#include <nrf.h>
// Must match temp register in bootloader
#define BOOTLOADER_VERSION_REGISTER NRF_TIMER2->CC[0]
const uint32_t g_ADigitalPinMap[] = {
// D0 - D7
@@ -64,3 +68,10 @@ const uint32_t g_ADigitalPinMap[] = {
31, // A7
};
uint32_t bootloaderVersion = 0;
void initVariant()
{
bootloaderVersion = BOOTLOADER_VERSION_REGISTER;
}