EE445M RTOS
Taken at the University of Texas Spring 2015
|
Classes | |
class | blinker |
class | ctlsys |
Functions | |
blinker::blinker () | |
blinker::blinker (port_t port_base) | |
blinker::blinker (port_t port_base, port_t output_pins) | |
virtual void | blinker::set_base (port_t port) |
virtual void | blinker::turn_on (pin_t pin) |
virtual void | blinker::turn_off (pin_t pin) |
virtual void | blinker::toggle (pin_t pin) |
virtual void | blinker::blink (pin_t pin) |
static void | ctlsys::enable_periph (uint32_t sys_periph) |
static uint32_t | ctlsys::timer_timeout_from_subtimer (uint32_t subtimer) |
static uint32_t | ctlsys::gpio_pin_to_int (uint32_t pin) |
static uint32_t | ctlsys::periph_to_int (uint32_t periph) |
static void | ctlsys::gpio_int_clear (uint32_t base, uint32_t pin) |
static void | ctlsys::gpio_int_disable (uint32_t base, uint32_t pin) |
static void | ctlsys::gpio_int_enable (uint32_t base, uint32_t pin, bool clear_int=false) |
static void | ctlsys::set_clock (void) |
Variables | |
const pin_t | PIN_RED = GPIO_PIN_1 |
const pin_t | PIN_GREEN = GPIO_PIN_3 |
const pin_t | PIN_BLUE = GPIO_PIN_2 |
uint32_t | blinker::port_base |
|
virtual |
Implements gpio_twiddler.
Definition at line 38 of file blinker.cpp.
References blinker::port_base.
Referenced by UART0_Handler().
blinker::blinker | ( | ) |
Definition at line 8 of file blinker.cpp.
blinker::blinker | ( | port_t | port_base | ) |
Definition at line 10 of file blinker.cpp.
References blinker::set_base().
Initialize at outputs
Definition at line 14 of file blinker.cpp.
References ctlsys::enable_periph(), and blinker::set_base().
|
inlinestatic |
Enable peripherals based on a GPIO_PORTx_BASE.
Definition at line 24 of file ctlsysctl.hpp.
References critical::static_EndCritical(), and critical::static_StartCritical().
Referenced by blinker::blinker(), can::init(), lswitch::lswitch(), motor::motor(), ping::ping(), and motor::pwm_init().
|
inlinestatic |
Definition at line 88 of file ctlsysctl.hpp.
References ctlsys::gpio_pin_to_int().
Referenced by ctlsys::gpio_int_enable().
|
inlinestatic |
Definition at line 93 of file ctlsysctl.hpp.
References ctlsys::gpio_pin_to_int().
Referenced by ping::sample().
|
inlinestatic |
Definition at line 99 of file ctlsysctl.hpp.
References ctlsys::gpio_int_clear(), and ctlsys::gpio_pin_to_int().
Referenced by ping::sample().
|
inlinestatic |
Definition at line 59 of file ctlsysctl.hpp.
Referenced by ctlsys::gpio_int_clear(), ctlsys::gpio_int_disable(), and ctlsys::gpio_int_enable().
|
inlinestatic |
Definition at line 73 of file ctlsysctl.hpp.
Referenced by ping::sample().
|
virtual |
Implements gpio_twiddler.
Definition at line 22 of file blinker.cpp.
References blinker::port_base.
Referenced by blinker::blinker().
|
inlinestatic |
Set the clock as used in our labs.
Definition at line 109 of file ctlsysctl.hpp.
Referenced by main().
|
inlinestatic |
Definition at line 47 of file ctlsysctl.hpp.
Referenced by lswitch::lswitch().
|
virtual |
Implements gpio_twiddler.
Definition at line 34 of file blinker.cpp.
References blinker::port_base.
Referenced by can_handler(), can_transmitter(), shell::doctor(), shell::jester(), thread_blink_blue(), thread_blink_green(), thread_blink_red(), Timer1A_Handler(), Timer2A_Handler(), and shell::witch().
|
virtual |
Implements gpio_twiddler.
Definition at line 30 of file blinker.cpp.
References blinker::port_base.
Referenced by ping::sample(), and motor::set().
|
virtual |
Implements gpio_twiddler.
Definition at line 26 of file blinker.cpp.
References blinker::port_base.
Referenced by ping::sample(), and motor::set().
const pin_t PIN_BLUE = GPIO_PIN_2 |
Definition at line 20 of file blinker.hpp.
Referenced by can_handler(), can_transmitter(), shell::jester(), and thread_blink_blue().
const pin_t PIN_GREEN = GPIO_PIN_3 |
Definition at line 19 of file blinker.hpp.
Referenced by thread_blink_green(), Timer1A_Handler(), and shell::witch().
const pin_t PIN_RED = GPIO_PIN_1 |
Definition at line 18 of file blinker.hpp.
Referenced by shell::doctor(), thread_blink_red(), Timer2A_Handler(), and UART0_Handler().
|
private |
Definition at line 34 of file blinker.hpp.
Referenced by blinker::blink(), blinker::set_base(), blinker::toggle(), blinker::turn_off(), and blinker::turn_on().