Skip to content

Commit

Permalink
RAM savings: make some variables constants
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrossard committed Feb 10, 2023
1 parent d398fc1 commit 0e90ebd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/target/target_family.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ __WEAK const target_family_descriptor_t g_maxim_max3266x_family = {0};
//! descriptors has a weak reference defined above, the entry in this list for a family whose
//! descriptor is not included in the link will resolve to NULL and init_family() can skip it.
__WEAK
const target_family_descriptor_t *g_families[] = {
const target_family_descriptor_t * const g_families[] = {
&g_hw_reset_family,
&g_sw_vectreset_family,
&g_sw_sysresetreq_family,
Expand Down
2 changes: 1 addition & 1 deletion source/usb/usb_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -2455,7 +2455,7 @@ const struct {
}

__WEAK \
struct {
const struct {
WEBUSB_URL_DEF(WEBUSB_LANDING_URL);
WEBUSB_URL_DEF(WEBUSB_ORIGIN_URL);
} USBD_WebUSBURLDescriptor
Expand Down

0 comments on commit 0e90ebd

Please sign in to comment.