mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-06-10 08:13:57 +02:00
afdc1fa594
- GPIO15 active-low button input with internal pull-up - 20ms software debounce via busy-wait confirmation - LED mirrors button state, UART reports edge transitions - New gpio_config_input_pullup() in GPIO driver - 1555B FLASH, 13 source files, zero warnings
35 lines
992 B
C
35 lines
992 B
C
/**
|
|
******************************************************************************
|
|
* @file rp2350_delay.h
|
|
* @author Kevin Thomas
|
|
* @brief Delay driver header for RP2350.
|
|
*
|
|
* Millisecond busy-wait delay calibrated for a 14.5 MHz clock.
|
|
*
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* Copyright (c) 2026 Kevin Thomas.
|
|
* All rights reserved.
|
|
*
|
|
* This software is licensed under terms that can be found in the LICENSE file
|
|
* in the root directory of this software component.
|
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
|
|
#ifndef __RP2350_DELAY_H
|
|
#define __RP2350_DELAY_H
|
|
|
|
#include "rp2350.h"
|
|
|
|
/**
|
|
* @brief Delay for the specified number of milliseconds.
|
|
* @param ms number of milliseconds to delay
|
|
* @retval None
|
|
*/
|
|
void delay_ms(uint32_t ms);
|
|
|
|
#endif /* __RP2350_DELAY_H */
|