mirror of
https://github.com/peterantypas/maiana.git
synced 2025-05-20 17:30:10 -07:00
Board 10.9 bringup
This commit is contained in:
parent
0a23953920
commit
04799fc2de
@ -32,7 +32,7 @@ public:
|
||||
|
||||
private:
|
||||
LEDManager();
|
||||
bool mForceTXLedOff = false;
|
||||
volatile bool mForceTXLedOff = false;
|
||||
};
|
||||
|
||||
|
||||
|
@ -39,7 +39,6 @@ void tickCB()
|
||||
|
||||
void LEDManager::init()
|
||||
{
|
||||
bsp_set_tick_callback(tickCB);
|
||||
if ( !Configuration::instance().isStationDataProvisioned() )
|
||||
{
|
||||
mForceTXLedOff = true;
|
||||
@ -47,6 +46,7 @@ void LEDManager::init()
|
||||
// This call actually has the opposite effect as it will cause the TX led to be pulled to GND
|
||||
bsp_tx_led_on();
|
||||
}
|
||||
bsp_set_tick_callback(tickCB);
|
||||
}
|
||||
|
||||
void LEDManager::onTick()
|
||||
@ -64,7 +64,6 @@ void LEDManager::onTick()
|
||||
count2 = 1;
|
||||
bsp_tx_led_off();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -49,6 +49,8 @@ void NoiseFloorDetector::report(char channel, uint8_t rssi)
|
||||
{
|
||||
#if BOARD_REV == 61 or BOARD_REV == 52
|
||||
if ( rssi < 0x12 ) // Not realistic, likely a bug
|
||||
#elif BOARD_REV == 109
|
||||
if ( rssi < 0x24 )
|
||||
#else
|
||||
if ( rssi < 0x32 ) // Not realistic, likely a bug
|
||||
#endif
|
||||
|
@ -501,7 +501,7 @@ uint8_t bsp_tx_spi_byte(uint8_t data)
|
||||
HAL_SPI_TransmitReceive(&hspi1, &data, &result, 1, 2);
|
||||
return result;
|
||||
}
|
||||
|
||||
#if 0
|
||||
bool bsp_erase_station_data()
|
||||
{
|
||||
return false;
|
||||
@ -511,16 +511,20 @@ bool bsp_save_station_data(const StationData &data)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
void bsp_reboot()
|
||||
{
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
|
||||
#if 0
|
||||
bool bsp_read_station_data(StationData &data)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
bool bsp_is_tx_disabled()
|
||||
{
|
||||
@ -545,10 +549,12 @@ void bsp_signal_rx_event()
|
||||
HAL_GPIO_WritePin(RX_EVT_PORT, RX_EVT_PIN, GPIO_PIN_SET);
|
||||
}
|
||||
|
||||
#if 0
|
||||
void bsp_signal_tx_event()
|
||||
{
|
||||
HAL_GPIO_WritePin(TX_EVT_PORT, TX_EVT_PIN, GPIO_PIN_SET);
|
||||
}
|
||||
#endif
|
||||
|
||||
void bsp_signal_gps_status(bool tracking)
|
||||
{
|
||||
@ -626,13 +632,8 @@ extern "C"
|
||||
|
||||
void HAL_SYSTICK_Callback()
|
||||
{
|
||||
static int count = 1;
|
||||
if ( count++ % 20 == 0 )
|
||||
{
|
||||
count = 1;
|
||||
HAL_GPIO_WritePin(RX_EVT_PORT, RX_EVT_PIN, GPIO_PIN_RESET);
|
||||
HAL_GPIO_WritePin(TX_EVT_PORT, TX_EVT_PIN, GPIO_PIN_RESET);
|
||||
}
|
||||
if ( tickCallback )
|
||||
tickCallback();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,6 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>
|
||||
*/
|
||||
|
||||
#include "stm32l4xx_hal.h"
|
||||
#include "config.h"
|
||||
#include "RadioManager.hpp"
|
||||
#include "RXPacketProcessor.hpp"
|
||||
@ -25,10 +24,8 @@
|
||||
#include "TXScheduler.hpp"
|
||||
#include "GPS.hpp"
|
||||
#include "LEDManager.hpp"
|
||||
#include "SystickTimer.hpp"
|
||||
#include "CommandProcessor.hpp"
|
||||
#include "bsp.hpp"
|
||||
#include "printf_serial.h"
|
||||
|
||||
|
||||
void jump_to_bootloader()
|
||||
|
Loading…
x
Reference in New Issue
Block a user