refactor tree, add ecad, mcad
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
|
||||
namespace BSP {
|
||||
|
||||
using Common::ReturnCode;
|
||||
using Common::Schedule::NextTime;
|
||||
using BSP::ReturnCode;
|
||||
using BSP::Schedule::NextTime;
|
||||
|
||||
ButtonManager *ButtonManager::m_instance = nullptr;
|
||||
|
||||
@@ -67,8 +67,8 @@ ReturnCode ButtonManager::init()
|
||||
|
||||
NextTime ButtonManager::execute()
|
||||
{
|
||||
Common::time_t systime;
|
||||
Common::time_t endtime = 0;
|
||||
BSP::time_t systime;
|
||||
BSP::time_t endtime = 0;
|
||||
BSP::SystemTimer::get_time(systime);
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ void ButtonManager::remove_callback(Button btn)
|
||||
void ButtonManager::irq()
|
||||
{
|
||||
uint32_t idr = GPIOA->IDR;
|
||||
static Common::time_t systime;
|
||||
static BSP::time_t systime;
|
||||
|
||||
// TODO: is this call too expensive for an interrupt handler?
|
||||
BSP::SystemTimer::get_time(systime);
|
||||
|
||||
Reference in New Issue
Block a user