1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

Merge pull request #15274 from basilfx/feature/enable_debug

treewide: cleanup ENABLE_DEBUG
This commit is contained in:
Martine Lenders 2020-10-23 13:19:36 +02:00 committed by GitHub
commit 316332476a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
509 changed files with 641 additions and 675 deletions

View File

@ -27,7 +27,7 @@
#include "periph/gpio.h"
#include "periph/timer.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/**

View File

@ -27,7 +27,7 @@
#include "periph/gpio.h"
#include "periph/timer.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/**

View File

@ -24,7 +24,7 @@
#include "mutex.h"
#include "thread.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
void cond_init(cond_t *cond)

View File

@ -29,13 +29,13 @@
#include "periph/pm.h"
#define ENABLE_DEBUG (0)
#include "debug.h"
#ifdef MODULE_AUTO_INIT
#include <auto_init.h>
#endif
#define ENABLE_DEBUG 0
#include "debug.h"
#ifndef CONFIG_BOOT_MSG_STRING
#define CONFIG_BOOT_MSG_STRING "main(): This is RIOT! (Version: " RIOT_VERSION ")"
#endif

View File

@ -19,7 +19,7 @@
#include "lifo.h"
#include "log.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
int lifo_empty(int *array)

View File

@ -25,7 +25,7 @@
#include "sched.h"
#include "thread.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
static void _wake_waiter(thread_t *thread, unsigned irqstate)

View File

@ -34,7 +34,7 @@
#include "irq.h"
#include "cib.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
static int _msg_receive(msg_t *m, int block);

View File

@ -29,7 +29,7 @@
#include "irq.h"
#include "list.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
int _mutex_lock(mutex_t *mutex, volatile uint8_t *blocking)

View File

@ -22,7 +22,7 @@
#include "priority_queue.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
void priority_queue_remove(priority_queue_t *root_, priority_queue_node_t *node)

View File

@ -28,7 +28,7 @@
#include "thread.h"
#include "assert.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
static int _lock(rmutex_t *rmutex, int trylock)

View File

@ -32,7 +32,7 @@
#include "mpu.h"
#endif
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#if ENABLE_DEBUG

View File

@ -28,11 +28,12 @@
#include "thread.h"
#include "irq.h"
#define ENABLE_DEBUG (0)
#include "debug.h"
#include "bitarithm.h"
#include "sched.h"
#define ENABLE_DEBUG 0
#include "debug.h"
thread_status_t thread_getstatus(kernel_pid_t pid)
{
thread_t *thread = thread_get(pid);

View File

@ -23,7 +23,7 @@
#include "irq.h"
#include "thread.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
static inline int __attribute__((always_inline)) _thread_flags_wake(thread_t *thread)

View File

@ -33,7 +33,7 @@
#include "periph/init.h"
#include "panic.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#ifndef MCUSR

View File

@ -24,7 +24,7 @@
#include "cpu.h"
#include "periph/eeprom.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
size_t eeprom_read(uint32_t pos, void *data, size_t len)

View File

@ -37,7 +37,7 @@
#include "periph_cpu.h"
#include "atmega_gpio.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#ifdef MODULE_PERIPH_GPIO_IRQ

View File

@ -30,7 +30,7 @@
#include "periph/i2c.h"
#include "periph_conf.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#define MT_START 0x08

View File

@ -51,7 +51,7 @@
#include "periph/rtt.h"
#include "periph_conf.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#if RTT_BACKEND_SC

View File

@ -31,7 +31,7 @@
#include "periph/timer.h"
#include "periph_conf.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/**

View File

@ -28,7 +28,7 @@
#include <avr/interrupt.h>
#include "avr/wdt.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
uint8_t wdt_prescaler = WDTO_15MS;

View File

@ -29,7 +29,7 @@
#include "periph_cpu.h"
#include "periph/adc.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
static cc2538_soc_adc_t *soc_adc = (cc2538_soc_adc_t *)SOC_ADC_BASE;

View File

@ -28,7 +28,7 @@
#include "bitarithm.h"
#include "periph/gpio.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#define MODE_NOTSUP (0xff)

View File

@ -27,7 +27,7 @@
#include "cpu.h"
#include "periph/hwrng.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
static cc2538_soc_adc_t *soc_adc = (cc2538_soc_adc_t *)SOC_ADC_BASE;

View File

@ -31,7 +31,7 @@
#include "periph/gpio.h"
#include "periph/i2c.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/* short cuts macros */

View File

@ -22,7 +22,7 @@
#include "vendor/hw_nvic.h"
#include "periph/pm.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
void pm_set(unsigned mode)

View File

@ -25,7 +25,7 @@
#include "cpu.h"
#include "periph/rtt.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#define SMWDTHROSC_STLOAD_STLOAD_MASK (0x00000001)

View File

@ -29,7 +29,7 @@
#include "assert.h"
#include "periph/spi.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/**

View File

@ -30,7 +30,7 @@
#include "periph/timer.h"
#include "periph_conf.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#define LOAD_VALUE_16_BIT (UINT16_MAX)

View File

@ -25,7 +25,7 @@
#include "cc2538_rf.h"
#include "cc2538_rf_netdev.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/**

View File

@ -23,7 +23,7 @@
#include "cc2538_rf.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/* static const __flash uint8_t? */

View File

@ -25,7 +25,7 @@
#include "cc2538_rf_netdev.h"
#include "cc2538_rf_internal.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
void isr_rfcoreerr(void)

View File

@ -28,7 +28,7 @@
#include "cc2538_rf_netdev.h"
#include "cc2538_rf_internal.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/* Reference pointer for the IRQ handler */

View File

@ -31,7 +31,7 @@
#include "cc26xx_cc13xx_power.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#define LOAD_VALUE (0xffff)

View File

@ -100,7 +100,7 @@
#include "irq.h"
#include "cpu.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
extern uint32_t _estack;

View File

@ -31,7 +31,7 @@
#include "timex.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
static WDOG_PeriodSel_TypeDef _get_prescaler(uint32_t max_time)

View File

@ -33,7 +33,7 @@
#include "timex.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#ifdef MODULE_PERIPH_WDT_CB

View File

@ -18,7 +18,7 @@
#ifdef MODULE_ESP_ETH
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include "log.h"
#include "tools.h"

View File

@ -18,9 +18,6 @@
* @}
*/
#define ENABLE_DEBUG 0
#include "debug.h"
#include "irq_arch.h"
#include "esp_err.h"
@ -28,6 +25,9 @@
#include "soc/dport_reg.h"
#include "xtensa/xtensa_api.h"
#define ENABLE_DEBUG 0
#include "debug.h"
struct _irq_alloc_table_t {
int src; /* peripheral interrupt source */
uint32_t intr; /* interrupt number */

View File

@ -31,7 +31,7 @@
#include "soc/sens_reg.h"
#include "soc/sens_struct.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/* declaration of external functions */

View File

@ -27,7 +27,7 @@
#include "soc/sens_reg.h"
#include "soc/sens_struct.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/**

View File

@ -41,7 +41,7 @@
#include "xtensa/xtensa_api.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/** Common ESP CAN definitions */

View File

@ -31,7 +31,7 @@
#include "soc/sens_reg.h"
#include "soc/sens_struct.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/* declaration of external functions */

View File

@ -18,7 +18,7 @@
* @}
*/
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include <assert.h>

View File

@ -36,7 +36,7 @@
* notice.
*/
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include <assert.h>

View File

@ -18,7 +18,7 @@
* @}
*/
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include "esp_attr.h"

View File

@ -28,7 +28,7 @@
#include "rtt_arch.h"
#include "syscalls.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#define RTC_CLK_CAL_FRACT 19 /* fractional bits of calibration value */

View File

@ -33,7 +33,7 @@
#include "syscalls.h"
#include "timex.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#define RTC_CLK_CAL_FRACT 19 /* fractional bits of calibration value */

View File

@ -31,7 +31,7 @@
#include "syscalls.h"
#include "timex.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#define TIMER_SYSTEM_GROUP TIMERG0

View File

@ -22,7 +22,7 @@
* WARNING! enable debugging will have timing side effects and can lead
* to timer underflows, system crashes or system dead locks in worst case.
*/
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include "periph/timer.h"

View File

@ -18,8 +18,6 @@
* @}
*/
#define ENABLE_DEBUG (0)
#include "debug.h"
#include "esp_common.h"
#include <stdlib.h>
@ -68,6 +66,9 @@
#include "stdio_uart.h"
#endif
#define ENABLE_DEBUG 0
#include "debug.h"
#define MHZ 1000000UL
#define STRINGIFY(s) STRINGIFY2(s)
#define STRINGIFY2(s) #s

View File

@ -40,7 +40,7 @@
#include "esp_heap_caps.h"
#endif
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#define MHZ 1000000UL

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include <stdio.h>

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include <stdio.h>

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include "eth_phy/phy.h"

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include "esp_attr.h"

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include "esp_attr.h"

View File

@ -10,7 +10,7 @@
#ifndef DOXYGEN
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include "esp_attr.h"

View File

@ -19,9 +19,6 @@
* @}
*/
#define ENABLE_DEBUG 0
#include "debug.h"
#include "cpu.h"
#include "mutex.h"
#include "periph/adc.h"
@ -31,6 +28,9 @@
#include "esp_common.h"
#include "sdk/sdk.h"
#define ENABLE_DEBUG 0
#include "debug.h"
extern uint16_t test_tout(void);
int adc_init(adc_t line)

View File

@ -18,9 +18,6 @@
* @}
*/
#define ENABLE_DEBUG (0)
#include "debug.h"
#include <stdbool.h>
#include "log.h"
@ -40,6 +37,9 @@
#include "irq_arch.h"
#include "syscalls.h"
#define ENABLE_DEBUG 0
#include "debug.h"
/*
* IOMUX to GPIO mapping
* source https://www.espressif.com/sites/default/files/documentation/0d-esp8266_pin_list_release_15-11-2014.xlsx

View File

@ -18,7 +18,7 @@
* @}
*/
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include "sdk/sdk.h"

View File

@ -20,9 +20,6 @@
#include <assert.h>
#define ENABLE_DEBUG (0)
#include "debug.h"
#include "cpu.h"
#include "log.h"
#include "irq_arch.h"
@ -36,6 +33,9 @@
#include "sdk/sdk.h"
#include "xtensa/xtensa_api.h"
#define ENABLE_DEBUG 0
#include "debug.h"
#define TIMER_FRC1_CLKDIV_16 BIT(2)
#define TIMER_FRC1_CLKDIV_256 BIT(3)

View File

@ -19,7 +19,7 @@
* @}
*/
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include "cpu.h"

View File

@ -16,8 +16,6 @@
* @author Gunar Schorcht <gunar@schorcht.net>
* @}
*/
#define ENABLE_DEBUG 0
#include "debug.h"
#include <stdint.h>
#include <stdio.h>
@ -46,6 +44,9 @@
#include "gdbstub.h"
#endif
#define ENABLE_DEBUG 0
#include "debug.h"
/* external esp function declarations */
extern uint32_t hwrand (void);

View File

@ -26,7 +26,7 @@
#include "esp_heap_caps.h"
#endif
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#ifdef MODULE_ESP_IDF_HEAP

View File

@ -18,7 +18,7 @@
* @author Gunar Schorcht <gunar@schorcht.net>
*/
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include <stdint.h>

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include <string.h>
#include <assert.h>

View File

@ -30,7 +30,7 @@
#include "esp_now_gnrc.h"
#include "net/gnrc/netif.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
static int _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt)

View File

@ -40,7 +40,7 @@
#include "esp_now_params.h"
#include "esp_now_netdev.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#define ESP_NOW_UNICAST (1)

View File

@ -46,9 +46,6 @@
#include "esp_wifi_params.h"
#include "esp_wifi_netdev.h"
#define ENABLE_DEBUG_HEXDUMP (0)
#define ENABLE_DEBUG (0)
#include "debug.h"
#include "log.h"
#define ESP_WIFI_DEBUG(f, ...) \
@ -93,6 +90,10 @@
#endif /* MCU_ESP8266 */
#define ENABLE_DEBUG_HEXDUMP 0
#define ENABLE_DEBUG 0
#include "debug.h"
/**
* There is only one ESP WiFi device. We define it as static device variable
* to have access to the device inside ESP WiFi interrupt routines which do

View File

@ -31,7 +31,7 @@
#include "xtensa/corebits.h"
#include "xtensa/xtensa_api.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
extern void heap_stats(void);

View File

@ -10,7 +10,7 @@
#ifndef DOXYGEN
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include <string.h>

View File

@ -10,7 +10,7 @@
#ifndef DOXYGEN
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include <string.h>

View File

@ -10,7 +10,7 @@
#ifndef DOXYGEN
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include <assert.h>

View File

@ -10,7 +10,7 @@
#ifndef DOXYGEN
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include <assert.h>

View File

@ -10,7 +10,7 @@
#ifndef DOXYGEN
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include <assert.h>

View File

@ -10,7 +10,7 @@
#ifndef DOXYGEN
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include <assert.h>

View File

@ -18,9 +18,6 @@
* @}
*/
#define ENABLE_DEBUG (0)
#include "debug.h"
#include <stdint.h>
#include <stdio.h>
@ -32,6 +29,9 @@
#include "esp/xtensa_ops.h"
#include "xtensa/xtensa_context.h"
#define ENABLE_DEBUG 0
#include "debug.h"
/**
* @brief Set on entry into and reset on exit from an ISR
*/

View File

@ -48,7 +48,7 @@
#endif /* MCU_ESP32 */
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#define ESP_PART_TABLE_ADDR 0x8000 /* TODO configurable as used in Makefile.include */

View File

@ -26,7 +26,7 @@
described in [wikipedia](https://en.wikipedia.org/wiki/I%C2%B2C#Example_of_bit-banging_the_I%C2%B2C_master_protocol).
*/
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#include <assert.h>

View File

@ -22,8 +22,6 @@
#include <assert.h>
#include <string.h>
#define ENABLE_DEBUG (0)
#include "debug.h"
#include "esp_common.h"
#include "log.h"
@ -34,6 +32,9 @@
#include "esp_attr.h"
#include "gpio_arch.h"
#define ENABLE_DEBUG 0
#include "debug.h"
#ifdef MCU_ESP32
#include "driver/periph_ctrl.h"

View File

@ -21,9 +21,6 @@
#include <assert.h>
#define ENABLE_DEBUG (0)
#include "debug.h"
#include "esp_common.h"
#include "cpu.h"
#include "irq_arch.h"
@ -40,6 +37,9 @@
#include "rom/ets_sys.h"
#include "xtensa/xtensa_api.h"
#define ENABLE_DEBUG 0
#include "debug.h"
#ifdef MCU_ESP32
#include "gpio_arch.h"

View File

@ -37,7 +37,7 @@
#include "malloc.h"
#endif
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#ifndef MODULE_PTHREAD

View File

@ -45,9 +45,6 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#define ENABLE_DEBUG (0)
#include "debug.h"
#include <stdio.h>
#include <string.h>
@ -75,6 +72,9 @@
#include "sdk/sdk.h"
#endif /* MCU_ESP32 */
#define ENABLE_DEBUG 0
#include "debug.h"
/* User exception dispatcher when exiting */
extern void _xt_user_exit(void);

View File

@ -23,7 +23,7 @@
#include "periph/gpio.h"
#include "periph_conf.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#ifdef MODULE_PERIPH_GPIO_IRQ

View File

@ -23,7 +23,7 @@
#include "periph/timer.h"
#include "periph_conf.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/**

View File

@ -33,7 +33,7 @@
#include "vendor/platform.h"
#include "vendor/prci_driver.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#define I2C_BUSY_TIMEOUT (0xffff)

View File

@ -23,7 +23,7 @@
#include "periph/rtt.h"
#include "periph/rtc.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"

View File

@ -34,7 +34,7 @@
#include "vendor/platform.h"
#include "vendor/plic_driver.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/* Convert RTT freq to pre-scaler value */

View File

@ -29,9 +29,14 @@
#include "vendor/spi.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#define SPI_CLK_NUMOF ARRAY_SIZE(_spi_clks)
/* DIV_UP is division which rounds up instead of down */
#define SPI_DIV_UP(a, b) (((a) + ((b) - 1)) / (b))
static const uint32_t _spi_clks[] = {
100000,
400000,
@ -40,13 +45,8 @@ static const uint32_t _spi_clks[] = {
10000000,
};
#define SPI_CLK_NUMOF ARRAY_SIZE(_spi_clks)
static uint32_t _spi_clks_config[SPI_CLK_NUMOF] = { 0 };
/* DIV_UP is division which rounds up instead of down */
#define SPI_DIV_UP(a,b) (((a) + ((b) - 1)) / (b))
/**
* @brief Allocation device locks
*/

View File

@ -29,7 +29,7 @@
#include "vendor/aon.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
void wdt_start(void)

View File

@ -21,11 +21,11 @@
#include "cpu.h"
#include "assert.h"
#define ENABLE_DEBUG (0)
#include "debug.h"
#include "periph/flashpage.h"
#define ENABLE_DEBUG 0
#include "debug.h"
/**
* @brief Flash controller commands
*/

View File

@ -36,13 +36,13 @@
#include "periph_conf.h"
#include "periph/i2c.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
/* Define ENABLE_TRACE to 1 to enable printing of all TX/RX bytes to UART for extra verbose debugging */
#define ENABLE_TRACE (1)
#define ENABLE_TRACE 1
/* Define ENABLE_INIT_DEBUG to 1 to enable DEBUG prints in i2c_init. Currently
* this causes the system to hang when running i2c_init during boot because of
* uninitialized stdio UART */
#define ENABLE_INIT_DEBUG (0)
#define ENABLE_INIT_DEBUG 0
#include "debug.h"
#if ENABLE_TRACE

View File

@ -23,7 +23,7 @@
#include "periph/pm.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/* Set to 1 to use the LEDx macros to show which sleep mode is entered */

View File

@ -25,7 +25,7 @@
#include "periph/rtt.h"
#include "periph_conf.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
typedef struct {

View File

@ -33,7 +33,7 @@
#include "periph/rtt.h"
#include "periph_conf.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
typedef struct {

View File

@ -31,7 +31,7 @@
#include "assert.h"
#include "periph/spi.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/**

View File

@ -42,7 +42,7 @@
#define KINETIS_PIT_COMBINED_IRQ 0
#endif
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#define PIT_MAX_VALUE (PIT_LDVAL_TSV_MASK >> PIT_LDVAL_TSV_SHIFT)

View File

@ -31,7 +31,7 @@
#include "periph_conf.h"
#include "periph/uart.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#ifndef KINETIS_HAVE_LPUART

View File

@ -27,7 +27,7 @@
#include "periph/gpio.h"
#include "periph_conf.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
#define NUM_OF_PORT 6

View File

@ -27,7 +27,7 @@
#include "periph_conf.h"
#include "board.h"
#define ENABLE_DEBUG (0)
#define ENABLE_DEBUG 0
#include "debug.h"
/**

Some files were not shown because too many files have changed in this diff Show More