Boot Linux faster!

Check our new training course

Boot Linux faster!

Check our new training course
and Creative Commons CC-BY-SA
lecture and lab materials

Bootlin logo

Elixir Cross Referencer

 * Copyright (c) 2016 Nordic Semiconductor ASA
 * Copyright (c) 2016 Linaro Limited
 * SPDX-License-Identifier: Apache-2.0

 * @file
 * @brief System/hardware module for Nordic Semiconductor nRF51 family processor
 * This module provides routines to initialize and support board-level hardware
 * for the Nordic Semiconductor nRF51 family processor.

#include <kernel.h>
#include <init.h>

extern void _NmiInit(void);
#define NMI_INIT() _NmiInit()
#define NMI_INIT()

#include <system_nrf51.h>

static int nordicsemi_nrf51_init(struct device *arg)
	u32_t key;


	key = irq_lock();


	/* Install default handler that simply resets the CPU
	 * if configured in the kernel, NOP otherwise


	return 0;

SYS_INIT(nordicsemi_nrf51_init, PRE_KERNEL_1, 0);