1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 08:32:43 +01:00
RIOT/cpu/nrf53/include/cpu_conf.h
Dylan Laduranty de6939aa43 cpu/nrf53: add initial support
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2023-07-04 17:14:06 +02:00

61 lines
1.4 KiB
C

/*
* Copyright (C) 2023 Mesotic SAS
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @defgroup cpu_nrf53 Nordic nRF53 MCU
* @ingroup cpu
* @brief Nordic nRF53 family of CPUs
* @{
*
* @file
* @brief nRF53 specific CPU configuration
*
* @author Dylan Laduranty <dylan.laduranty@mesotic.com>
*
*/
#ifndef CPU_CONF_H
#define CPU_CONF_H
#ifdef CPU_MODEL_NRF5340_APP
#include "vendor/nrf5340_application.h"
#include "vendor/nrf5340_application_bitfields.h"
#include "vendor/nrf5340_application_peripherals.h"
#elif defined(CPU_MODEL_NRF5340_NET)
#include "vendor/nrf5340_network.h"
#include "vendor/nrf5340_network_bitfields.h"
#include "vendor/nrf5340_network_peripherals.h"
#else
#error "The CPU_MODEL of your board is currently not supported"
#endif
#include "cpu_conf_common.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name ARM Cortex-M specific CPU configuration
* @{
*/
#define CPU_DEFAULT_IRQ_PRIO (1U) /**< Default ARM IRQ priority */
#ifdef CPU_MODEL_NRF5340_APP
#define CPU_FLASH_BASE (0x00000000) /**< ROM Base Address */
#define CPU_IRQ_NUMOF (69U) /**< nRF53 specific IRQ count */
#endif /* def CPU_MODEL_NRF5340_APP */
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* CPU_CONF_H */
/** @} */