Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gps: use GPIO interrupt to track pulse per second (PPS) into a counter variable #239

Closed
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
b627faf
Added Telecommand and enabled interrupt to watch GPIOA Pin 6.
2BlackCats Nov 22, 2024
41c98f7
Added functionality to check if port is supplied power.
2BlackCats Nov 22, 2024
8fd41f1
Update gps_pps_interrupt.c
2BlackCats Nov 24, 2024
655ff34
Da/ioc pps interrupt (#241)
2BlackCats Nov 28, 2024
27d909d
Simplified code and made functions so values can not be changed excep…
2BlackCats Nov 28, 2024
7f699ea
Fixed issues with code and build reverted to old
2BlackCats Nov 29, 2024
89c844e
Added recommended revised
2BlackCats Dec 4, 2024
de55564
More updates
2BlackCats Dec 4, 2024
94506b8
Enabled EXTI lines [9:5] using CubeMX (#251)
2BlackCats Dec 13, 2024
b66620e
Alis version pps (#252)
2BlackCats Dec 13, 2024
c7b09bf
Changes to code to account for debouceing
2BlackCats Dec 13, 2024
99c1f80
Delete firmware/stm32l4r5zitx_flash.ld
2BlackCats Dec 13, 2024
9082ac3
Reverting Make file to prev
2BlackCats Jan 15, 2025
0d331b9
Removed Comments for testing
2BlackCats Jan 17, 2025
b59d4b8
Added gaurdclause and removed the extra tab
2BlackCats Jan 17, 2025
a1c49d1
Merge branch 'main' of https://github.com/CalgaryToSpace/CTS-SAT-1-OB…
2BlackCats Jan 31, 2025
8ed3b38
Reset counter when disabled
2BlackCats Jan 31, 2025
2b88b2c
Merge branch 'main' of https://github.com/CalgaryToSpace/CTS-SAT-1-OB…
2BlackCats Feb 7, 2025
00b00ab
LFS Telecommand to list files / directories [Issue #7] (#216)
Saksham-P Feb 8, 2025
cddfa90
Add `TCMD_require_unique_tssent` config variable to control whether t…
Freddydeddydoo Feb 8, 2025
eb31103
GPS: Send log command and receive log response from gps receiver (#247)
christopherkinyua Feb 9, 2025
75e4ae6
Added Telecommand and enabled interrupt to watch GPIOA Pin 6.
2BlackCats Nov 22, 2024
3b72737
Added functionality to check if port is supplied power.
2BlackCats Nov 22, 2024
306b5cd
Update gps_pps_interrupt.c
2BlackCats Nov 24, 2024
928b914
Da/ioc pps interrupt (#241)
2BlackCats Nov 28, 2024
f7c9a59
Simplified code and made functions so values can not be changed excep…
2BlackCats Nov 28, 2024
f01432d
Fixed issues with code and build reverted to old
2BlackCats Nov 29, 2024
479f294
Added recommended revised
2BlackCats Dec 4, 2024
ae9e714
More updates
2BlackCats Dec 4, 2024
6b1c9f6
Enabled EXTI lines [9:5] using CubeMX (#251)
2BlackCats Dec 13, 2024
643ef48
Alis version pps (#252)
2BlackCats Dec 13, 2024
8ef4364
Alis version pps (#252)
2BlackCats Dec 13, 2024
050fb74
Changes to code to account for debouceing
2BlackCats Dec 13, 2024
9566fc0
Delete firmware/stm32l4r5zitx_flash.ld
2BlackCats Dec 13, 2024
c454352
Reverting Make file to prev
2BlackCats Jan 15, 2025
f7ff513
Removed Comments for testing
2BlackCats Jan 17, 2025
434210a
Added gaurdclause and removed the extra tab
2BlackCats Jan 17, 2025
7ed5fa2
Reset counter when disabled
2BlackCats Jan 31, 2025
f2a3656
Merge branch 'Alex_On/122-gps-track-the-pps-pulse-per-second-pulses-i…
2BlackCats Feb 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Da/ioc pps interrupt (#241)
* Implement `TCMDEXEC_comms_dipole_switch_set_state` (#229)

* Fix link to cts1_ground_support to go to new repo (#237)

* IOC TESTING - Convert PIN_GPS_PPS_IN to EXTI mode

---------

Co-authored-by: DeflateAwning <[email protected]>
Co-authored-by: Muhammad Ali <[email protected]>
  • Loading branch information
3 people committed Dec 2, 2024
commit 655ff34c0db5788fed1bb02b9b1ac20277ffe265
4 changes: 3 additions & 1 deletion firmware/CTS-SAT-1_FW.ioc
Original file line number Diff line number Diff line change
@@ -214,7 +214,7 @@ PA4.Signal=GPIO_Input
PA6.GPIOParameters=GPIO_Label
PA6.GPIO_Label=PIN_GPS_PPS_IN
PA6.Locked=true
PA6.Signal=GPIO_Input
PA6.Signal=GPXTI6
PA9.GPIOParameters=GPIO_Label
PA9.GPIO_Label=PIN_MPI_MOSI_USART1_TX
PA9.Locked=true
@@ -502,6 +502,8 @@ RCC.VCOInputFreq_Value=16000000
RCC.VCOOutputFreq_Value=192000000
RCC.VCOSAI1OutputFreq_Value=128000000
RCC.VCOSAI2OutputFreq_Value=128000000
SH.GPXTI6.0=GPIO_EXTI6
SH.GPXTI6.ConfNb=1
SPI1.BaudRatePrescaler=SPI_BAUDRATEPRESCALER_8
SPI1.CalculateBaudRate=2.0 MBits/s
SPI1.DataSize=SPI_DATASIZE_8BIT
12 changes: 9 additions & 3 deletions firmware/Core/Src/main.c
Original file line number Diff line number Diff line change
@@ -1022,11 +1022,17 @@ static void MX_GPIO_Init(void)
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);

/*Configure GPIO pins : PIN_BOOM_PGOOD_IN_Pin PIN_GPS_PPS_IN_Pin */
GPIO_InitStruct.Pin = PIN_BOOM_PGOOD_IN_Pin|PIN_GPS_PPS_IN_Pin;
/*Configure GPIO pin : PIN_BOOM_PGOOD_IN_Pin */
GPIO_InitStruct.Pin = PIN_BOOM_PGOOD_IN_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
HAL_GPIO_Init(PIN_BOOM_PGOOD_IN_GPIO_Port, &GPIO_InitStruct);

/*Configure GPIO pin : PIN_GPS_PPS_IN_Pin */
GPIO_InitStruct.Pin = PIN_GPS_PPS_IN_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(PIN_GPS_PPS_IN_GPIO_Port, &GPIO_InitStruct);

/*Configure GPIO pins : PIN_MEM_NCS_FLASH_7_Pin PIN_MEM_NCS_FLASH_6_Pin PIN_MEM_NCS_FLASH_5_Pin PIN_MEM_NCS_FLASH_4_Pin
PIN_MEM_NCS_FLASH_3_Pin */
1 change: 1 addition & 0 deletions firmware/Core/Src/telecommands/telecommand_definitions.c
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@
#include "telecommands/mpi_telecommand_defs.h"
#include "telecommands/eps_telecommands.h"
#include "telecommands/stm32_internal_flash_telecommand_defs.h"
#include "telecommands/comms_telecommand_defs.h"
#include "telecommands/gps_telecommand_defs.h"
#include "telecommands/comms_telecommand_defs.h"

2 changes: 1 addition & 1 deletion firmware/Makefile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this file should be edited. Also, the linker script in our repo is all caps so I don't know how this works

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##########################################################################################################################
# File automatically-generated by tool: [projectgenerator] version: [4.4.0-B60] date: [Sat Sep 21 13:09:25 MDT 2024]
# File automatically-generated by tool: [projectgenerator] version: [4.4.0-B60] date: [Tue Nov 26 20:38:53 MST 2024]
##########################################################################################################################

# ------------------------------------------------