Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Jul 30, 2014
1 parent c2b916c commit 65b5b1a
Show file tree
Hide file tree
Showing 13 changed files with 276 additions and 179 deletions.
Binary file modified 00-STM32F429_LIBRARIES/tm_stm32f4_all.rar
Binary file not shown.
Binary file modified 00-STM32F429_LIBRARIES/tm_stm32f4_i2c.rar
Binary file not shown.
Binary file modified 00-STM32F429_LIBRARIES/tm_stm32f4_spi.rar
Binary file not shown.
19 changes: 17 additions & 2 deletions 00-STM32F429_LIBRARIES/tm_stm32f4_usart.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,25 @@
* @version v1.3
* @ide Keil uVision
*
* Libraries works for all 8 U(S)ARTs which are supported in STM32F429.
* Library works for all 8 U(S)ARTs which are supported on STM32F429.
*
* Every USART channel has it's own receive interrupt which stores incoming data into cyclic buffer.
* In your project you can set buffer length, default is 32Bytes, with:
* If you want to use your own receive handler, then you have to open defines.h files and set a define
*
* //Use custom IRQ Receive handler
*
* //Change X with possible U(S)ARTs: USART1, USART2, USART3, UART4, UART5, USART6, UART7, UART8
* //#define TM_X_USE_CUSTOM_IRQ
*
* After you set define, you have to create a function, which will handle custom request
*
* //Change X with possible U(S)ARTs: USART1, USART2, USART3, UART4, UART5, USART6, UART7, UART8
* //Parameter c is a received character
* void TM_X_ReceiveHandler(uint8_t c) {
* //Do your stuff here when byte received
* }
*
* In your project you can set internal cyclic buffer length, default is 32Bytes, with:
*
* #define TM_USART_BUFFER_SIZE number_of_bytes
*
Expand Down
Binary file modified 00-STM32F429_LIBRARIES/tm_stm32f4_usart.rar
Binary file not shown.
64 changes: 40 additions & 24 deletions 02-STM32F429_LED_BUTTON/MDK-ARM/project.uvopt
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@

<Group>
<GroupName>CMSIS</GroupName>
<tvExp>1</tvExp>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
Expand All @@ -182,8 +182,8 @@
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\CMSIS\system_stm32f4xx.c</PathWithFileName>
<FilenameWithoutPath>system_stm32f4xx.c</FilenameWithoutPath>
Expand Down Expand Up @@ -284,10 +284,10 @@
<FileType>2</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<ColumnNumber>24</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<TopLine>215</TopLine>
<CurrentLine>319</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>.\startup_stm32f429_439xx.s</PathWithFileName>
<FilenameWithoutPath>startup_stm32f429_439xx.s</FilenameWithoutPath>
Expand All @@ -298,7 +298,7 @@

<Group>
<GroupName>STD Periph</GroupName>
<tvExp>0</tvExp>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
Expand Down Expand Up @@ -806,7 +806,7 @@
<Focus>0</Focus>
<ColumnNumber>50</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>312</TopLine>
<TopLine>315</TopLine>
<CurrentLine>318</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_gpio.c</PathWithFileName>
Expand Down Expand Up @@ -862,17 +862,33 @@
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>3</GroupNumber>
<FileNumber>43</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>45</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>223</TopLine>
<CurrentLine>224</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_exti.c</PathWithFileName>
<FilenameWithoutPath>stm32f4xx_exti.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
</Group>

<Group>
<GroupName>TM</GroupName>
<tvExp>1</tvExp>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
<File>
<GroupNumber>4</GroupNumber>
<FileNumber>43</FileNumber>
<FileNumber>44</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
Expand All @@ -888,7 +904,7 @@
</File>
<File>
<GroupNumber>4</GroupNumber>
<FileNumber>44</FileNumber>
<FileNumber>45</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
Expand All @@ -904,13 +920,13 @@
</File>
<File>
<GroupNumber>4</GroupNumber>
<FileNumber>45</FileNumber>
<FileNumber>46</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>27</ColumnNumber>
<ColumnNumber>36</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>39</TopLine>
<TopLine>31</TopLine>
<CurrentLine>64</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\00-STM32F429_LIBRARIES\tm_stm32f4_disco.c</PathWithFileName>
Expand All @@ -920,7 +936,7 @@
</File>
<File>
<GroupNumber>4</GroupNumber>
<FileNumber>46</FileNumber>
<FileNumber>47</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
Expand All @@ -938,19 +954,19 @@

<Group>
<GroupName>User</GroupName>
<tvExp>1</tvExp>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
<File>
<GroupNumber>5</GroupNumber>
<FileNumber>47</FileNumber>
<FileNumber>48</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>4</ColumnNumber>
<ColumnNumber>28</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>3</TopLine>
<TopLine>1</TopLine>
<CurrentLine>16</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\User\main.c</PathWithFileName>
Expand All @@ -960,7 +976,7 @@
</File>
<File>
<GroupNumber>5</GroupNumber>
<FileNumber>48</FileNumber>
<FileNumber>49</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
Expand All @@ -976,7 +992,7 @@
</File>
<File>
<GroupNumber>5</GroupNumber>
<FileNumber>49</FileNumber>
<FileNumber>50</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
Expand All @@ -992,7 +1008,7 @@
</File>
<File>
<GroupNumber>5</GroupNumber>
<FileNumber>50</FileNumber>
<FileNumber>51</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
Expand All @@ -1008,7 +1024,7 @@
</File>
<File>
<GroupNumber>5</GroupNumber>
<FileNumber>51</FileNumber>
<FileNumber>52</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
Expand All @@ -1024,7 +1040,7 @@
</File>
<File>
<GroupNumber>5</GroupNumber>
<FileNumber>52</FileNumber>
<FileNumber>53</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
Expand Down
5 changes: 5 additions & 0 deletions 02-STM32F429_LED_BUTTON/MDK-ARM/project.uvproj
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,11 @@
<FileType>1</FileType>
<FilePath>..\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_adc.c</FilePath>
</File>
<File>
<FileName>stm32f4xx_exti.c</FileName>
<FileType>1</FileType>
<FilePath>..\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_exti.c</FilePath>
</File>
</Files>
</Group>
<Group>
Expand Down
Loading

0 comments on commit 65b5b1a

Please sign in to comment.