PER Firmware
Loading...
Searching...
No Matches
main.h
1
2#ifndef __G4_TESTING_MAIN_H__
3#define __G4_TESTING_MAIN_H__
4
5#include <stdint.h>
6
7// G4 devboard LEDs
8
9#define LED_GREEN_PORT GPIOB
10#define LED_GREEN_PIN 7
11#define LED_RED_PORT GPIOB
12#define LED_RED_PIN 5
13#define LED_BLUE_PORT GPIOA
14#define LED_BLUE_PIN 15
15#define LED_ORANGE_PORT GPIOB
16#define LED_ORANGE_PIN 1
17
18typedef struct __attribute__((packed)) {
19 // Do not modify this struct
20 // unless you modify the ADC DMA config in main.h to match
21 uint16_t val1;
22 uint16_t val2;
23 uint16_t val3;
24 uint16_t val4;
26
27volatile extern raw_adc_values_t raw_adc_values;
28#define ADC_NUM_CHANNELS (sizeof(raw_adc_values) / sizeof(uint16_t))
29
30#endif // __G4_TESTING_MAIN_H__
Definition main.h:260
Definition main.c:61