-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2198570
commit 0ceae61
Showing
9 changed files
with
857 additions
and
728 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 |
---|---|---|
@@ -1,17 +1,35 @@ | ||
/* | ||
* SSI0.h | ||
* SSI0.h - Prototypes for the SSI0 interface. | ||
* | ||
* Copyright (c) 2024, W. M. Keck Observatory | ||
* All rights reserved. | ||
* | ||
* Author: Paul Richards | ||
* | ||
*/ | ||
|
||
#ifndef SSI0_H_ | ||
#define SSI0_H_ | ||
|
||
#include <stdint.h> | ||
/* Only instantiate variables if we are the .c routine for this header file. */ | ||
#ifndef SENSOR_TASK_C_ | ||
#define EXTERN extern | ||
#else | ||
#define EXTERN | ||
#endif | ||
|
||
/* Function prototypes */ | ||
extern void SSI0Init(bool *received, bool *sent, uint8_t RxBuffer[], uint8_t TxBuffer[], uint16_t length); | ||
extern void SSI0Interrupt(void); | ||
extern void SSI0SendMessage(void); | ||
extern void InitSPITransfer(void); | ||
extern void uDMAErrorHandler(void); | ||
#include "includes.h" | ||
|
||
/* ----------------------------------------------------------------------------- | ||
* Function prototypes | ||
*/ | ||
EXTERN void SSI0SlaveSelectIntHandler(void); | ||
EXTERN void SSI0Init(uint8_t RxBuffer[], uint8_t TxBuffer[], uint16_t length); | ||
EXTERN void SSI0Interrupt(void); | ||
EXTERN void SSI0SendMessage(void); | ||
EXTERN void SSI0InitTransfer(void); | ||
EXTERN void uDMAErrorHandler(void); | ||
|
||
#undef EXTERN | ||
|
||
#endif /* SSI0_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* includes.h - Common #includes for the ACS Node Box Sensor firmware project | ||
* | ||
* Copyright (c) 2024, W. M. Keck Observatory | ||
* All rights reserved. | ||
* | ||
* Author: Paul Richards | ||
* | ||
*/ | ||
|
||
#ifndef INCLUDES_H_ | ||
#define INCLUDES_H_ | ||
|
||
#include <stdarg.h> | ||
#include <stdbool.h> | ||
#include <stdint.h> | ||
|
||
// Board support includes | ||
#include <inc/tm4c123gh6pm.h> | ||
#include <inc/hw_memmap.h> | ||
#include <inc/hw_types.h> | ||
#include <inc/hw_gpio.h> | ||
#include <inc/hw_i2c.h> | ||
#include <inc/hw_ssi.h> | ||
|
||
#include <driverlib/interrupt.h> | ||
#include <driverlib/sysctl.h> | ||
#include <driverlib/gpio.h> | ||
#include <driverlib/i2c.h> | ||
#include <driverlib/ssi.h> | ||
#include <driverlib/pin_map.h> | ||
#include <driverlib/rom.h> | ||
#include <driverlib/sysctl.h> | ||
#include <driverlib/uart.h> | ||
#include <driverlib/udma.h> | ||
#include <utils/uartstdio.h> | ||
|
||
// FreeRTOS includes | ||
#include "FreeRTOS.h" | ||
#include "priorities.h" | ||
#include "task.h" | ||
#include "queue.h" | ||
#include "semphr.h" | ||
|
||
// Tasks | ||
#include "main.h" | ||
#include "spi_task.h" | ||
#include "sensor_task.h" | ||
|
||
// External interfaces | ||
#include "SSI0.h" | ||
|
||
|
||
#endif /* INCLUDES_H_ */ | ||
|
||
|
||
|
||
|
Oops, something went wrong.