-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Initialised USART6 using DMA, - Strings receivedd freom GPS are handled using DMA, - Added an External Interrupt, via button at PA0
- Loading branch information
Showing
13 changed files
with
179 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* dma1_driver.h | ||
* | ||
* Created on: Feb 2, 2018 | ||
* Author: abel | ||
*/ | ||
|
||
#ifndef DMA2_DRIVER_H_ | ||
#define DMA2_DRIVER_H_ | ||
|
||
|
||
#include "stm32f4xx_dma.h" | ||
|
||
#define DMA2_USART6_STREAM DMA2_Stream2 | ||
#define DMA_RX_BUFFER_SIZE 384 | ||
uint8_t DMA_RX_Buffer[DMA_RX_BUFFER_SIZE]; | ||
|
||
void init_dma2(void); | ||
|
||
void enable_dma2_irq(void); | ||
|
||
|
||
#endif /* DMA2_DRIVER_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* usart1_dma_comm.h | ||
* | ||
* Created on: Feb 2, 2018 | ||
* Author: abel | ||
*/ | ||
|
||
#ifndef USART6_DMA_COMM_H_ | ||
#define USART6_DMA_COMM_H_ | ||
|
||
#define USART6_GPIO GPIOC | ||
|
||
|
||
#include "stm32f4xx.h" | ||
#include "stm32f4xx_rcc.h" | ||
#include "stm32f4xx_it.h" | ||
#include "stm32f4xx_usart.h" | ||
#include "misc.h" | ||
#include "stm32f4xx_gpio.h" | ||
#include "vector_prio.h" | ||
#include <string.h> | ||
|
||
|
||
void init_usart6_comm_module(void); | ||
void init_usart6_gpio(void); | ||
void enable_usart6_rx_irq(void); | ||
void USART6_TX_byte(uint8_t); | ||
void USART6_TX_string(char *); | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
#endif /* USART6_DMA_COMM_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.