Prusa MINI Firmware overview
i2s.h
Go to the documentation of this file.
1 /**
2  * Marlin 3D Printer Firmware
3  * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4  *
5  * Based on Sprinter and grbl.
6  * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 #pragma once
23 
24 #include <stdint.h>
25 
26 // current value of the outputs provided over i2s
27 extern uint32_t i2s_port_data;
28 
29 int i2s_init();
30 
32 
33 void i2s_write(uint8_t pin, uint8_t val);
34 
35 void i2s_push_sample();
SET_BIT_TO
#define SET_BIT_TO(N, B, TF)
Definition: macros.h:82
portMAX_DELAY
#define portMAX_DELAY
Definition: portmacro.h:106
i2s_state
uint8_t i2s_state(uint8_t pin)
queue
GCodeQueue queue
Definition: queue.cpp:28
xQueueIsQueueFullFromISR
PRIVILEGED_FUNCTION BaseType_t xQueueIsQueueFullFromISR(const QueueHandle_t xQueue)
Definition: queue.c:1974
I2S_DATA
#define I2S_DATA
Definition: pins_ESP32.h:40
i2s_push_sample
void i2s_push_sample()
I2S_BCK
#define I2S_BCK
Definition: pins_ESP32.h:39
i2s_port_data
uint32_t i2s_port_data
i2s_write
void i2s_write(uint8_t pin, uint8_t val)
pdFALSE
#define pdFALSE
Definition: projdefs.h:86
i2s_init
int i2s_init()
i2s.h
xQueueHandle
#define xQueueHandle
Definition: FreeRTOS.h:827
portYIELD_FROM_ISR
#define portYIELD_FROM_ISR(x)
Definition: portmacro.h:135
xQueueReceiveFromISR
PRIVILEGED_FUNCTION BaseType_t xQueueReceiveFromISR(QueueHandle_t xQueue, void *const pvBuffer, BaseType_t *const pxHigherPriorityTaskWoken)
Definition: queue.c:1434
portBASE_TYPE
#define portBASE_TYPE
Definition: portmacro.h:95
if
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
I2S_WS
#define I2S_WS
Definition: pins_ESP32.h:38
xQueueSendFromISR
#define xQueueSendFromISR(xQueue, pvItemToQueue, pxHigherPriorityTaskWoken)
Definition: queue.h:1361
uint8_t
const uint8_t[]
Definition: 404_html.c:3
Stepper::stepper_pulse_phase_isr
static void stepper_pulse_phase_isr()
Definition: stepper.cpp:1397
pdTRUE
#define pdTRUE
Definition: projdefs.h:87
TEST
#define TEST(n, b)
Definition: macros.h:81
xQueueReceive
#define xQueueReceive(xQueue, pvBuffer, xTicksToWait)
Definition: queue.h:914
Stepper::stepper_block_phase_isr
static uint32_t stepper_block_phase_isr()
Definition: stepper.cpp:1541