|
PER Firmware
|
"DAQ" node source code More...
#include "main.h"#include "can_library/generated/MCAN.h"#include "can_library/generated/VCAN.h"#include "common/rtos/rtos.h"#include "common/heartbeat/heartbeat.h"#include "common/phal_F4/can/can.h"#include "common/phal_F4/gpio/gpio.h"#include "common/phal_F4/rcc/rcc.h"#include "common/phal_F4/rtc/rtc.h"#include "common/phal_F4/spi/spi.h"#include "common/utils/countof.h"#include "common/watchdog/watchdog.h"#include "ethernet.h"#include "rtc_sync.h"#include "spmc.h"Macros | |
| #define | TargetCoreClockrateHz 168'000'000 |
Functions | |
| RTOS_DEFINE_MUTEX (spi1_lock) | |
| static void | configure_interrupts (void) |
| void | shutdown (void) |
| RTOS_DEFINE_TASK (sd_card_periodic, SD_FSM_PERIOD_MS, TASK_PRIORITY_HIGH, STACK_4096) | |
| RTOS_DEFINE_TASK (ethernet_periodic, 0, TASK_PRIORITY_NORMAL, STACK_4096) | |
| RTOS_DEFINE_TASK (RTC_sync, 0, TASK_PRIORITY_LOW, STACK_512) | |
| DEFINE_WATCHDOG_TASK () | |
| DEFINE_HEARTBEAT_TASK (nullptr) | |
| int | main () |
| void | power_loss_callback (void) |
| void | EXTI15_10_IRQHandler () |
| void | HardFault_Handler () |
Variables | |
| GPIOInitConfig_t | gpio_config [] |
| uint32_t | APB1ClockRateHz |
| uint32_t | APB2ClockRateHz |
| uint32_t | AHBClockRateHz |
| uint32_t | PLLClockRateHz |
| ClockRateConfig_t | clock_config |
| dma_init_t | spi_rx_dma_config = SPI1_RXDMA_CONT_CONFIG(NULL, 2) |
| dma_init_t | spi_tx_dma_config = SPI1_TXDMA_CONT_CONFIG(NULL, 1) |
| SPI_InitConfig_t | eth_spi_config |
| volatile TaskHandle_t | sd_task_handle = nullptr |
"DAQ" node source code
| #define TargetCoreClockrateHz 168'000'000 |
|
static |
| DEFINE_HEARTBEAT_TASK | ( | nullptr | ) |
| DEFINE_WATCHDOG_TASK | ( | ) |
| void EXTI15_10_IRQHandler | ( | void | ) |
| void HardFault_Handler | ( | void | ) |
| int main | ( | void | ) |
| void power_loss_callback | ( | void | ) |
| RTOS_DEFINE_MUTEX | ( | spi1_lock | ) |
| RTOS_DEFINE_TASK | ( | ethernet_periodic | , |
| 0 | , | ||
| TASK_PRIORITY_NORMAL | , | ||
| STACK_4096 | ) |
| RTOS_DEFINE_TASK | ( | RTC_sync | , |
| 0 | , | ||
| TASK_PRIORITY_LOW | , | ||
| STACK_512 | ) |
| RTOS_DEFINE_TASK | ( | sd_card_periodic | , |
| SD_FSM_PERIOD_MS | , | ||
| TASK_PRIORITY_HIGH | , | ||
| STACK_4096 | ) |
| void shutdown | ( | void | ) |
|
extern |
|
extern |
|
extern |
| ClockRateConfig_t clock_config |
| SPI_InitConfig_t eth_spi_config |
| GPIOInitConfig_t gpio_config[] |
|
extern |
| volatile TaskHandle_t sd_task_handle = nullptr |
| dma_init_t spi_rx_dma_config = SPI1_RXDMA_CONT_CONFIG(NULL, 2) |
| dma_init_t spi_tx_dma_config = SPI1_TXDMA_CONT_CONFIG(NULL, 1) |