Skip to content

Commit 00c5b56

Browse files
authored
Merge pull request #8683 from NXPmicro/feature-qspi-lpc546xx
Feature qspi lpc546xx
2 parents 3147545 + 6bd0be1 commit 00c5b56

File tree

17 files changed

+878
-76
lines changed

17 files changed

+878
-76
lines changed

TESTS/mbed_hal/qspi/flash_configs/MT25Q_config.h

Lines changed: 250 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* mbed Microcontroller Library
2+
* Copyright (c) 2018-2018 ARM Limited
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
#ifndef MBED_QSPI_FLASH_CONFIG_H
17+
#define MBED_QSPI_FLASH_CONFIG_H
18+
19+
#include "../../MT25Q_config.h"
20+
21+
#endif // MBED_QSPI_FLASH_CONFIG_H

TESTS/mbed_hal/qspi/flash_configs/flash_configs.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@
2626
#elif defined(TARGET_EFM32GG11_STK3701)
2727
#include "SiliconLabs/EFM32GG11_STK3701/flash_config.h"
2828
#elif defined(TARGET_K82F)
29-
#include "Freescale/K82F/flash_config.h"
29+
#include "NXP/K82F/flash_config.h"
3030
#elif defined(TARGET_KL82Z)
31-
#include "Freescale/KL82Z/flash_config.h"
31+
#include "NXP/KL82Z/flash_config.h"
32+
#elif defined(TARGET_LPC546XX)
33+
#include "NXP/LPC546XX/flash_config.h"
3234
#endif
3335

3436
#endif // MBED_FLASH_CONFIGS_H

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC/PeripheralPins.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,11 @@ extern const PinMap PinMap_SPI_SSEL[];
5050
/************PWM***************/
5151
extern const PinMap PinMap_PWM[];
5252

53+
#if DEVICE_QSPI
54+
/************QSPI***************/
55+
extern const PinMap PinMap_QSPI_DATA[];
56+
extern const PinMap PinMap_QSPI_SCLK[];
57+
extern const PinMap PinMap_QSPI_SSEL[];
58+
#endif
59+
5360
#endif

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC/objects.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "PortNames.h"
2121
#include "PeripheralNames.h"
2222
#include "PinNames.h"
23+
#include <stddef.h>
2324

2425
#ifdef __cplusplus
2526
extern "C" {
@@ -70,6 +71,12 @@ struct trng_s {
7071
};
7172
#endif
7273

74+
#if DEVICE_QSPI
75+
struct qspi_s {
76+
uint32_t instance;
77+
};
78+
#endif
79+
7380
#include "gpio_object.h"
7481

7582
#ifdef __cplusplus

0 commit comments

Comments
 (0)