mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
fix accidental build issues
This commit is contained in:
parent
3138205d09
commit
29a243226e
@ -27,11 +27,12 @@ info = {
|
||||
'build' : {
|
||||
'optimizeflags' : '-O3',
|
||||
'libraries' : [
|
||||
'NET',
|
||||
'GRAPHICS',
|
||||
'NEOPIXEL'
|
||||
],
|
||||
'makefile' : [
|
||||
'DEFINES+=-DSAVE_ON_FLASH_MATH',
|
||||
'DEFINES+=-DESPR_PACKED_SYMPTR', # Pack builtin symbols' offset into pointer to save 2 bytes/symbol
|
||||
'WRAPPERSOURCES+=targets/nucleo/jswrap_nucleo.c',
|
||||
'DEFINES+=-DUSE_USB_OTG_FS=1',
|
||||
'DEFINES+=-DPIN_NAMES_DIRECT=1', # Package skips out some pins, so we can't assume each port starts from 0
|
||||
|
||||
@ -27,11 +27,12 @@ info = {
|
||||
'build' : {
|
||||
'optimizeflags' : '-O3',
|
||||
'libraries' : [
|
||||
'NET',
|
||||
'GRAPHICS',
|
||||
'NEOPIXEL'
|
||||
],
|
||||
'makefile' : [
|
||||
'DEFINES+=-DSAVE_ON_FLASH_MATH',
|
||||
'DEFINES+=-DESPR_PACKED_SYMPTR', # Pack builtin symbols' offset into pointer to save 2 bytes/symbol
|
||||
'WRAPPERSOURCES+=targets/nucleo/jswrap_nucleo.c',
|
||||
'DEFINES+=-DUSE_USB_OTG_FS=1',
|
||||
'DEFINES+=-DPIN_NAMES_DIRECT=1', # Package skips out some pins, so we can't assume each port starts from 0
|
||||
|
||||
@ -72,8 +72,6 @@ typedef enum {
|
||||
#define PACKED_JSW_SYM __attribute__((aligned(2)))
|
||||
#endif
|
||||
|
||||
#define ESPR_PACKED_SYMPTR
|
||||
|
||||
/// This is the Structure for storing each symbol in the list of built-in symbols (in flash)
|
||||
// JswSymPtr should be a multiple of 2 in length or jswBinarySearch will need READ_FLASH_UINT16
|
||||
#ifndef ESPR_PACKED_SYMPTR // 'Normal' symbol storage - strOffset is *not* packed into function pointer
|
||||
|
||||
@ -2273,7 +2273,9 @@ void jshI2CSetup(IOEventFlags device, JshI2CInfo *inf) {
|
||||
nrf_drv_twi_config_t p_twi_config;
|
||||
p_twi_config.scl = (uint32_t)pinInfo[inf->pinSCL].pin;
|
||||
p_twi_config.sda = (uint32_t)pinInfo[inf->pinSDA].pin;
|
||||
p_twi_config.frequency = (nrf_drv_twi_frequency_t)((inf->bitrate<175000) ? NRF_TWI_FREQ_100K : ((inf->bitrate<325000) ? NRF_TWI_FREQ_250K : NRF_TWI_FREQ_400K));
|
||||
// (nrf_drv_twi_frequency_t) cast can be used here on SDK15
|
||||
p_twi_config.frequency =
|
||||
((inf->bitrate<175000) ? NRF_TWI_FREQ_100K : ((inf->bitrate<325000) ? NRF_TWI_FREQ_250K : NRF_TWI_FREQ_400K));
|
||||
p_twi_config.interrupt_priority = APP_IRQ_PRIORITY_LOW;
|
||||
if (twi1Initialised) nrf_drv_twi_uninit(twi);
|
||||
twi1Initialised = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user