aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/uart_lld.h
Commit message (Expand)AuthorAgeFilesLines
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3520 35acf78f-673a-0410...gdisirio2011-11-231-0/+100
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3481 35acf78f-673a-0410...gdisirio2011-11-101-0/+5
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3317 35acf78f-673a-0410...gdisirio2011-09-141-0/+318
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3170 35acf78f-673a-0410...gdisirio2011-07-231-322/+0
* Fixed bug 3311999.gdisirio2011-06-051-6/+6
* Added DMA sharing in the STM32 HAL.gdisirio2011-04-101-20/+6
* License updated.gdisirio2011-03-181-1/+2
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2808 35acf78f-673a-0410...gdisirio2011-03-081-25/+25
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2789 35acf78f-673a-0410...gdisirio2011-03-031-5/+1
* Improved STM32 HAL support.gdisirio2010-11-141-3/+14
* Fixed bug 3100946, renamed HAL switches removing the CH_ part.gdisirio2010-11-011-4/+4
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2291 35acf78f-673a-0410...gdisirio2010-10-251-1/+1
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2246 35acf78f-673a-0410...gdisirio2010-10-111-24/+60
* HAL improvements, mailboxes macro name changed.gdisirio2010-10-081-0/+3
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2167 35acf78f-673a-0410...gdisirio2010-09-071-2/+2
* UART driver improvements.gdisirio2010-08-151-5/+14
* UART driver model improvements, templates and STM32 implementation updated.gdisirio2010-08-121-2/+2
* Fixed bug 3041414. Various improvements to the STM32 HAL.gdisirio2010-08-081-0/+10
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2102 35acf78f-673a-0410...gdisirio2010-07-311-0/+26
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2098 35acf78f-673a-0410...gdisirio2010-07-301-1/+65
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2095 35acf78f-673a-0410...gdisirio2010-07-271-1/+1
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2094 35acf78f-673a-0410...gdisirio2010-07-271-2/+21
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2092 35acf78f-673a-0410...gdisirio2010-07-261-10/+8
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2090 35acf78f-673a-0410...gdisirio2010-07-261-0/+163
ee software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program; if not, write to the Free Software -- Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, -- MA 02110-1301, USA. with Name_Table; use Name_Table; with Netlists.Builders; use Netlists.Builders; with Vhdl.Utils; use Vhdl.Utils; with Vhdl.Annotations; use Vhdl.Annotations; with Synth.Values; use Synth.Values; with Synth.Context; use Synth.Context; with Synth.Decls; use Synth.Decls; with Synth.Insts; use Synth.Insts; with Synth.Environment.Debug; pragma Unreferenced (Synth.Environment.Debug); with Errorout; use Errorout; with Vhdl.Errors; use Vhdl.Errors; with Vhdl.Std_Package; package body Synthesis is procedure Synth_Convertible_Declarations (Syn_Inst : Synth_Instance_Acc) is use Vhdl.Std_Package; begin Create_Object (Syn_Inst, Convertible_Integer_Type_Definition, Get_Value (Syn_Inst, Universal_Integer_Type_Definition)); Create_Object (Syn_Inst, Convertible_Real_Type_Definition, Get_Value (Syn_Inst, Universal_Real_Type_Definition)); end Synth_Convertible_Declarations; procedure Synth_Package_Declaration (Parent_Inst : Synth_Instance_Acc; Pkg : Node) is use Vhdl.Std_Package; pragma Assert (not Is_Uninstantiated_Package (Pkg)); Info : constant Sim_Info_Acc := Get_Info (Pkg); Syn_Inst : Synth_Instance_Acc; Val : Value_Acc; begin Syn_Inst := Make_Instance (Parent_Inst, Info); Val := Create_Value_Instance (Syn_Inst); if Parent_Inst /= Global_Instance then Create_Object (Parent_Inst, Pkg, Val); else Parent_Inst.Objects (Info.Pkg_Slot) := Val; end if; Synth_Declarations (Syn_Inst, Get_Declaration_Chain (Pkg)); if Pkg = Vhdl.Std_Package.Standard_Package then Synth_Convertible_Declarations (Syn_Inst); end if; end Synth_Package_Declaration; procedure Synth_Dependencies (Parent_Inst : Synth_Instance_Acc; Unit : Node) is Dep_List : constant Node_List := Get_Dependence_List (Unit); Dep_It : List_Iterator; Dep : Node; Dep_Unit : Node; begin Dep_It := List_Iterate (Dep_List); while Is_Valid (Dep_It) loop Dep := Get_Element (Dep_It); pragma Assert (Get_Kind (Dep) = Iir_Kind_Design_Unit); if not Get_Elab_Flag (Dep) then Set_Elab_Flag (Dep, True); Synth_Dependencies (Parent_Inst, Dep); Dep_Unit := Get_Library_Unit (Dep); case Iir_Kinds_Library_Unit (Get_Kind (Dep_Unit)) is when Iir_Kind_Entity_Declaration => null; when Iir_Kind_Configuration_Declaration => null; when Iir_Kind_Context_Declaration => null; when Iir_Kind_Package_Declaration => Synth_Package_Declaration (Parent_Inst, Dep_Unit); when Iir_Kind_Package_Instantiation_Declaration => null; when Iir_Kind_Package_Body => null; when Iir_Kind_Architecture_Body => null; end case; end if; Next (Dep_It); end loop; end Synth_Dependencies; function Synth_Design (Design : Node) return Module is Unit : constant Node := Get_Library_Unit (Design); Arch : Node; Config : Node; Syn_Inst : Synth_Instance_Acc; begin -- Extract architecture from design. case Get_Kind (Unit) is when Iir_Kind_Architecture_Body => Arch := Unit; Config := Get_Library_Unit (Get_Default_Configuration_Declaration (Arch)); when Iir_Kind_Configuration_Declaration => Config := Unit; Arch := Get_Named_Entity (Get_Block_Specification (Get_Block_Configuration (Unit))); when others => Error_Kind ("synth_design", Unit); end case; Global_Module := New_Design (New_Sname_Artificial (Get_Identifier ("top"))); Build_Context := Build_Builders (Global_Module); Synth.Values.Init; Global_Instance := Make_Instance (null, Global_Info); Synth.Insts.Init; -- Dependencies first. Synth_Dependencies (Global_Instance, Get_Design_Unit (Get_Entity (Arch))); Synth_Dependencies (Global_Instance, Get_Design_Unit (Arch)); Synth_Top_Entity (Arch, Config); Synth_All_Instances; if Errorout.Nbr_Errors > 0 then raise Compilation_Error; end if; pragma Unreferenced (Syn_Inst); return Global_Module; end Synth_Design; end Synthesis;