5 #include "../common/adcpp.hpp"
6 #include "../common/blinker.hpp"
7 #include "../common/uartpp.hpp"
8 #include "../common/shellpp.hpp"
9 #include "../common/semaphorepp.hpp"
10 #include "../common/motorpp.hpp"
11 #include "../common/drivepp.hpp"
12 #include "../common/canpp.hpp"
13 #include "../common/ctlsysctl.hpp"
14 #include "../common/switchpp.hpp"
17 #include "libschedule/schedule.h"
23 #include "inc/hw_memmap.h"
25 #include "driverlib/adc.h"
26 #include "driverlib/sysctl.h"
27 #include "driverlib/gpio.h"
28 #include "driverlib/interrupt.h"
29 #include "driverlib/uart.h"
36 #define UART0_RX_BUFFER_SIZE 8
45 timer_data = TimerValueGet(TIMER2_BASE, TIMER_A);
46 uart0.
printf(
"timer: %u\n", timer_data);
47 os_surrender_context();
56 blink =
blinker(GPIO_PORTF_BASE, GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3);
59 uart0 =
uart(UART0_BASE, INT_UART0);
61 countdown_timer =
timer(2, TIMER_BOTH, TIMER_CFG_ONE_SHOT,
62 SysCtlClockGet()*180, TIMER_TIMA_TIMEOUT,
true);
64 blink_timer =
timer(1, TIMER_A, TIMER_CFG_PERIODIC,
65 SysCtlClockGet()/2, TIMER_TIMA_TIMEOUT,
true);
73 countdown_timer.
ack();
static buffer< char, 8 > UART0_RX_BUFFER
void printf(const char *pcString,...)
static semaphore UART0_RX_SEM
static void set_clock(void)
virtual void toggle(pin_t pin)
void __cxa_pure_virtual()