small fixes

This commit is contained in:
Michele Balistreri 2023-07-10 12:18:24 +02:00
parent aa00c347df
commit 9d27a3d031
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
3 changed files with 9 additions and 7 deletions

View File

@ -83,7 +83,7 @@ hal_err_t camera_start() {
}
hal_err_t camera_stop() {
hal_gpio_set(GPIO_CAMERA_PWDN, GPIO_SET);
hal_gpio_set(GPIO_CAMERA_PWDN, _CAM_PWR_OFF);
hal_err_t err = hal_camera_stop();
ulTaskNotifyTakeIndexed(CAMERA_TASK_NOTIFICATION_IDX, pdTRUE, 0);

View File

@ -5,7 +5,7 @@
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-65952913138969067" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-1326190310210017777" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
@ -16,7 +16,7 @@
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-65952913138969067" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-1326190310210017777" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>

View File

@ -35,6 +35,9 @@ def serialize_token(token):
def pad_write(f, buf, page_limit):
f.write(buf)
if page_limit != PAGE_SIZE:
return
size = len(buf)
padlen = WORD_SIZE - (size % WORD_SIZE)
@ -44,10 +47,9 @@ def pad_write(f, buf, page_limit):
padlen = padlen - 1
size = size + 1
if page_limit == PAGE_SIZE:
while size < PAGE_SIZE:
f.write(0xff.to_bytes(1))
size = size + 1
while size < PAGE_SIZE:
f.write(0xff.to_bytes(1))
size = size + 1
def serialize_db(f, page_align, chains, tokens):
page_limit = PAGE_SIZE if page_align else 0xffffffff