File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -65,10 +65,6 @@ Copyright (c) [2012-2019] Microchip Technology Inc.
65
65
66
66
#include "boot_config.h"
67
67
68
- #ifndef FLASH_ERASE_PAGE_MASK
69
- #define FLASH_ERASE_PAGE_MASK (~((FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS*2) - 1))
70
- #endif
71
-
72
68
73
69
#if ((BOOT_CONFIG_MAX_PACKET_SIZE - SIZE_OF_CMD_STRUCT_0 ) < MINIMUM_WRITE_BLOCK_SIZE )
74
70
#error "The maximum packet size is not large enough to store a full write block plus header. Make the max packet size larger."
Original file line number Diff line number Diff line change 28
28
#include <stdint.h>
29
29
#include <stdbool.h>
30
30
31
- #define FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS 1024U
31
+ #define FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS 1024UL
32
32
33
- #define FLASH_ERASE_PAGE_SIZE_IN_PC_UNITS (FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS*2U )
33
+ #define FLASH_ERASE_PAGE_SIZE_IN_PC_UNITS (FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS*2UL )
34
34
35
35
#define FLASH_UNLOCK_KEY 0x00AA0055
36
36
37
- #define FLASH_ERASE_PAGE_MASK (~((FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS*2U ) - 1U))
37
+ #define FLASH_ERASE_PAGE_MASK (~((FLASH_ERASE_PAGE_SIZE_IN_INSTRUCTIONS*2UL ) - 1UL))
38
38
void FLASH_Unlock (uint32_t key );
39
39
void FLASH_Lock (void );
40
40
You can’t perform that action at this time.
0 commit comments