diff options
| author | Uladzimir Pylinski <barthess@yandex.ru> | 2016-02-17 22:45:56 +0300 |
|---|---|---|
| committer | Uladzimir Pylinski <barthess@yandex.ru> | 2016-02-17 22:45:56 +0300 |
| commit | d56a6f02425c6b7780953dc99fb5d0966165ec59 (patch) | |
| tree | c76651f270fd186e2c3d0fc7db93b6b2777c17d0 /testhal/STM32/STM32F3xx/EEProm/mcuconf_community.h | |
| parent | 31066ddfbffd2ee801e63c090e30929bae5b0e43 (diff) | |
| parent | 9028916e8b89dcf9f8b41cefbd075efdf80cbac6 (diff) | |
| download | ChibiOS-Contrib-d56a6f02425c6b7780953dc99fb5d0966165ec59.tar.gz ChibiOS-Contrib-d56a6f02425c6b7780953dc99fb5d0966165ec59.tar.bz2 ChibiOS-Contrib-d56a6f02425c6b7780953dc99fb5d0966165ec59.zip | |
Merge pull request #42 from fpoussin/eeprom-pull
EEPROM Driver (pull request #42 from fpoussin/eeprom-pull)
The original driver was from barthess, modified by timonwong, fixed/cleaned it for 3.x/16.x+
Url: https://github.com/timonwong/ChibiOS-EEPROM
Testhal included, tested on real hardware as well for the SPI part.
Diffstat (limited to 'testhal/STM32/STM32F3xx/EEProm/mcuconf_community.h')
| -rw-r--r-- | testhal/STM32/STM32F3xx/EEProm/mcuconf_community.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testhal/STM32/STM32F3xx/EEProm/mcuconf_community.h b/testhal/STM32/STM32F3xx/EEProm/mcuconf_community.h new file mode 100644 index 0000000..4a13b56 --- /dev/null +++ b/testhal/STM32/STM32F3xx/EEProm/mcuconf_community.h @@ -0,0 +1,45 @@ +/* + ChibiOS/RT - Copyright (C) 2014 Uladzimir Pylinsky aka barthess + + 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. +*/ + +/* + * FSMC driver system settings. + */ +#define STM32_FSMC_USE_FSMC1 FALSE +#define STM32_FSMC_FSMC1_IRQ_PRIORITY 10 + +/* + * FSMC NAND driver system settings. + */ +#define STM32_NAND_USE_FSMC_NAND1 FALSE +#define STM32_NAND_USE_FSMC_NAND2 FALSE +#define STM32_NAND_USE_EXT_INT FALSE +#define STM32_NAND_DMA_STREAM STM32_DMA_STREAM_ID(2, 7) +#define STM32_NAND_DMA_PRIORITY 0 +#define STM32_NAND_DMA_ERROR_HOOK(nandp) osalSysHalt("DMA failure") + +/* + * FSMC SRAM driver system settings. + */ +#define STM32_USE_FSMC_SRAM FALSE +#define STM32_SRAM_USE_FSMC_SRAM1 FALSE +#define STM32_SRAM_USE_FSMC_SRAM2 FALSE +#define STM32_SRAM_USE_FSMC_SRAM3 FLASE +#define STM32_SRAM_USE_FSMC_SRAM4 FALSE + +/* + * FSMC SDRAM driver system settings. + */ +#define STM32_USE_FSMC_SDRAM FALSE |
