From 0ff8cd467c48f09b0b5a1aaf4841982b309e742f Mon Sep 17 00:00:00 2001 From: TimerOverflow <48713974+TimerOverflow@users.noreply.github.com> Date: Fri, 10 Sep 2021 16:34:29 +0900 Subject: [PATCH] 1. first release --- AvrUartBaud.c | 95 + AvrUartBaud.h | 75 + README.md | 6 + example/AvrUartBaud.dep | 208 +++ example/AvrUartBaud.ewp | 2001 +++++++++++++++++++++ example/AvrUartBaud.eww | 10 + example/Debug/Exe/AvrUartBaud(AT64).d90 | Bin 0 -> 10873 bytes example/Debug/Obj/AvrUartBaud.r90 | Bin 0 -> 12057 bytes example/Debug/Obj/main.r90 | Bin 0 -> 6196 bytes example/Release/Exe/AvrUartBaud(AT64).hex | 62 + example/Release/Obj/AvrUartBaud.pbd | 4 + example/Release/Obj/AvrUartBaud.pbi | 22 + example/Release/Obj/AvrUartBaud.r90 | Bin 0 -> 11169 bytes example/Release/Obj/main.pbi | 22 + example/Release/Obj/main.r90 | Bin 0 -> 5489 bytes example/main.c | 19 + example/settings/AvrUartBaud.cspy.bat | 15 + example/settings/AvrUartBaud.dbgdt | 5 + example/settings/AvrUartBaud.dni | 18 + example/settings/AvrUartBaud.wsdt | 141 ++ 20 files changed, 2703 insertions(+) create mode 100644 AvrUartBaud.c create mode 100644 AvrUartBaud.h create mode 100644 example/AvrUartBaud.dep create mode 100644 example/AvrUartBaud.ewp create mode 100644 example/AvrUartBaud.eww create mode 100644 example/Debug/Exe/AvrUartBaud(AT64).d90 create mode 100644 example/Debug/Obj/AvrUartBaud.r90 create mode 100644 example/Debug/Obj/main.r90 create mode 100644 example/Release/Exe/AvrUartBaud(AT64).hex create mode 100644 example/Release/Obj/AvrUartBaud.pbd create mode 100644 example/Release/Obj/AvrUartBaud.pbi create mode 100644 example/Release/Obj/AvrUartBaud.r90 create mode 100644 example/Release/Obj/main.pbi create mode 100644 example/Release/Obj/main.r90 create mode 100644 example/main.c create mode 100644 example/settings/AvrUartBaud.cspy.bat create mode 100644 example/settings/AvrUartBaud.dbgdt create mode 100644 example/settings/AvrUartBaud.dni create mode 100644 example/settings/AvrUartBaud.wsdt diff --git a/AvrUartBaud.c b/AvrUartBaud.c new file mode 100644 index 0000000..bc16f4a --- /dev/null +++ b/AvrUartBaud.c @@ -0,0 +1,95 @@ +/*********************************************************************************/ +/* + * Author : Jung Hyun Gu + * File name : AvrUartBaud.c +*/ +/*********************************************************************************/ +#include "AvrUartBaud.h" +/*********************************************************************************/ +/** Global variable **/ + + +/*********************************************************************************/ +char AvrUartBaudControlInit(tag_UartBaudControl *BaudCtrl, long CpuClock, unsigned char volatile __tiny *pUBRRL, unsigned char volatile __tiny *pUBRRH) +{ + /* + 1) Parameter + - BaudCtrl : 'tag_UartBaudControl'의 인스턴스 주소. + - CpuClock : Target CPU의 Clock Speed. + - pUBRRL, pUBRRH : Uart Baud Rate Register의 주소. + + 2) Description + - Baud를 관리할 'tag_UartBaudControl' 인스턴스를 초기화한다. + - 본 초기화는 한번만 실행하면 된다. + - 다음 함수들은 반드시 본 초기화를 실행한 후 호출해야 한다. + AvrUartBaudChange(); + */ + + if((pUBRRL) == null || (pUBRRH == null)) + { + return false; + } + + BaudCtrl->CpuClock = CpuClock; + BaudCtrl->Baud = BAUD_INIT; + + BaudCtrl->pUBRRL = pUBRRL; + BaudCtrl->pUBRRH = pUBRRH; + + BaudCtrl->Bit.Init = true; + + return BaudCtrl->Bit.Init; +} +/*********************************************************************************/ +void AvrUartBaudChange(tag_UartBaudControl *BaudCtrl, Enum_BaudRate Baud) +{ + /* + 1) Parameter + - BaudCtrl : 'tag_UartBaudControl'의 인스턴스 주소. + - Baud : 변경하고자 하는 baud rate. + + 2) Description + - 'BaudCtrl' 인스턴스의 baud rate를 변경한다. + */ + + if(BaudCtrl->Bit.Init == false) + { + return; + /* error */ + } + + if(BaudCtrl->Baud != Baud) + { + BaudCtrl->Baud = Baud; + + switch(Baud) + { + default : + case BAUD_9600 : + *BaudCtrl->pUBRRH = (unsigned char) (GET_UBRR(BaudCtrl->CpuClock, 9600, 0) >> 8); + *BaudCtrl->pUBRRL = (unsigned char) (GET_UBRR(BaudCtrl->CpuClock, 9600, 0) & 0x00FF); + break; + + case BAUD_19200 : + *BaudCtrl->pUBRRH = (unsigned char) (GET_UBRR(BaudCtrl->CpuClock, 19200, 0) >> 8); + *BaudCtrl->pUBRRL = (unsigned char) (GET_UBRR(BaudCtrl->CpuClock, 19200, 0) & 0x00FF); + break; + + case BAUD_38400 : + *BaudCtrl->pUBRRH = (unsigned char) (GET_UBRR(BaudCtrl->CpuClock, 38400, 0) >> 8); + *BaudCtrl->pUBRRL = (unsigned char) (GET_UBRR(BaudCtrl->CpuClock, 38400, 0) & 0x00FF); + break; + + case BAUD_57600 : + *BaudCtrl->pUBRRH = (unsigned char) (GET_UBRR(BaudCtrl->CpuClock, 57600, 0) >> 8); + *BaudCtrl->pUBRRL = (unsigned char) (GET_UBRR(BaudCtrl->CpuClock, 57600, 0) & 0x00FF); + break; + + case BAUD_115200 : + *BaudCtrl->pUBRRH = (unsigned char) (GET_UBRR(BaudCtrl->CpuClock, 115200, 0) >> 8); + *BaudCtrl->pUBRRL = (unsigned char) (GET_UBRR(BaudCtrl->CpuClock, 115200, 0) & 0x00FF); + break; + } + } +} +/*********************************************************************************/ diff --git a/AvrUartBaud.h b/AvrUartBaud.h new file mode 100644 index 0000000..f1d5796 --- /dev/null +++ b/AvrUartBaud.h @@ -0,0 +1,75 @@ +/*********************************************************************************/ +/* + * Author : Jung Hyun Gu + * File name : AvrUartBaud.h +*/ +/*********************************************************************************/ +#ifndef __AVR_UART_BAUD_H__ +#define __AVR_UART_BAUD_H__ +/*********************************************************************************/ +/** REVISION HISTORY **/ +/* + 2016. 10. 28. - 초기버전. + Jung Hyun Gu + + +*/ +/*********************************************************************************/ +/**Define**/ + +#define true 1 +#define false 0 +#define null 0 + +#define GET_UBRR(CPU_CLOCK, BAUD, U2X) ((CPU_CLOCK / (U2X ? 8 : 16) / BAUD) - 1) + +/*********************************************************************************/ +/**Enum**/ + +typedef enum +{ + BAUD_9600 = 0, + BAUD_19200, + BAUD_38400, + BAUD_57600, + BAUD_115200, + BAUD_INIT, +}Enum_BaudRate; + +/*********************************************************************************/ +/**Struct**/ + +typedef struct +{ + struct + { + unsigned char Init : 1; //초기화 + + }Bit; + + unsigned char volatile __tiny *pUBRRL; // + unsigned char volatile __tiny *pUBRRH; // + + long CpuClock; //CPU클록 + Enum_BaudRate Baud; // +}tag_UartBaudControl; + +/*********************************************************************************/ +/**Function**/ + +char AvrUartBaudControlInit(tag_UartBaudControl *BaudCtrl, long CpuClock, unsigned char volatile __tiny *pUBRRL, unsigned char volatile __tiny *pUBRRH); +void AvrUartBaudChange(tag_UartBaudControl *BaudCtrl, Enum_BaudRate Baud); + +/*********************************************************************************/ +#endif //__AVR_UART_BAUD_H__ + + + + + + + + + + + diff --git a/README.md b/README.md index 259ce0d..4a00153 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ # AvrUartBaud baudrate setting library for AVR + +- various baudrate support (9600 / 19200 / 38400 / 57600 / 115200) +- automatic calculate baudrate optimized cpu clock 11.0592Mhz, 14.7456Mhz + +# Build & Tested Environment +- IAR C/C++ Compiler for AVR 6.11.1 (6.11.1.50453) diff --git a/example/AvrUartBaud.dep b/example/AvrUartBaud.dep new file mode 100644 index 0000000..24ac81a --- /dev/null +++ b/example/AvrUartBaud.dep @@ -0,0 +1,208 @@ + + + + 2 + 3752300360 + + Debug + + $PROJ_DIR$\main.c + $PROJ_DIR$\Debug\Obj\main.r90 + $PROJ_DIR$\Debug\Exe\AvrUartBaud.d90 + $PROJ_DIR$\Debug\Obj\AvrUartBaud.pbd + $PROJ_DIR$\Debug\Obj\main.pbi + $TOOLKIT_DIR$\inc\comp_a90.h + $TOOLKIT_DIR$\inc\intrinsics.h + $TOOLKIT_DIR$\inc\inavr.h + $PROJ_DIR$\Debug\Obj\AvrUartBaud.r90 + $PROJ_DIR$\..\AvrUartBaud.h + $TOOLKIT_DIR$\inc\iom64.h + $TOOLKIT_DIR$\inc\iomacro.h + $PROJ_DIR$\Debug\Exe\AvrUartBaud(AT64).d90 + $TOOLKIT_DIR$\inc\ina90.h + $TOOLKIT_DIR$\config\lnkm64s.xcl + $TOOLKIT_DIR$\lib\clib\cl3s-ec_mul-sf.r90 + $PROJ_DIR$\..\AvrUartBaud.c + $PROJ_DIR$\Debug\Obj\AvrUartBaud.pbi + $TOOLKIT_DIR$\inc\bitdefinitions\iom64.inc + + + [ROOT_NODE] + + + XLINK + 12 + + + + + $PROJ_DIR$\main.c + + + BICOMP + 4 + + + ICCAVR + 1 + + + + + BICOMP + 10 11 18 13 7 6 5 + + + ICCAVR + 10 11 18 13 7 6 5 9 + + + + + $PROJ_DIR$\Debug\Obj\AvrUartBaud.pbd + + + BILINK + 17 4 + + + + + $PROJ_DIR$\Debug\Exe\AvrUartBaud(AT64).d90 + + + XLINK + 14 8 1 15 + + + + + $PROJ_DIR$\..\AvrUartBaud.c + + + BICOMP + 17 + + + ICCAVR + 8 + + + + + BICOMP + 9 + + + ICCAVR + 9 + + + + + [REBUILD_ALL] + + + + Release + + $PROJ_DIR$\main.c + $PROJ_DIR$\Release\Obj\AvrUartBaud.r90 + $PROJ_DIR$\Release\Obj\AvrUartBaud.pbi + $PROJ_DIR$\Release\Exe\AvrUartBaud(AT64).hex + $TOOLKIT_DIR$\inc\comp_a90.h + $TOOLKIT_DIR$\inc\intrinsics.h + $TOOLKIT_DIR$\inc\inavr.h + $PROJ_DIR$\..\AvrUartBaud.h + $TOOLKIT_DIR$\inc\iom64.h + $TOOLKIT_DIR$\inc\iomacro.h + $TOOLKIT_DIR$\inc\ina90.h + $PROJ_DIR$\Release\Obj\main.r90 + $TOOLKIT_DIR$\config\lnkm64s.xcl + $PROJ_DIR$\Release\Obj\main.pbi + $TOOLKIT_DIR$\lib\clib\cl3s-ec_mul-sf.r90 + $PROJ_DIR$\..\AvrUartBaud.c + $PROJ_DIR$\Release\Obj\AvrUartBaud.pbd + $TOOLKIT_DIR$\inc\bitdefinitions\iom64.inc + $PROJ_DIR$\Release\Exe\AvrUartBaud.hex + + + [ROOT_NODE] + + + XLINK + 3 + + + + + $PROJ_DIR$\main.c + + + BICOMP + 13 + + + ICCAVR + 11 + + + + + BICOMP + 8 9 17 10 6 5 4 + + + ICCAVR + 8 9 17 10 6 5 4 7 + + + + + $PROJ_DIR$\Release\Exe\AvrUartBaud(AT64).hex + + + XLINK + 12 1 11 14 + + + + + $PROJ_DIR$\..\AvrUartBaud.c + + + BICOMP + 2 + + + ICCAVR + 1 + + + + + BICOMP + 7 + + + ICCAVR + 7 + + + + + $PROJ_DIR$\Release\Obj\AvrUartBaud.pbd + + + BILINK + 2 13 + + + + + [REBUILD_ALL] + + + + + diff --git a/example/AvrUartBaud.ewp b/example/AvrUartBaud.ewp new file mode 100644 index 0000000..e6b8891 --- /dev/null +++ b/example/AvrUartBaud.ewp @@ -0,0 +1,2001 @@ + + + + 2 + + Debug + + AVR + + 1 + + General + 11 + + 9 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCAVR + 6 + + 17 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AAVR + 5 + + 11 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + CUSTOM + 3 + + + + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + XLINK + 2 + + 13 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + XAR + 2 + + 0 + 1 + 1 + + + + + + + BILINK + 0 + + + + + Release + + AVR + + 0 + + General + 11 + + 9 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCAVR + 6 + + 17 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AAVR + 5 + + 11 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + CUSTOM + 3 + + + + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + XLINK + 2 + + 13 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + XAR + 2 + + 0 + 1 + 0 + + + + + + + BILINK + 0 + + + + + $PROJ_DIR$\..\AvrUartBaud.c + + + $PROJ_DIR$\main.c + + + + diff --git a/example/AvrUartBaud.eww b/example/AvrUartBaud.eww new file mode 100644 index 0000000..fc2088e --- /dev/null +++ b/example/AvrUartBaud.eww @@ -0,0 +1,10 @@ + + + + + $WS_DIR$\AvrUartBaud.ewp + + + + + diff --git a/example/Debug/Exe/AvrUartBaud(AT64).d90 b/example/Debug/Exe/AvrUartBaud(AT64).d90 new file mode 100644 index 0000000000000000000000000000000000000000..6ca3472c2678b2c0fa81377e836ad4812b9e1773 GIT binary patch literal 10873 zcmd5iTWlNGm1l;OL`oDzS+b)fvPIjnV>z)b>gn;?rYMSf(6T5?l%HzHG&PnO^P!NG z{74&Hania@(prh=c7rU?4Nzc_kDvt>i`qpS7sYy8U|Smy7TB*18~CGH1YH*ucDsu> z+H>xmA!kTQU8DI}5_2EtanIwv&b>1~*u2$IZoTwV3y76>#GkEvB;H;5dC4!nxc9}c zR(`$mo0a?a2j-H6Vm|HM^Uxj~&c^}r7F>eGg)nV?y zoZ6&(ALb(F`_=q_njcd0ZZ+>w^IkQ_HW}Z5n)@*?$9964qaLOcn4=!1GipAKIqGRj zW8RJeQTt(^XH-5#mNT0z96CA{^mq?5DDp!$hkEl+lqhnJQg`3r(2$E&P$pa_TG8U^ z84C=J2YsX;G~q+d-=zFkm~6zyCdHbC8ZE#nT(`zQpq5cnvTRT$)UL<*0|E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77~BvCzKIv)B9l(~tgJc=)k!_uoD)z2(Th zDlL=^{1JV&xlz5Ts$|~=`bOoRlR@7Y>A|%Dvvj>K^Z(=TzWj=+t;0Pw;`0uAhUBr6 ZM|uK7W6YaOX_FH*@5TrBu@`>4^1mP~4`~1Z literal 0 HcmV?d00001 diff --git a/example/Debug/Obj/AvrUartBaud.r90 b/example/Debug/Obj/AvrUartBaud.r90 new file mode 100644 index 0000000000000000000000000000000000000000..9f77839dcfb047debc20d5d8337d5a87c2cb4b3c GIT binary patch literal 12057 zcmeHNU2Gf25#HT9^2n1+iIOZ^vSQJS9otGG^G{qUMI%d;5{p($g_2#j`MJ>INuX+vVL+)z+*!=jsM8=g-FT#i4j9@e`HU$poR3U-8$6 zdVIbfUr(<$*cjhvr5~)HQ>IsxNV8~3&6^eRhEOj9t z&(8r%4nrN=T~KVAHZ@y<3KiY9LroPdEgR41Ksg2{Gx|(C6hw`KP{695O~$iRdP1AZ z-B2AK5fj~7bCxq($+^Fdh*d!F z?0CAAomwJpr-XeGry(hL&5edjb%sl2^=7wW7Px4(%x!EoY&&4q^x1qavqb7!40T!4 zQn@A4xVIv4wP>(f4GB=n>ob>eQ11Ok@8HLbp4Iay@U5Y9eO#pr34MBnIH`zJyl`oS zv@qg^k>s>|DO*fsbS;%l6<0{Tgk#C%fXL-nAes~$E>F4UTOoB41+!TlayGF-?378G zb`>iURGwQQ4k|;SuNqYwRG-6U7ga3X_>tkTFaoIO1mS%A3bv`1w&1TJyls#Sq;X(m zd~_`O=-Cl%C;Wv~JcmF{TZVo_j1h40-`mZx8CpqcBvHQ;!^J zsKRJKhJE(zP%JiP3R!rkOr9I%9O2ngIGvliWOAF3>l_+9JFNAGyk3*tjBHh~ef|DT z`GLORru<%R>8AzzsWbZV^;$Zz*d0AHI%(Q%Mfp7=*-}PB{EEeky4hre0=Xuq1BIK5 z@fpp;yKpXB%;(akKsyS!Eh{<>_8olCJ!o~c$yJDd>K_3)TMo@03uyv{pDCwsZE=S}NOc9M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q-Uh#(uv=Id&6$NfHo8daw9)d0cgwj)3~4Xe}J2Vv0nf} zKXd|}I?@a~Lg`(G$CmFWAie(s+(zA`_hP_e>B9#fKy(M#-GN*UqHT!bCc_e2g2$Hc zckwuRn)l!9_J7*uoWBJj9sk@(!#s64Qtpt)U*}Tqcb9Ur@Cgud)Z6QNXrKc*S8~_@ z9f;2ar&l%nMHKcoyv8D!aOnkO=}?zVF2u z34fXs#st0P`yp^*8{9(vq#N8P{7E;s=dNp#*~56iPf>hpwhII)aa-( zkXSu`esDO*ztGPrkNymHzA{fK1;fhn~7YEu`&A|rb zBwVNmYlQ#RAZqac1gTo^B9W?ruU`BM0&(&Q2ksN&ien&R{Dh?#5mdVcgH`dwrO2U` z?_1wmd;jxfe)g2&v0ZuYIc4lKIH0eK177A4z4l&EnW$83z0r8|>LzeW$I@eCnM4Mc zHG3Y))Du|R+(e;(OWXZx1#bt0+PnW7mr;`3 K8UM$75B>ux?bUw( literal 0 HcmV?d00001 diff --git a/example/Release/Exe/AvrUartBaud(AT64).hex b/example/Release/Exe/AvrUartBaud(AT64).hex new file mode 100644 index 0000000..7b92dfc --- /dev/null +++ b/example/Release/Exe/AvrUartBaud(AT64).hex @@ -0,0 +1,62 @@ +:020000020000FC +:100000000C944501189518951895189518951895FC +:100010001895189518951895189518951895189578 +:100020001895189518951895189518951895189568 +:100030001895189518951895189518951895189558 +:100040001895189518951895189518951895189548 +:100050001895189518951895189518951895189538 +:100060001895189518951895189518951895189528 +:100070001895189518951895189518951895189518 +:100080001895189518951895189518950800000159 +:100090000000F801222311F0332311F400E0089549 +:1000A000438354836583768305E00783218332830A +:1000B00000810160008301E008950E949C01D80145 +:1000C0000C9100FFCCC0FD010781021709F4C7C0E5 +:1000D0002783215071F12A9509F450C02A9509F41B +:1000E00072C02A95038114812581368140E150E058 +:1000F00060E070E009F48DC00E947A0140E855E2AA +:1001000060E070E00E947A01C8010197FD01028160 +:10011000E02FF0E09083FD01038114812581368179 +:1001200040E150E060E070E00E947A0140E855E272 +:100130006EC0038114812581368140E150E060E08A +:1001400070E00E947A0140E05BE460E070E00E94B1 +:100150007A01C8010197FD010281E02FF0E0908350 +:10016000FD01038114812581368140E150E060E08A +:1001700070E00E947A0140E05BE449C00381148191 +:100180002581368140E150E060E070E00E947A0114 +:1001900040E056E960E070E00E947A01C8010197F2 +:1001A000FD010281E02FF0E09083FD0103811481C5 +:1001B0002581368140E150E060E070E00E947A01E4 +:1001C00040E056E924C0038114812581368140E155 +:1001D00050E060E070E00E947A0140E051EE60E0A3 +:1001E00070E00E947A01C8010197FD010281E02FB1 +:1001F000F0E09083FD01038114812581368140E187 +:1002000050E060E070E00E947A0140E051EE60E072 +:100210001DC00E947A0140E052EC61E070E00E9453 +:100220007A01C8010197FD010281E02FF0E090837F +:10023000FD01038114812581368140E150E060E0B9 +:1002400070E00E947A0140E052EC61E070E00E94B0 +:100250007A010A95FD011181E12FF0E00083E4E0CD +:100260000C94A10130E929E240E050E061EE70E039 +:1002700000E011E00E94490020E000E011E00E944F +:100280005D00FACF00008895FECF07E40DBF01E0C6 +:100290000EBFC8E4D3E00E94AA01002311F00E941F +:1002A000BA010E9432010E9442010C9442010024D2 +:1002B00011241001E0E2EA9592F0001F111F221FA5 +:1002C000331F001C111C221C331C041615062606A5 +:1002D000370688F3041A150A260A370AECCF001FDE +:1002E000111F221F331FA001B10100951095209509 +:1002F00030950895FF27772312F4F16015D033234A +:1003000012F4F09509D00E945701F69508F404D034 +:10031000F69508F409C0089530952095109501953B +:100320001F4F2F4F3F4F0895709560955095419501 +:100330005F4F6F4F7F4F0895BA93AA939A938A9312 +:100340000895BB81AA8199818881F0E0EC0FFD1F9F +:10035000EF01089501E0089520E006D0E9F708953F +:10036000259102D0E9F708952D9301501040202FD8 +:10037000212B08958CE890E0FC0105911491FC017B +:100380003296A591B491FC01349625913491422F77 +:10039000432B19F0F901E4DF01C0DEDF069610E01F +:0803A0008239910748F308952A +:0400000300000000F9 +:00000001FF diff --git a/example/Release/Obj/AvrUartBaud.pbd b/example/Release/Obj/AvrUartBaud.pbd new file mode 100644 index 0000000..1c4fde1 --- /dev/null +++ b/example/Release/Obj/AvrUartBaud.pbd @@ -0,0 +1,4 @@ +This is an internal working file generated by the Source Browser. +16:33 24s +F:\Github\AvrUartBaud\example\Release\Obj\AvrUartBaud.pbi +F:\Github\AvrUartBaud\example\Release\Obj\main.pbi diff --git a/example/Release/Obj/AvrUartBaud.pbi b/example/Release/Obj/AvrUartBaud.pbi new file mode 100644 index 0000000..e633eee --- /dev/null +++ b/example/Release/Obj/AvrUartBaud.pbi @@ -0,0 +1,22 @@ +This is an internal working file generated by the Source Browser. +16:33 24s +F:\Github\AvrUartBaud\AvrUartBaud.c +F:\Github\AvrUartBaud\AvrUartBaud.c +--cpu=m64 +-ms +-o +F:\Github\AvrUartBaud\example\Release\Obj\ +-D +NDEBUG +-y +--initializers_in_flash +--no_inline +--no_cross_call +--no_tbaa +-e +-I +../\ +--eeprom_size +2048 +--clib +-Om diff --git a/example/Release/Obj/AvrUartBaud.r90 b/example/Release/Obj/AvrUartBaud.r90 new file mode 100644 index 0000000000000000000000000000000000000000..09571f9505b60012518492eda83aad0749ca3a02 GIT binary patch literal 11169 zcmeHNO>7&-6`t8$aw&?|k0r~Fz z`J-4lv?kPBQ6MQ|qz9|L^wd-CMFF*Fq&8@Kkq?mH}B1R^XBchLoTu3)8lVjZXaGM%xHzuh*r-0%#XZi3gPK*h6C||P-q}D z5DP|QkzXT(PD1Te)p&H)D5)8%Je$*t0QoXTQG<4d$~JQqHgXO zJqmr8A*&TtJ-3*Lo@ZXm6?Ljk$2wFsujj48vYNLtdJYgArejB-22{0BQkV2X(XdQ9 z68UN8P%<5vQe#0i7E;r}#5#D5IT%A;RV^9jG60zKRsmDj3hU?)$1?!dHc$HTcudT&T^KWLQs^?NYn# zQdPaD+cpa*HCsiydTiT12&2AOu=49D&}*v;s%lv4sOv~g;&#b~`fLeMD(DMKbWz>M z?AgJO1>MvO2Kd%_a%WxT*^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^oM7Ji5nSp97j`d<;yb6k zh97%Fy%qOjdBSh?Nx#*q-|AC-t55r_e#>w58NbzMh1DN;0EEi(AAj>IIPL^_$O760fOVM1PlnYC_ ze(4FF1&tF*W_Br;y|X<3gdzP&hrYGdcRD1F<6A%NKPAoOuFpRSpv>`(%o7ReH@kEY z=@VT#g!IV{eQQfT9hzHO&dlAqwWXX6<=frxDH-po<;?8UztSMAAv~PM89B=)99X!2 zLHfe0L7vH*jYXqC73|!wN@b2@ore+vBP<_f`54Q`Sw6w?Q!Jlk`4r2iS$>-3uLSb3 zDAX9#IMf8xDX2-PDX3|v(@;S!4svmji-TMo=`q= z*)ZRMcM@A#91bik-hi5=KOPPQ;N`{6o;%ORPpRbTZANJDW+t!3DeNXj2FA&8dX}9b zG-$re}?c5 zdglf7p$N#!p`ijmpX07z?Dx>6Ux^H-LX6=ED8n^qKF5vIOYA77D3%dy_(+Bu2Ft+` zG#onWDLd{0^gD5g@`FdPJ(JFT*puxYp67wvR_Hl4-i5^58S=IZ@hO13(192puvjiW zhUPZ}wm(?I#$d3B0iKi)i*7)`^cJ^|x3tAw;Vo@(Pgi&dwmG4+xc;Y7fT)-L2#P=& zRk5#xUczJC20H;qL73vd3#OxgPfz?U{r0o;;TN#Q5byZRkcrW&SlR?OZ0C#ijLSMEm8BPj|dH33>ed-#cVyy=!W#i6IE#%eRwEA7xSE>K+ zebw9j*SN1JBmmj@tedQ_JT+hIzViFlE2;S}X8)FY(6#d0Z>euI`|I0HD|jW2?o_)j ztQq!sek|DV?_a}OH~+Vz!S6?2duI_(r +#include +#include "AvrUartBaud.h" + +#define __CPU_CLK__ 14745600L //14.7456Mhz + +tag_UartBaudControl Uart0Baud; + +void main( void ) +{ + AvrUartBaudControlInit(&Uart0Baud, __CPU_CLK__, &UBRR0L, &UBRR0H); + //init uart0 baudrate. + + while(1) + { + AvrUartBaudChange(&Uart0Baud, BAUD_9600); + //setting baudrate 9600bps + } +} diff --git a/example/settings/AvrUartBaud.cspy.bat b/example/settings/AvrUartBaud.cspy.bat new file mode 100644 index 0000000..ab9c80e --- /dev/null +++ b/example/settings/AvrUartBaud.cspy.bat @@ -0,0 +1,15 @@ +@REM This batch file has been generated by the IAR Embedded Workbench +@REM C-SPY Debugger, as an aid to preparing a command line for running +@REM the cspybat command line utility using the appropriate settings. +@REM +@REM You can launch cspybat by typing the name of this batch file followed +@REM by the name of the debug file (usually an ELF/DWARF or UBROF file). +@REM Note that this file is generated every time a new debug session +@REM is initialized, so you may want to move or rename the file before +@REM making changes. +@REM + + +"D:\Program Files (x86)\IAR Systems\Embedded Workbench 6.0\common\bin\cspybat" "D:\Program Files (x86)\IAR Systems\Embedded Workbench 6.0\avr\bin\avrproc.dll" "D:\Program Files (x86)\IAR Systems\Embedded Workbench 6.0\avr\bin\avrsim.dll" %1 --plugin "D:\Program Files (x86)\IAR Systems\Embedded Workbench 6.0\avr\bin\avrlibsupportbat.dll" --backend -B "--cpu=m64" "--enhanced_core" "-p" "D:\Program Files (x86)\IAR Systems\Embedded Workbench 6.0\avr\Config\iom64.ddf" "--eeprom_size" "2048" "-d" "sim" + + diff --git a/example/settings/AvrUartBaud.dbgdt b/example/settings/AvrUartBaud.dbgdt new file mode 100644 index 0000000..e068f91 --- /dev/null +++ b/example/settings/AvrUartBaud.dbgdt @@ -0,0 +1,5 @@ + + + + + diff --git a/example/settings/AvrUartBaud.dni b/example/settings/AvrUartBaud.dni new file mode 100644 index 0000000..d252919 --- /dev/null +++ b/example/settings/AvrUartBaud.dni @@ -0,0 +1,18 @@ +[Stack] +FillEnabled=0 +OverflowWarningsEnabled=1 +WarningThreshold=90 +SpWarningsEnabled=1 +WarnLogOnly=1 +UseTrigger=1 +TriggerName=main +LimitSize=0 +ByteLimit=50 +[Breakpoints] +Count=0 +[Aliases] +Count=0 +SuppressDialog=0 +[Trace1] +Enabled=0 +ShowSource=1 diff --git a/example/settings/AvrUartBaud.wsdt b/example/settings/AvrUartBaud.wsdt new file mode 100644 index 0000000..6098a90 --- /dev/null +++ b/example/settings/AvrUartBaud.wsdt @@ -0,0 +1,141 @@ + + + + + + AvrUartBaud/Debug + + + + + + + 261 + 27 + 27 + 27 + + + + 20 + 1395 + 372 + 93 + + + + + + + TabID-7069-8589 + Workspace + Workspace + + + AvrUartBaud + + + + + 0 + + + + + TabID-7362-8788 + Build + Build + + + + 0 + + + + + + TextEditor + $WS_DIR$\main.c + 0 + 0 + 364 + 364 + + 0 + + 0 + + + 1000000 + 1000000 + + + 1 + + + + + + + iaridepm.enu1 + + + + + + + + + + -2 + -2 + 754 + 335 + -2 + -2 + 200 + 200 + 104167 + 200602 + 175521 + 758275 + + + + + + + + + + + + + + + + -2 + -2 + 198 + 1922 + -2 + -2 + 1924 + 200 + 1002083 + 200602 + 104167 + 200602 + + + + + + + + + + + + +