Skip to content

Commit 55f1a7b

Browse files
committed
some adjusts
1 parent 23829bd commit 55f1a7b

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ The device can signal its current status through a flashing blue LED when it is
104104

105105
<img src="documentation/Photos/placa.jpg">
106106

107+
<img src="documentation/Photos/placa_sensores.jpg">
108+
107109
## Acknowledgements
108110

109111
I would like to thank all the professors I've had since elementary school, this project is the result of a combination of everything you taught me.
717 KB
Loading

inc/Peripheral Drivers/sx1276.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#define PA_OUTPUT_RFO_PIN 0
6262
#define PA_OUTPUT_PA_BOOST_PIN 1
6363

64-
int begin(long frequency);
64+
int SX1216_Inicialize(long frequency);
6565
uint8_t readRegister(uint8_t address);
6666
void sleep();
6767
void setFrequency(long frequency);

src/MCU Drivers/mcu.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ void SYSTEM_Initialize(){
2323
TMR2_Initialize();
2424
INTERRUPT_GlobalInterruptEnable();
2525
INTERRUPT_PeripheralInterruptEnable();
26+
setSystemStatus(WARNING);
2627
statusLed_Inicialize();
2728
ADC_Initialize();
2829
I2C_Initialize();
@@ -33,11 +34,7 @@ void SYSTEM_Initialize(){
3334
max44009Setup();
3435
SHT30Setup();
3536
ds18b20Setup();
36-
while(!begin(915000000)){
37-
__delay_ms(500);
38-
setSystemStatus(WARNING);
39-
}
40-
setSystemStatus(NORMAL);
37+
SX1216_Inicialize(915000000);
4138
}
4239

4340
void SLEEP_Inicialize(){

src/Peripheral Drivers/sx1276.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "sx1276.h"
44
#include "spi.h"
55

6-
int begin(long frequency){
6+
int SX1216_Inicialize(long frequency){
77
RST_PIN = 0;
88
RST = 0;
99
__delay_ms(10);

0 commit comments

Comments
 (0)