takashi kadono / Mbed OS Nucleo_446

Dependencies:   ssd1331

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers flash_config.h Source File

flash_config.h

00001 /* mbed Microcontroller Library
00002  * Copyright (c) 2018-2018 ARM Limited
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 #ifndef MBED_QSPI_FLASH_CONFIG_H
00017 #define MBED_QSPI_FLASH_CONFIG_H
00018 
00019 #include "../../MX25RXX35F_config.h"
00020 
00021 // NRF doesn't uses read/write opcodes, instead it uses commands id's.
00022 // Before sending it to H/W opcodes are mapped to id's in Mbed hal qspi implementation
00023 //
00024 // for more details see:
00025 // targets\TARGET_NORDIC\TARGET_NRF5x\TARGET_SDK_14_2\device\nrf52840_bitfields.h
00026 // targets\TARGET_NORDIC\TARGET_NRF5x\qspi_api.c
00027 
00028 // NRF doesn't support read 1IO (opcode 0x03)
00029 #undef QSPI_CMD_READ_1IO
00030 #define QSPI_CMD_READ_1IO                         QSPI_CMD_READ_1IO_FAST
00031 
00032 #ifdef QSPI_SECTOR_COUNT
00033 #undef QSPI_SECTOR_COUNT
00034 #define QSPI_SECTOR_COUNT                       2048 // for MX25R6435F
00035 #endif
00036 
00037 #endif // MBED_QSPI_FLASH_CONFIG_H