Add some more

This commit is contained in:
Edward Emelianov
2023-02-16 20:08:27 +03:00
parent 617daf62c7
commit 2cc06884b4
16 changed files with 758 additions and 28 deletions

View File

@@ -16,6 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "adc.h"
#include "buttons.h"
#include "can.h"
#include "flash.h"
#include "hardware.h"
@@ -42,8 +44,9 @@ int main(void){
hw_setup(); // GPIO, ADC, timers, watchdog etc.
USBPU_OFF(); // make a reconnection
USB_setup();
USBPU_ON();
CAN_setup(the_conf.CANspeed);
adc_setup();
USBPU_ON();
uint32_t ctr = 0;
CAN_message *can_mesg;
while(1){
@@ -79,5 +82,6 @@ int main(void){
const char *ans = cmd_parser(inbuff);
if(ans) USB_sendstr(ans);
}
process_keys();
}
}