Small PICO_PLATFORM=host fixes (#639)

This commit is contained in:
Graham Sanderson 2021-10-28 15:16:36 -05:00 committed by GitHub
parent 97eec951b1
commit e4d6ff9ecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -152,7 +152,9 @@ void gpio_set_dir_all_bits(uint32_t value);
void gpio_set_dir(uint gpio, bool out); void gpio_set_dir(uint gpio, bool out);
// debugging // debugging
#ifndef PICO_DEBUG_PIN_BASE
#define PICO_DEBUG_PIN_BASE 19u #define PICO_DEBUG_PIN_BASE 19u
#endif
// note these two macros may only be used once per compilation unit // note these two macros may only be used once per compilation unit
#define CU_REGISTER_DEBUG_PINS(p, ...) #define CU_REGISTER_DEBUG_PINS(p, ...)

View File

@ -27,8 +27,8 @@ extern "C" {
#define __scratch_x(group) #define __scratch_x(group)
#define __scratch_y(group) #define __scratch_y(group)
#define __packed_aligned #define __packed __attribute__((packed))
#define __packed #define __packed_aligned __packed __attribute((aligned))
#define __time_critical_func(x) x #define __time_critical_func(x) x
#define __after_data(group) #define __after_data(group)