Procházet zdrojové kódy

WIP tidy up the NRF24L01 code

Bernd Gottschlag před 5 roky
rodič
revize
33e1d5e700

+ 1
- 0
weather-sensor/firmware/main.c Zobrazit soubor

@@ -8,6 +8,7 @@
8 8
 #include <string.h>
9 9
 
10 10
 #include "nrf24l01.h"
11
+#include "nrf24l01_definitions.h"
11 12
 #include "uart_debug.h"
12 13
 
13 14
 //#define LED_DDR     DDRB        //DDRA, DDRB...

+ 1
- 1
weather-sensor/firmware/makefile Zobrazit soubor

@@ -7,7 +7,7 @@ clean:
7 7
 flash: main.hex
8 8
 	sudo avrdude -c avr109 -b 57600 -P /dev/ttyACM0 -p m32u4 -v -U flash:w:main.hex
9 9
 
10
-main: main.c nrf24l01.c nrf24l01.h uart_debug.c uart_debug.h
10
+main: main.c nrf24l01.c nrf24l01.h nrf24l01_definitions.h uart_debug.c uart_debug.h
11 11
 	avr-gcc main.c nrf24l01.c uart_debug.c  -o main -mmcu=atmega32u4 -Os -Wall -Wextra -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -DF_CPU=8000000UL
12 12
 
13 13
 main.hex: main

+ 2
- 0
weather-sensor/firmware/nrf24l01.h Zobrazit soubor

@@ -1,6 +1,8 @@
1 1
 #ifndef NRF24L01_H
2 2
 #define NRF24L01_H
3 3
 
4
+
5
+
4 6
 /* AVR I/O pin definionts */
5 7
 #define NRF_CE_DDR   DDRB
6 8
 #define NRF_CE_PORT  PORTB

Loading…
Zrušit
Uložit