We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f09b00 commit 19a80fdCopy full SHA for 19a80fd
examples/lvgl/lvgl_driver.c
@@ -31,7 +31,7 @@ static void screen_lvgl_driver(lv_display_t* disp, const lv_area_t* area,
31
lv_display_flush_ready(disp); /* Indicate you are ready with the flushing*/
32
}
33
34
-static void touch_event(int status, uint16_t x, uint16_t y) {
+static void touch_event(libtock_touch_status_t status, uint16_t x, uint16_t y) {
35
touch_status = status;
36
touch_x = x;
37
touch_y = y;
examples/tests/touch/main.c
@@ -7,7 +7,7 @@
7
8
libtock_touch_event_t* multi_touch_buffer;
9
10
11
switch (status) {
12
case LIBTOCK_TOUCH_STATUS_PRESSED: {
13
printf("pressed ");
examples/tests/udp/udp_rx/main.c
@@ -32,10 +32,9 @@ void print_ipv6(ipv6_addr_t* ipv6_addr) {
printf("%02x%02x", ipv6_addr->addr[14], ipv6_addr->addr[15]);
-static void callback(statuscode_t status,
+static void callback(returncode_t ret,
int payload_len) {
38
- returncode_t ret = tock_status_to_returncode(status);
39
if (ret != RETURNCODE_SUCCESS) {
40
printf("Error in receiving packet: %d\n", ret);
41
return;
examples/tests/udp/udp_virt_rx_tests/app1/main.c
@@ -29,10 +29,9 @@ void print_ipv6(ipv6_addr_t* ipv6_addr) {
29
30
examples/tests/udp/udp_virt_rx_tests/app2/main.c
libtock/sensors/touch.h
@@ -9,21 +9,21 @@ extern "C" {
// Touch status.
typedef enum {
- TOUCH_STATUS_RELEASED = 0,
- TOUCH_STATUS_PRESSED = 1,
14
- TOUCH_STATUS_MOVED = 2,
15
- TOUCH_STATUS_UNSTARTED = 3,
+ LIBTOCK_TOUCH_STATUS_RELEASED = 0,
+ LIBTOCK_TOUCH_STATUS_PRESSED = 1,
+ LIBTOCK_TOUCH_STATUS_MOVED = 2,
+ LIBTOCK_TOUCH_STATUS_UNSTARTED = 3,
16
} libtock_touch_status_t;
17
18
// Gesture types.
19
20
- GESTURE_NO = 0,
21
- GESTURE_SWIPE_UP = 1,
22
- GESTURE_SWIPE_DOWN = 2,
23
- GESTURE_SWIPE_LEFT = 3,
24
- GESTURE_SWIPE_RIGHT = 4,
25
- GESTURE_ZOOM_IN = 5,
26
- GESTURE_ZOOM_OUT = 6,
+ LIBTOCK_TOUCH_GESTURE_NO = 0,
+ LIBTOCK_TOUCH_GESTURE_SWIPE_UP = 1,
+ LIBTOCK_TOUCH_GESTURE_SWIPE_DOWN = 2,
+ LIBTOCK_TOUCH_GESTURE_SWIPE_LEFT = 3,
+ LIBTOCK_TOUCH_GESTURE_SWIPE_RIGHT = 4,
+ LIBTOCK_TOUCH_GESTURE_ZOOM_IN = 5,
+ LIBTOCK_TOUCH_GESTURE_ZOOM_OUT = 6,
27
} libtock_touch_gesture_t;
28
// Function signature for touch data callback.
0 commit comments