Fixed warnings.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@16247 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2023-05-18 07:48:37 +00:00
parent 78ddc5c689
commit 284a08068d
3 changed files with 14 additions and 1 deletions

View File

@ -11,6 +11,13 @@
<include style="regular">oop_base_interface.h</include>
</includes>
<definitions_early>
<verbatim><![CDATA[
/* Temporary, in order to avoid conflicts with the same definitions in old
HAL streams.*/
#undef STM_OK
#undef STM_TIMEOUT
#undef STM_RESET
]]></verbatim>
<group description="Streams return codes">
<define name="STM_OK" value="0" >
<brief>Returned code for operation successful.</brief>

View File

@ -33,6 +33,12 @@
/* Module constants. */
/*===========================================================================*/
/* Temporary, in order to avoid conflicts with the same definitions in old
HAL streams.*/
#undef STM_OK
#undef STM_TIMEOUT
#undef STM_RESET
/**
* @name Streams return codes
* @{

View File

@ -314,7 +314,7 @@ ${s}
[/#if]
[#elseif this?node_name == "verbatim"]
[#local ccode = (this[0]!"")?trim]
[@GenerateIndentedCCode indent ccode /]
[@GenerateIndentedCCode "" ccode /]
[#if node?node_name?starts_with("definitions")]
[/#if]