diff options
author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /lib/chibios-contrib/ext/mcux-sdk/components/flash/mflash/lpc54xxx/mflash_drv.h |
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/components/flash/mflash/lpc54xxx/mflash_drv.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/components/flash/mflash/lpc54xxx/mflash_drv.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/components/flash/mflash/lpc54xxx/mflash_drv.h b/lib/chibios-contrib/ext/mcux-sdk/components/flash/mflash/lpc54xxx/mflash_drv.h new file mode 100644 index 000000000..c98f75745 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/components/flash/mflash/lpc54xxx/mflash_drv.h | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | * Copyright 2017-2020 NXP | ||
3 | * | ||
4 | * SPDX-License-Identifier: BSD-3-Clause | ||
5 | */ | ||
6 | |||
7 | #ifndef __MFLASH_DRV_H__ | ||
8 | #define __MFLASH_DRV_H__ | ||
9 | |||
10 | #include "mflash_common.h" | ||
11 | |||
12 | /* Flash constants */ | ||
13 | #ifndef MFLASH_SECTOR_SIZE | ||
14 | #define MFLASH_SECTOR_SIZE (4096) | ||
15 | #endif | ||
16 | |||
17 | #ifndef MFLASH_PAGE_SIZE | ||
18 | #define MFLASH_PAGE_SIZE (256) | ||
19 | #endif | ||
20 | |||
21 | #ifndef MFLASH_SPIFI | ||
22 | #define MFLASH_SPIFI (SPIFI0) | ||
23 | #endif | ||
24 | |||
25 | #ifndef MFLASH_BAUDRATE | ||
26 | #define MFLASH_BAUDRATE (96000000) | ||
27 | #endif | ||
28 | |||
29 | #endif | ||