|
Longan Nano
Longan Nano Demo
|
#include <random>#include <gd32vf103.h>#include "longan_nano_led.hpp"#include "longan_nano_chrono.hpp"#include "longan_nano_screen.hpp"
Classes | |
| struct | _Scheduler |
Macros | |
| #define | EVER (;;) |
Typedefs | |
| typedef enum _Config | Config |
| typedef enum _Demo | Demo |
| typedef struct _Scheduler | Scheduler |
Enumerations | |
| enum | _Config { SCREEN_US = 100, LED_BLINK_US = 250000, SLOW_DEMO_US = 750000, MEDIUM_DEMO_US = 50000, FAST_DEMO_US = 2000 } |
| enum | _Demo { TEST_CLEAR_BLINK, TEST_CHAR_CONSOLE, TEST_CHAR_CONSOLE_COLOR, TEST_STRING_CONSOLE, TEST_STRING_CONSOLE_COLOR, TEST_NUMBERS, TEST_ENG_NUMBERS, TEST_PENDING, TEST_CHANGE_COLORS, TEST_WORKLOAD, NUM_DEMOS, MAX_STR_LEN = 25 } |
Functions | |
| void | init_pa8_button_interrupt (void) |
| std::uniform_int_distribution< uint8_t > | g_rng_char (' ', '~') |
| std::uniform_int_distribution< int > | g_rng_height (0, Longan_nano::Screen::Config::FRAME_BUFFER_HEIGHT -1) |
| std::uniform_int_distribution< int > | g_rng_width (0, Longan_nano::Screen::Config::FRAME_BUFFER_WIDTH -1) |
| std::uniform_int_distribution< uint8_t > | g_rng_color (0, Longan_nano::Screen::Config::PALETTE_SIZE -1) |
| std::uniform_int_distribution< uint8_t > | g_rng_length (0, MAX_STR_LEN) |
| int | main (void) |
| void | EXTI5_9_IRQHandler (void) |
Variables | |
| volatile bool | g_rtc_flag = false |
| std::default_random_engine | g_rng_engine |
| Scheduler | g_scheduler = { 0 } |
| volatile bool | g_f_pa8_button_up = false |
| #define EVER (;;) |
| typedef struct _Scheduler Scheduler |
| enum _Config |
| enum _Demo |
| void EXTI5_9_IRQHandler | ( | void | ) |
User clicked the PA8 boot button This button is used to switch between demos
| std::uniform_int_distribution<uint8_t> g_rng_char | ( | ' ' | , |
| '~' | |||
| ) |

| std::uniform_int_distribution<uint8_t> g_rng_color | ( | 0 | , |
| Longan_nano::Screen::Config::PALETTE_SIZE - | 1 | ||
| ) |

| std::uniform_int_distribution<int> g_rng_height | ( | 0 | , |
| Longan_nano::Screen::Config::FRAME_BUFFER_HEIGHT - | 1 | ||
| ) |

| std::uniform_int_distribution<uint8_t> g_rng_length | ( | 0 | , |
| MAX_STR_LEN | |||
| ) |

| std::uniform_int_distribution<int> g_rng_width | ( | 0 | , |
| Longan_nano::Screen::Config::FRAME_BUFFER_WIDTH - | 1 | ||
| ) |

| void init_pa8_button_interrupt | ( | void | ) |
User clicked the PA8 boot button This button is used to switch between demos

| int main | ( | void | ) |
Entry point of program

| volatile bool g_f_pa8_button_up = false |
| std::default_random_engine g_rng_engine |
| volatile bool g_rtc_flag = false |
| Scheduler g_scheduler = { 0 } |