aboutsummaryrefslogtreecommitdiff
path: root/main/pbdrv.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-23 13:31:49 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-23 13:31:49 +0200
commit648d87ea98ec39d5745d36a0b5c5078cd9491211 (patch)
treed57d3cd5fb736012d6ac81a2e96e5244e56b9a77 /main/pbdrv.h
parent381c80d765628f5d85b58b3b97e5a6bf3a0d1eb7 (diff)
place rp2040 back in pbdrv
Diffstat (limited to 'main/pbdrv.h')
-rw-r--r--main/pbdrv.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/main/pbdrv.h b/main/pbdrv.h
deleted file mode 100644
index 89a4870..0000000
--- a/main/pbdrv.h
+++ /dev/null
@@ -1,49 +0,0 @@
-#pragma once
-
-#include "pb-types.h"
-
-/**
- * \ingroup pb_drv
- * \defgroup pb_drv_rp2040 RP2040
- * \brief Raspberry Pi Pico and Pico W driver
- *
- * \note This file is no longer inside `lib/pbdrv/drv/rp2040` as it is tightly
- * coupled to both the pico-sdk and FreeRTOS functions. I have tried to get
- * FreeRTOS to play nicely with the CMake subproject layout, but the pico-sdk
- * and the RP2040 port of FreeRTOS both rely on CMake's import() functionality,
- * which makes using FreeRTOS in a libary context extremely messy.
- *
- * \warning The workaround implemented in this driver was already kind of
- * messy, and **a different microcontroller should be used for the main
- * controller instead**. Please see the handover document for more details.
- *
- * \{
- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-//! Puzzle bus driver setup
-void pb_setup();
-
-/**
- * \note While the RP2040's datasheet claims it supports multi-master
- * configurations by implementing bus arbitration, it does not natively support
- * a mode where it is configured as a (multi-)master with a slave address, such
- * that it can be addressed by other multi-masters. This function includes a
- * hacky workaround that teporarily sets the RP2040 to I2C master mode to send
- * a message, and then restores it back to slave mode.
- *
- * \warning This approach results in some received frames being (partially)
- * dropped in the time period between the invocation of this function and the
- * bus becoming idle (and the message is sent).
- */
-void pb_i2c_send(i2c_addr_t addr, const uint8_t * buf, size_t sz);
-
-/// \}
-
-#ifdef __cplusplus
-}
-#endif
-