2021-03-26 17:08:45 +01:00
|
|
|
/****************************************************************************
|
2019-08-14 18:57:54 +02:00
|
|
|
* arch/arm/src/s32k1xx/chip.h
|
|
|
|
*
|
2021-03-24 09:33:59 +01:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership. The
|
|
|
|
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
2019-08-14 18:57:54 +02:00
|
|
|
*
|
2021-03-24 09:33:59 +01:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2019-08-14 18:57:54 +02:00
|
|
|
*
|
2021-03-24 09:33:59 +01:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2019-08-14 18:57:54 +02:00
|
|
|
*
|
2021-03-26 17:08:45 +01:00
|
|
|
****************************************************************************/
|
2019-08-14 18:57:54 +02:00
|
|
|
|
|
|
|
#ifndef __ARCH_ARM_SRC_S32K1XX_CHIP_H
|
|
|
|
#define __ARCH_ARM_SRC_S32K1XX_CHIP_H
|
|
|
|
|
2021-03-26 17:08:45 +01:00
|
|
|
/****************************************************************************
|
2019-08-14 18:57:54 +02:00
|
|
|
* Included Files
|
2021-03-26 17:08:45 +01:00
|
|
|
****************************************************************************/
|
2019-08-14 18:57:54 +02:00
|
|
|
|
|
|
|
#include <nuttx/config.h>
|
|
|
|
|
2021-03-26 17:08:45 +01:00
|
|
|
/* Include the memory map and the chip definitions file.
|
|
|
|
* Other chip hardware files should then include this file for the proper
|
|
|
|
* setup.
|
2019-08-14 18:57:54 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <arch/irq.h>
|
|
|
|
#include "hardware/s32k1xx_memorymap.h"
|
|
|
|
|
2021-03-26 17:08:45 +01:00
|
|
|
/* The common ARMv6/7-M vector handling logic expects the following
|
|
|
|
* definitions in this file.
|
|
|
|
* ARMV6/7M_PERIPHERAL_INTERRUPTS provides the number of supported
|
2019-08-14 18:57:54 +02:00
|
|
|
* external interrupts which, for this architecture, is provided in the
|
|
|
|
* arch/s32k1xx/irq.h header file.
|
|
|
|
*/
|
|
|
|
|
2019-08-14 20:40:51 +02:00
|
|
|
#define ARMV6M_PERIPHERAL_INTERRUPTS S32K1XX_IRQ_NEXTINT
|
|
|
|
#define ARMV7M_PERIPHERAL_INTERRUPTS S32K1XX_IRQ_NEXTINT
|
2019-08-14 18:57:54 +02:00
|
|
|
|
2020-02-07 13:53:40 +01:00
|
|
|
/* Cache line sizes (in bytes)for the S32K14X */
|
|
|
|
|
|
|
|
#define ARMV7M_DCACHE_LINESIZE 16 /* 16 bytes (4 words) */
|
|
|
|
#define ARMV7M_ICACHE_LINESIZE 16 /* 16 bytes (4 words) */
|
|
|
|
|
2021-03-26 17:08:45 +01:00
|
|
|
/****************************************************************************
|
2019-08-14 18:57:54 +02:00
|
|
|
* Pre-processor Definitions
|
2021-03-26 17:08:45 +01:00
|
|
|
****************************************************************************/
|
2019-08-14 18:57:54 +02:00
|
|
|
|
2021-03-26 17:08:45 +01:00
|
|
|
/****************************************************************************
|
2019-08-14 18:57:54 +02:00
|
|
|
* Public Types
|
2021-03-26 17:08:45 +01:00
|
|
|
****************************************************************************/
|
2019-08-14 18:57:54 +02:00
|
|
|
|
2021-03-26 17:08:45 +01:00
|
|
|
/****************************************************************************
|
2019-08-14 18:57:54 +02:00
|
|
|
* Public Data
|
2021-03-26 17:08:45 +01:00
|
|
|
****************************************************************************/
|
2019-08-14 18:57:54 +02:00
|
|
|
|
2021-03-26 17:08:45 +01:00
|
|
|
/****************************************************************************
|
2020-02-07 13:53:40 +01:00
|
|
|
* Public Function Prototypes
|
2021-03-26 17:08:45 +01:00
|
|
|
****************************************************************************/
|
2019-08-14 18:57:54 +02:00
|
|
|
|
|
|
|
#endif /* __ARCH_ARM_SRC_S32K1XX_CHIP_H */
|