/* mbed Microcontroller Library * Copyright (c) 2018-2018 ARM Limited * SPDX-License-Identifier: Apache-2.0 * * Licensed 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * 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. */ #ifndef MBED_QSPI_FLASH_CONFIG_H #define MBED_QSPI_FLASH_CONFIG_H #include "../../W25Q32JV_config.h" // NRF doesn't uses read/write opcodes, instead it uses commands id's. // Before sending it to H/W opcodes are mapped to id's in Mbed hal qspi implementation // // for more details see: // targets\TARGET_NORDIC\TARGET_NRF5x\TARGET_SDK_15_0\modules\nrfx\mdk\nrf52840_bitfields.h // targets\TARGET_NORDIC\TARGET_NRF5x\qspi_api.c // NRF doesn't support read 1IO (opcode 0x03) #undef QSPI_CMD_READ_1IO #define QSPI_CMD_READ_1IO QSPI_CMD_READ_1IO_FAST #ifdef QSPI_SECTOR_COUNT #undef QSPI_SECTOR_COUNT #define QSPI_SECTOR_COUNT 1024 // for W25Q32JV #endif #endif // MBED_QSPI_FLASH_CONFIG_H