Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static void init_run_ulp(uint32_t usec) {
// use this binary loader instead
esp_err_t err = ulptool_load_binary(0, ulp_main_bin_start, (ulp_main_bin_end - ulp_main_bin_start) / sizeof(uint32_t));
// ulp coprocessor will run on its own now
err = ulp_run((&ulp_entry - RTC_SLOW_MEM) / sizeof(uint32_t));
err = ulp_run(&ulp_entry - RTC_SLOW_MEM);
}
```

Expand Down Expand Up @@ -141,7 +141,7 @@ void loop() {
static void init_run_ulp(uint32_t usec) {
ulp_set_wakeup_period(0, usec);
esp_err_t err = ulptool_load_binary(0, ulp_main_bin_start, (ulp_main_bin_end - ulp_main_bin_start) / sizeof(uint32_t));
err = ulp_run((&ulp_entry - RTC_SLOW_MEM) / sizeof(uint32_t));
err = ulp_run(&ulp_entry - RTC_SLOW_MEM);

if (err) Serial.println("Error Starting ULP Coprocessor");
}
Expand Down
2 changes: 1 addition & 1 deletion src/ulp_examples/ulp_README/ulp_README.ino
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ static void init_run_ulp(uint32_t usec) {
esp_err_t err = ulptool_load_binary(0, ulp_main_bin_start, (ulp_main_bin_end - ulp_main_bin_start) / sizeof(uint32_t));
// ulp coprocessor will run on its own now
ulp_count = 0;
err = ulp_run((&ulp_entry - RTC_SLOW_MEM) / sizeof(uint32_t));
err = ulp_run(&ulp_entry - RTC_SLOW_MEM);
if (err) Serial.println("Error Starting ULP Coprocessor");
}
2 changes: 1 addition & 1 deletion src/ulp_examples/ulp_adc/ulp_adc.ino
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ static void init_ulp_program()
static void start_ulp_program()
{
/* Start the program */
esp_err_t err = ulp_run((&ulp_entry - RTC_SLOW_MEM) / sizeof(uint32_t));
esp_err_t err = ulp_run(&ulp_entry - RTC_SLOW_MEM);
ESP_ERROR_CHECK(err);
}
2 changes: 1 addition & 1 deletion src/ulp_examples/ulp_hall_sensor/ulp_hall_sensor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void setup() {

Serial.printf("Entering deep sleep\n\n");
/* Start the ULP program */
ESP_ERROR_CHECK( ulp_run((&ulp_entry - RTC_SLOW_MEM) / sizeof(uint32_t)));
ESP_ERROR_CHECK( ulp_run(&ulp_entry - RTC_SLOW_MEM) );
ESP_ERROR_CHECK( esp_sleep_enable_ulp_wakeup() );
esp_deep_sleep_start();
}
Expand Down
2 changes: 1 addition & 1 deletion src/ulp_examples/ulp_i2c_bitbang/ulp_i2c_bitbang.ino
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ static void init_ulp_program()
static void start_ulp_program()
{
/* Start the program */
esp_err_t err = ulp_run((&ulp_entry - RTC_SLOW_MEM) / sizeof(uint32_t));
esp_err_t err = ulp_run(&ulp_entry - RTC_SLOW_MEM);
ESP_ERROR_CHECK(err);
}
2 changes: 1 addition & 1 deletion src/ulp_examples/ulp_rtc_gpio/ulp_rtc_gpio.ino
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void setup() {

Serial.printf("Entering deep sleep\n\n");
/* Start the ULP program */
ESP_ERROR_CHECK( ulp_run((&ulp_entry - RTC_SLOW_MEM) / sizeof(uint32_t)));
ESP_ERROR_CHECK( ulp_run(&ulp_entry - RTC_SLOW_MEM) );
ESP_ERROR_CHECK( esp_sleep_enable_ulp_wakeup() );
rtc_gpio_set_level(cpu_up_num, 0);
esp_deep_sleep_start();
Expand Down
2 changes: 1 addition & 1 deletion src/ulp_examples/ulp_tsens/ulp_tsens.ino
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void setup() {

Serial.printf("Entering deep sleep\n\n");
/* Start the ULP program */
ESP_ERROR_CHECK( ulp_run((&ulp_entry - RTC_SLOW_MEM) / sizeof(uint32_t)));
ESP_ERROR_CHECK( ulp_run(&ulp_entry - RTC_SLOW_MEM) );
ESP_ERROR_CHECK( esp_sleep_enable_ulp_wakeup() );
esp_deep_sleep_start();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@ static void start_ulp_program()
ulp_sample_counter = 0;

/* Start the program */
esp_err_t err = ulp_run((&ulp_entry - RTC_SLOW_MEM) / sizeof(uint32_t));
esp_err_t err = ulp_run(&ulp_entry - RTC_SLOW_MEM);
ESP_ERROR_CHECK(err);
}
2 changes: 1 addition & 1 deletion src/ulp_examples/ulpcc/ulpcc_adc/ulpcc_adc.ino
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ static void init_run_ulp(uint32_t usec) {
// all shared ulp variables have to be intialized after ulptool_load_binary for the ulp to see it.
// Set the high threshold reading you want the ulp to trigger a main processor wakeup.
ulp_threshold = 0x20;
err = ulp_run((&ulp_entry - RTC_SLOW_MEM) / sizeof(uint32_t));
err = ulp_run(&ulp_entry - RTC_SLOW_MEM);
if (err) Serial.println("Error Starting ULP Coprocessor");
}
2 changes: 1 addition & 1 deletion src/ulp_examples/ulpcc/ulpcc_counter/ulpcc_counter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void loop() {
static void init_run_ulp(uint32_t usec) {
ulp_set_wakeup_period(0, usec);
esp_err_t err = ulptool_load_binary(0, ulp_main_bin_start, (ulp_main_bin_end - ulp_main_bin_start) / sizeof(uint32_t));
err = ulp_run((&ulp_entry - RTC_SLOW_MEM) / sizeof(uint32_t));
err = ulp_run(&ulp_entry - RTC_SLOW_MEM);

if (err) Serial.println("Error Starting ULP Coprocessor");
}