Pre-commit fixes.
Resolve codespell and EOF errors found in the pre-commit CI task.
This commit is contained in:
@@ -43,4 +43,4 @@ MAX32651EVKIT.
|
|||||||
|
|
||||||
To flash the signed image, the MSDK's OpenOCD variant must be used. To flash
|
To flash the signed image, the MSDK's OpenOCD variant must be used. To flash
|
||||||
the MAX32651EVKIT please install the bundled MSDK, and utilize the `flash-msdk`
|
the MAX32651EVKIT please install the bundled MSDK, and utilize the `flash-msdk`
|
||||||
and `<target>-msdk` rule and target.
|
and `<target>-msdk` rule and target.
|
||||||
|
@@ -85,7 +85,7 @@ SECTIONS {
|
|||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_bss = .;
|
_bss = .;
|
||||||
*(.bss*) /*read-write zero initialized data: uninitialzed global variable*/
|
*(.bss*) /*read-write zero initialized data: uninitialized global variable*/
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
_ebss = ALIGN(., 4);
|
_ebss = ALIGN(., 4);
|
||||||
} > SRAM
|
} > SRAM
|
||||||
|
@@ -85,7 +85,7 @@ SECTIONS {
|
|||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_bss = .;
|
_bss = .;
|
||||||
*(.bss*) /*read-write zero initialized data: uninitialzed global variable*/
|
*(.bss*) /*read-write zero initialized data: uninitialized global variable*/
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
_ebss = ALIGN(., 4);
|
_ebss = ALIGN(., 4);
|
||||||
} > SRAM
|
} > SRAM
|
||||||
|
@@ -98,7 +98,7 @@ SECTIONS {
|
|||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_bss = .;
|
_bss = .;
|
||||||
*(.bss*) /*read-write zero initialized data: uninitialzed global variable*/
|
*(.bss*) /*read-write zero initialized data: uninitialized global variable*/
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
_ebss = ALIGN(., 4);
|
_ebss = ALIGN(., 4);
|
||||||
} > SRAM
|
} > SRAM
|
||||||
|
@@ -121,7 +121,7 @@ SIGN_EXE := sign_app.exe
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Rule to sign the build. This will in-place modifiy the existing .elf file
|
# Rule to sign the build. This will in-place modify the existing .elf file
|
||||||
# an populate the .sig section with the signature value
|
# an populate the .sig section with the signature value
|
||||||
sign-build: $(BUILD)/$(PROJECT).elf
|
sign-build: $(BUILD)/$(PROJECT).elf
|
||||||
$(OBJCOPY) $(BUILD)/$(PROJECT).elf -R .sig -O binary $(BUILD)/$(PROJECT).bin
|
$(OBJCOPY) $(BUILD)/$(PROJECT).elf -R .sig -O binary $(BUILD)/$(PROJECT).bin
|
||||||
|
@@ -106,7 +106,7 @@ uint32_t board_button_read(void) {
|
|||||||
|
|
||||||
size_t board_get_unique_id(uint8_t id[], size_t max_len) {
|
size_t board_get_unique_id(uint8_t id[], size_t max_len) {
|
||||||
uint8_t hw_id[MXC_SYS_USN_CHECKSUM_LEN];//USN Buffer
|
uint8_t hw_id[MXC_SYS_USN_CHECKSUM_LEN];//USN Buffer
|
||||||
/* All other 2nd parameter is optional checkum buffer */
|
/* All other 2nd parameter is optional checksum buffer */
|
||||||
MXC_SYS_GetUSN(hw_id, NULL);
|
MXC_SYS_GetUSN(hw_id, NULL);
|
||||||
|
|
||||||
size_t act_len = TU_MIN(max_len, MXC_SYS_USN_LEN);
|
size_t act_len = TU_MIN(max_len, MXC_SYS_USN_LEN);
|
||||||
|
@@ -101,7 +101,7 @@ SECTIONS {
|
|||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_bss = .;
|
_bss = .;
|
||||||
*(.bss*) /*read-write zero initialized data: uninitialzed global variable*/
|
*(.bss*) /*read-write zero initialized data: uninitialized global variable*/
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
_ebss = ALIGN(., 4);
|
_ebss = ALIGN(., 4);
|
||||||
} > SRAM
|
} > SRAM
|
||||||
|
@@ -104,7 +104,7 @@ uint32_t board_button_read(void) {
|
|||||||
|
|
||||||
size_t board_get_unique_id(uint8_t id[], size_t max_len) {
|
size_t board_get_unique_id(uint8_t id[], size_t max_len) {
|
||||||
uint8_t hw_id[MXC_SYS_USN_CHECKSUM_LEN];//USN Buffer
|
uint8_t hw_id[MXC_SYS_USN_CHECKSUM_LEN];//USN Buffer
|
||||||
/* All other 2nd parameter is optional checkum buffer */
|
/* All other 2nd parameter is optional checksum buffer */
|
||||||
MXC_SYS_GetUSN(hw_id, NULL);
|
MXC_SYS_GetUSN(hw_id, NULL);
|
||||||
|
|
||||||
size_t act_len = TU_MIN(max_len, MXC_SYS_USN_LEN);
|
size_t act_len = TU_MIN(max_len, MXC_SYS_USN_LEN);
|
||||||
|
@@ -130,7 +130,7 @@ SECTIONS {
|
|||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_bss = .;
|
_bss = .;
|
||||||
*(.bss*) /*read-write zero initialized data: uninitialzed global variable*/
|
*(.bss*) /*read-write zero initialized data: uninitialized global variable*/
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
_ebss = ALIGN(., 4);
|
_ebss = ALIGN(., 4);
|
||||||
} > SRAM
|
} > SRAM
|
||||||
|
@@ -103,7 +103,7 @@ uint32_t board_button_read(void) {
|
|||||||
|
|
||||||
size_t board_get_unique_id(uint8_t id[], size_t max_len) {
|
size_t board_get_unique_id(uint8_t id[], size_t max_len) {
|
||||||
uint8_t hw_id[MXC_SYS_USN_CHECKSUM_LEN];//USN Buffer
|
uint8_t hw_id[MXC_SYS_USN_CHECKSUM_LEN];//USN Buffer
|
||||||
/* All other 2nd parameter is optional checkum buffer */
|
/* All other 2nd parameter is optional checksum buffer */
|
||||||
MXC_SYS_GetUSN(hw_id, NULL);
|
MXC_SYS_GetUSN(hw_id, NULL);
|
||||||
|
|
||||||
size_t act_len = TU_MIN(max_len, MXC_SYS_USN_LEN);
|
size_t act_len = TU_MIN(max_len, MXC_SYS_USN_LEN);
|
||||||
|
@@ -127,7 +127,7 @@ SECTIONS {
|
|||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_bss = .;
|
_bss = .;
|
||||||
*(.bss*) /*read-write zero initialized data: uninitialzed global variable*/
|
*(.bss*) /*read-write zero initialized data: uninitialized global variable*/
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
_ebss = ALIGN(., 4);
|
_ebss = ALIGN(., 4);
|
||||||
} > SRAM
|
} > SRAM
|
||||||
@@ -138,7 +138,7 @@ SECTIONS {
|
|||||||
_shared = .;
|
_shared = .;
|
||||||
*(.mailbox*)
|
*(.mailbox*)
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
*(.shared*) /*read-write zero initialized data: uninitialzed global variable*/
|
*(.shared*) /*read-write zero initialized data: uninitialized global variable*/
|
||||||
_eshared = ALIGN(., 4);
|
_eshared = ALIGN(., 4);
|
||||||
} > SRAM
|
} > SRAM
|
||||||
__shared_data = LOADADDR(.shared);
|
__shared_data = LOADADDR(.shared);
|
||||||
|
@@ -196,7 +196,7 @@ static bool handle_xfer_in(uint_fast8_t ep_addr) {
|
|||||||
}
|
}
|
||||||
pipe->remaining = rem - len;
|
pipe->remaining = rem - len;
|
||||||
}
|
}
|
||||||
MXC_USBHS->incsrl = MXC_F_USBHS_INCSRL_INPKTRDY;//TODO: Verify a | isnt needed
|
MXC_USBHS->incsrl = MXC_F_USBHS_INCSRL_INPKTRDY;//TODO: Verify a | isn't needed
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user