Cron is fun

March 2, 2022 · 0 min · un01s

Reading Toit Code (002)

After toit_start(), we have toit_esp32.cc to read. The first one is toit::start(). Toit here is just a namespace. As we know that toit supports OTA (over-the-air update) through WiFi and esp32 device is set to be a station (STA instead of AP). What we have here is as follows: RtcMemory::set_up(); FlashRegistry::set_up(); OS::set_up(); esp_partition_find_first(); setup_program(support_ota); Scheduler::ExitState exit_state; VM vm; vm.load_platform_event_sources(); int groud_id = vm.scheduler()->next_group_id(); exit_state = vm.scheduler()->run_boot_program(program, null, group_id); OS::tear_down(); FlashRegistry::tear_down(); After these, esp32 may go to deep sleep....

March 1, 2022 · 1 min · un01s

Reading Toit Code (001)

When I started to port the code to ESP32S3 following the example of ESP32C3, I realized I had to read the code closely. Here are the notes along the way. Where does the code get started on esp32? Based on esp-idf, Toit (I like to pronounce it as tight) creates a new platform with a new programming language for developers. For the code to start on the esp32 device, check all the files inside toolchains/esp32/....

February 25, 2022 · 1 min · un01s

Invasion!

Today Putin ordered troops into pro-Russian region of eastern Ukraine in the name of peacekeeping. Ukraine invaded. Then I saw the news of Dr. Paul Farmer. “The idea that some lives matter less is the root of all that is wrong with the world.”

February 21, 2022 · 1 min · un01s

Infinite Dead

I remember once offering to an editor an article which began with a reference to the experience of last century. “Oh,” he said, “leave out the history and come to the present.” I felt like going to him over a thousand miles and taking him by the lapels and saying, “Dear, dear jackass! Don’t you understand that the past is the present; that without what was, nothing is? That, of the infinite dead, the living are but unimportant bits?...

February 4, 2022 · 1 min · un01s