PER Firmware
Loading...
Searching...
No Matches
main.h
Go to the documentation of this file.
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
18
#define LED_NUCLEO_GREEN_PORT GPIOA
19
#define LED_NUCLEO_GREEN_PIN 5
20
21
typedef
struct
__attribute__
((packed)) {
22
// Do not modify this struct
23
// unless you modify the ADC DMA config in main.h to match
24
uint16_t val1;
25
uint16_t val2;
26
uint16_t val3;
27
uint16_t val4;
28
}
raw_adc_values_t
;
29
30
volatile
extern
raw_adc_values_t
raw_adc_values
;
31
#define ADC_NUM_CHANNELS (sizeof(raw_adc_values) / sizeof(uint16_t))
32
33
#endif
// __G4_TESTING_MAIN_H__
raw_adc_values
volatile raw_adc_values_t raw_adc_values
Definition
main.c:105
raw_adc_values_t
raw_adc_values_t
Definition
main.h:28
__attribute__
Definition
main.h:260
raw_adc_values_t
Definition
main.h:17
firmware
source
g4_testing
main.h
Generated by
1.12.0