Skip to content

Commit 0ed7e69

Browse files
committed
RAM savings: make some variables constants
1 parent b9efc3b commit 0ed7e69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/target/target_family.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ __WEAK const target_family_descriptor_t g_maxim_max3266x_family = {0};
7373
//! descriptors has a weak reference defined above, the entry in this list for a family whose
7474
//! descriptor is not included in the link will resolve to NULL and init_family() can skip it.
7575
__WEAK
76-
const target_family_descriptor_t *g_families[] = {
76+
const target_family_descriptor_t * const g_families[] = {
7777
&g_hw_reset_family,
7878
&g_sw_vectreset_family,
7979
&g_sw_sysresetreq_family,

source/usb/usb_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3323,7 +3323,7 @@ const struct {
33233323
}
33243324

33253325
__WEAK \
3326-
struct {
3326+
const struct {
33273327
WEBUSB_URL_DEF(WEBUSB_LANDING_URL);
33283328
WEBUSB_URL_DEF(WEBUSB_ORIGIN_URL);
33293329
} USBD_WebUSBURLDescriptor

0 commit comments

Comments
 (0)