Skip to content

Commit

Permalink
ports/psoc6: WIP demo changes, 20 bits accept.
Browse files Browse the repository at this point in the history
Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
  • Loading branch information
jaenrig-ifx committed Mar 11, 2024
1 parent 2f9744b commit 9855df3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/psoc6/machine_i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ static void machine_i2s_init_helper(machine_i2s_obj_t *self, size_t n_pos_args,
// is Bits valid?
int8_t i2s_bits = args[ARG_bits].u_int;
if ((i2s_bits != 16) &&
(i2s_bits != 32)
) {
(i2s_bits != 32) &&
(i2s_bits) != 20) {
mp_raise_ValueError(MP_ERROR_TEXT("invalid bits"));
}

Expand Down
1 change: 1 addition & 0 deletions ports/psoc6/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ int main(int argc, char **argv) {

// Initialize retarget-io to use the debug UART port
// FOR DEMO PURPOSES WE USE OTHER THAN THE BSP UART PINS
// result = cy_retarget_io_init(CYBSP_DEBUG_UART_TX, CYBSP_DEBUG_UART_RX, CY_RETARGET_IO_BAUDRATE);
result = cy_retarget_io_init(P10_1, P10_0, CY_RETARGET_IO_BAUDRATE);
if (result != CY_RSLT_SUCCESS) {
mp_raise_ValueError(MP_ERROR_TEXT("cy_retarget_io_init failed !\n"));
Expand Down

0 comments on commit 9855df3

Please sign in to comment.